Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001396/0.001396, allocations: 115.7 kB / 18.45 MB, free: 4.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001762/0.001762, allocations: 213.9 kB / 19.4 MB, free: 3.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 63.89 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2412/0.2425, allocations: 50.54 MB / 409.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003946/0.2465, allocations: 2.981 MB / 412.9 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001355/0.2479, allocations: 0.7439 MB / 413.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001709/0.2481, allocations: 8 kB / 413.6 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002104/0.2483, allocations: 63.36 kB / 413.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002448/0.2486, allocations: 103.1 kB / 413.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003482/0.2489, allocations: 107.9 kB / 413.9 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004191/0.2494, allocations: 418.2 kB / 414.3 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003101/0.2497, allocations: 205.8 kB / 414.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001589/0.2499, allocations: 163.4 kB / 414.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002464/0.2501, allocations: 179.2 kB / 414.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.869e-05/0.2502, allocations: 40 kB / 414.9 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001232/0.2503, allocations: 59.92 kB / 415 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000153/0.2505, allocations: 103.7 kB / 415.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001662/0.2506, allocations: 207 kB / 415.3 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004913/0.2511, allocations: 0.4916 MB / 415.7 MB, free: 11.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.2512, allocations: 0 / 415.7 MB, free: 11.72 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2512, allocations: 4 kB / 415.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.2512, allocations: 0 / 415.7 MB, free: 11.71 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001632/0.2528, allocations: 0.7873 MB / 416.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.2529, allocations: 8.031 kB / 416.5 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.985e-05/0.253, allocations: 44.47 kB / 416.6 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004849/0.2535, allocations: 342.6 kB / 416.9 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.307e-05/0.2535, allocations: 21.03 kB / 416.9 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.868e-05/0.2536, allocations: 32.38 kB / 417 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000568/0.2541, allocations: 354.2 kB / 417.3 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.2542, allocations: 0 / 417.3 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.71e-05/0.2542, allocations: 12 kB / 417.3 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.2542, allocations: 11.94 kB / 417.3 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004146/0.2546, allocations: 238.5 kB / 417.6 MB, free: 9.793 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001729/0.2564, allocations: 1.3 MB / 418.9 MB, free: 8.406 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003572/0.2567, allocations: 182.5 kB / 419.1 MB, free: 8.219 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002473/0.257, allocations: 124.7 kB / 419.2 MB, free: 8.094 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.659e-05/0.257, allocations: 4 kB / 419.2 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.772e-05/0.2571, allocations: 38.55 kB / 419.2 MB, free: 8.043 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.393e-06/0.2571, allocations: 0 / 419.2 MB, free: 8.043 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004703/0.2576, allocations: 229.2 kB / 419.4 MB, free: 7.812 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.54e-05/0.2576, allocations: 51.69 kB / 419.5 MB, free: 7.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000334/0.2579, allocations: 319 kB / 419.8 MB, free: 7.43 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.975e-05/0.258, allocations: 33.7 kB / 419.8 MB, free: 7.391 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/0.2581, allocations: 212 kB / 420 MB, free: 7.18 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.566e-05/0.2582, allocations: 55.19 kB / 420.1 MB, free: 7.125 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.944e-05/0.2583, allocations: 45.64 kB / 420.1 MB, free: 7.074 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.2584, allocations: 338.8 kB / 420.5 MB, free: 6.734 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001305/0.2585, allocations: 67.97 kB / 420.5 MB, free: 6.668 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000161/0.2587, allocations: 143.6 kB / 420.7 MB, free: 6.5 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002152/0.2589, allocations: 159.5 kB / 420.8 MB, free: 6.316 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.2589, allocations: 4 kB / 420.8 MB, free: 6.312 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003822/0.2593, allocations: 247.8 kB / 421.1 MB, free: 6.066 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.2593, allocations: 4.25 kB / 421.1 MB, free: 6.062 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.2593, allocations: 8 kB / 421.1 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.2594, allocations: 4 kB / 421.1 MB, free: 6.051 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001863/0.2596, allocations: 47.91 kB / 421.1 MB, free: 6.004 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.819e-06/0.2596, allocations: 7.938 kB / 421.2 MB, free: 5.996 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004201/0.26, allocations: 59.78 kB / 421.2 MB, free: 5.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.813e-05/0.26, allocations: 12 kB / 421.2 MB, free: 5.926 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,energy.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000148/0.2602, allocations: 153.8 kB / 421.4 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.969e-05/0.2603, allocations: 27.66 kB / 421.4 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003972/0.2607, allocations: 210.8 kB / 421.6 MB, free: 5.531 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.2607, allocations: 0 / 421.6 MB, free: 5.531 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.2607, allocations: 4 kB / 421.6 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.2607, allocations: 0 / 421.6 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000806/0.2615, allocations: 0.6241 MB / 422.2 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2615, allocations: 4.031 kB / 422.2 MB, free: 4.836 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001604/0.2617, allocations: 31.97 kB / 422.3 MB, free: 4.805 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.2617, allocations: 4 kB / 422.3 MB, free: 4.801 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.892e-05/0.2617, allocations: 4 kB / 422.3 MB, free: 4.797 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.2617, allocations: 7.875 kB / 422.3 MB, free: 4.789 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.2617, allocations: 0 / 422.3 MB, free: 4.789 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004832/0.2622, allocations: 380.3 kB / 422.7 MB, free: 4.398 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.626e-05/0.2623, allocations: 112.8 kB / 422.8 MB, free: 4.27 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.615e-05/0.2624, allocations: 8 kB / 422.8 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000423/0.2628, allocations: 51.92 kB / 422.8 MB, free: 4.211 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/0.263, allocations: 75.88 kB / 422.9 MB, free: 4.137 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.703e-05/0.263, allocations: 4 kB / 422.9 MB, free: 4.133 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002349/0.2633, allocations: 241.9 kB / 423.1 MB, free: 3.895 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2633, allocations: 0 / 423.1 MB, free: 3.895 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003708/0.2636, allocations: 87.69 kB / 423.2 MB, free: 3.809 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (superCap.capacitor.v,energy.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001773/0.2638, allocations: 111.1 kB / 423.3 MB, free: 3.688 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003378/0.2642, allocations: 186.3 kB / 423.5 MB, free: 3.508 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2642, allocations: 0.5 kB / 423.5 MB, free: 3.508 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001812/0.2644, allocations: 111.9 kB / 423.6 MB, free: 3.398 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004111/0.2648, allocations: 44.86 kB / 423.7 MB, free: 3.352 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001346/0.2661, allocations: 0.7408 MB / 424.4 MB, free: 2.574 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003227/0.2665, allocations: 0.7753 MB / 425.2 MB, free: 1.77 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001032/0.2666, allocations: 27.42 kB / 425.2 MB, free: 1.742 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2666, allocations: 0 / 425.2 MB, free: 1.742 MB / 334.1 MB Notification: Performance of Templates: time 0.006284/0.2729, allocations: 4.338 MB / 429.5 MB, free: 13.43 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches