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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001055/0.001055, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 225.4 MB / 240.1 MB, free: 15.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001/0.001, allocations: 91.94 kB / 292.1 MB, free: 5.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.077e-05/4.081e-05, allocations: 7.984 kB / 350.5 MB, free: 2.562 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1278, allocations: 51.48 MB / 402 MB, free: 15.04 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3249/0.4527, allocations: 82.22 MB / 484.2 MB, free: 7.246 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002091/0.453, allocations: 84.58 kB / 484.3 MB, free: 7.207 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01595/0.4689, allocations: 6.408 MB / 490.7 MB, free: 1.809 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.469, allocations: 7.984 kB / 490.7 MB, free: 1.801 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.8e-05/0.469, allocations: 8 kB / 490.7 MB, free: 1.793 MB / 346.7 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.00107/0.4701, allocations: 0.686 MB / 491.4 MB, free: 1.098 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.4701, allocations: 12.03 kB / 491.4 MB, free: 1.086 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.499e-05/0.4702, allocations: 39.53 kB / 491.5 MB, free: 1.047 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005184/0.4707, allocations: 355.2 kB / 491.8 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.819e-05/0.4708, allocations: 26.14 kB / 491.8 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.672e-05/0.4708, allocations: 30.25 kB / 491.9 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004956/0.4713, allocations: 344 kB / 492.2 MB, free: 436 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.4713, allocations: 0 / 492.2 MB, free: 436 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.532e-05/0.4714, allocations: 13.25 kB / 492.2 MB, free: 432 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-06/0.4714, allocations: 8 kB / 492.2 MB, free: 424 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003651/0.4718, allocations: 229.1 kB / 492.5 MB, free: 276 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001705/0.4735, allocations: 1.328 MB / 493.8 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003674/0.4739, allocations: 256.4 kB / 494 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001797/0.4741, allocations: 101.3 kB / 494.1 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.877e-05/0.4741, allocations: 5.594 kB / 494.1 MB, free: 14.81 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.4741, allocations: 38.52 kB / 494.2 MB, free: 14.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=16): time 1.302e-06/0.4742, allocations: 0 / 494.2 MB, free: 14.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003261/0.4745, allocations: 175.4 kB / 494.3 MB, free: 14.62 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.782e-05/0.4745, allocations: 51.41 kB / 494.4 MB, free: 14.56 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003141/0.4748, allocations: 283.2 kB / 494.7 MB, free: 14.34 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.881e-05/0.4749, allocations: 33.52 kB / 494.7 MB, free: 14.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.475, allocations: 212.5 kB / 494.9 MB, free: 14.11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.524e-05/0.475, allocations: 51.2 kB / 495 MB, free: 14.06 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.443e-05/0.4751, allocations: 8 kB / 495 MB, free: 14.05 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.4752, allocations: 338.8 kB / 495.3 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.4753, allocations: 71.97 kB / 495.4 MB, free: 13.64 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001559/0.4755, allocations: 131.9 kB / 495.5 MB, free: 13.49 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001101/0.4756, allocations: 65.33 kB / 495.6 MB, free: 13.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.4756, allocations: 0 / 495.6 MB, free: 13.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003604/0.476, allocations: 238.5 kB / 495.8 MB, free: 13.19 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.476, allocations: 10.34 kB / 495.8 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.476, allocations: 3.953 kB / 495.8 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.476, allocations: 4 kB / 495.8 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001789/0.4762, allocations: 43.92 kB / 495.9 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.4762, allocations: 4 kB / 495.9 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004037/0.4766, allocations: 87.77 kB / 495.9 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.823e-05/0.4767, allocations: 16 kB / 496 MB, free: 13.03 MB / 362.7 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.on1,pulseSeries.on2,energy.local_reset) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.304e-05/0.4768, allocations: 117.8 kB / 496.1 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.452e-05/0.4768, allocations: 31.72 kB / 496.1 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003896/0.4772, allocations: 197.6 kB / 496.3 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.4772, allocations: 7.953 kB / 496.3 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.4772, allocations: 0 / 496.3 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.4772, allocations: 0 / 496.3 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007275/0.478, allocations: 0.6324 MB / 496.9 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.478, allocations: 0 / 496.9 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001589/0.4782, allocations: 31.94 kB / 497 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.4782, allocations: 4.031 kB / 497 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.074e-05/0.4782, allocations: 8 kB / 497 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.4782, allocations: 0 / 497 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.4782, allocations: 0 / 497 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004542/0.4787, allocations: 379.9 kB / 497.4 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.555e-05/0.4788, allocations: 112.8 kB / 497.5 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.014e-05/0.4788, allocations: 4.062 kB / 497.5 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004272/0.4793, allocations: 80.42 kB / 497.6 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001727/0.4794, allocations: 75.86 kB / 497.6 MB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.879e-05/0.4795, allocations: 8.75 kB / 497.6 MB, free: 11.25 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002238/0.4797, allocations: 227.1 kB / 497.9 MB, free: 11.03 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4797, allocations: 3.938 kB / 497.9 MB, free: 11.02 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003316/0.48, allocations: 95.69 kB / 498 MB, free: 10.93 MB / 362.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001571/0.4802, allocations: 115.2 kB / 498.1 MB, free: 10.8 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003099/0.4805, allocations: 173.8 kB / 498.2 MB, free: 10.64 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4805, allocations: 4 kB / 498.2 MB, free: 10.63 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000167/0.4807, allocations: 107.8 kB / 498.3 MB, free: 10.53 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003068/0.481, allocations: 52.38 kB / 498.4 MB, free: 10.48 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001105/0.4821, allocations: 0.5428 MB / 498.9 MB, free: 9.91 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002988/0.4825, allocations: 0.7794 MB / 499.7 MB, free: 9.105 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001462/0.4826, allocations: 42.05 kB / 499.8 MB, free: 9.062 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.4827, allocations: 19.44 kB / 499.8 MB, free: 9.043 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.4827, allocations: 0 / 499.8 MB, free: 9.043 MB / 362.7 MB Notification: Performance of Templates: time 0.006667/0.4894, allocations: 3.627 MB / 0.4916 GB, free: 5.512 MB / 362.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches