Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001179/0.001179, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 221.5 MB / 230.3 MB, free: 7.539 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009291/0.0009292, allocations: 94.09 kB / 281.2 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.449e-05/1.453e-05, allocations: 4 kB / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09098/0.09101, allocations: 50.41 MB / 387.4 MB, free: 7.59 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3244/0.4155, allocations: 80.74 MB / 468.2 MB, free: 14.14 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002239/0.4157, allocations: 75.95 kB / 468.3 MB, free: 14.06 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01714/0.4329, allocations: 6.294 MB / 474.6 MB, free: 7.746 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4329, allocations: 0 / 474.6 MB, free: 7.746 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.951e-05/0.4329, allocations: 8 kB / 474.6 MB, free: 7.738 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.001206/0.4341, allocations: 0.698 MB / 475.3 MB, free: 6.992 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.4342, allocations: 8.031 kB / 475.3 MB, free: 6.984 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.869e-05/0.4343, allocations: 39.53 kB / 475.3 MB, free: 6.945 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005903/0.4349, allocations: 361.3 kB / 475.7 MB, free: 6.555 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.989e-05/0.4349, allocations: 12 kB / 475.7 MB, free: 6.543 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.459e-05/0.435, allocations: 16 kB / 475.7 MB, free: 6.527 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004188/0.4354, allocations: 209.5 kB / 475.9 MB, free: 6.324 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005219/0.4359, allocations: 294.6 kB / 476.2 MB, free: 6.02 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.4359, allocations: 4 kB / 476.2 MB, free: 6.016 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.962e-05/0.436, allocations: 0 / 476.2 MB, free: 6.016 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.436, allocations: 12 kB / 476.2 MB, free: 6.004 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001702/0.4377, allocations: 1.256 MB / 477.4 MB, free: 4.676 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003652/0.4381, allocations: 248.2 kB / 477.7 MB, free: 4.406 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001832/0.4383, allocations: 104.8 kB / 477.8 MB, free: 4.301 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.342e-05/0.4383, allocations: 7.984 kB / 477.8 MB, free: 4.293 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.206e-05/0.4384, allocations: 30.56 kB / 477.8 MB, free: 4.254 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 3.888e-06/0.4384, allocations: 3.984 kB / 477.8 MB, free: 4.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.002462/0.4408, allocations: 0.6938 MB / 478.5 MB, free: 3.551 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.876e-05/0.4409, allocations: 59.72 kB / 478.6 MB, free: 3.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002849/0.4412, allocations: 266 kB / 478.8 MB, free: 3.215 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.4412, allocations: 25.7 kB / 478.9 MB, free: 3.184 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/0.4413, allocations: 215.7 kB / 479.1 MB, free: 2.969 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.935e-05/0.4414, allocations: 51.2 kB / 479.1 MB, free: 2.918 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.398e-05/0.4414, allocations: 0 / 479.1 MB, free: 2.918 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.4415, allocations: 346.7 kB / 479.5 MB, free: 2.57 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/0.4417, allocations: 63.98 kB / 479.5 MB, free: 2.508 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001612/0.4418, allocations: 128.9 kB / 479.7 MB, free: 2.355 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002273/0.4441, allocations: 0.6062 MB / 480.3 MB, free: 1.75 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.4441, allocations: 0 / 480.3 MB, free: 1.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.002501/0.4466, allocations: 0.7466 MB / 481 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.4467, allocations: 5.562 kB / 481 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.4467, allocations: 8.25 kB / 481 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.4467, allocations: 4 kB / 481 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001965/0.4469, allocations: 47.91 kB / 481.1 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.4469, allocations: 4 kB / 481.1 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004278/0.4474, allocations: 79.77 kB / 481.2 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.888e-05/0.4474, allocations: 12 kB / 481.2 MB, free: 0.8398 MB / 346.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 0.0001023/0.4475, allocations: 112.9 kB / 481.3 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.527e-05/0.4476, allocations: 23.72 kB / 481.3 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002525/0.4501, allocations: 0.7255 MB / 482 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.4501, allocations: 0 / 482 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.4501, allocations: 0 / 482 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.4501, allocations: 3.984 kB / 482 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002918/0.4531, allocations: 1.107 MB / 483.1 MB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.4531, allocations: 0 / 483.1 MB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001873/0.4533, allocations: 35.92 kB / 483.2 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.66e-06/0.4533, allocations: 0 / 483.2 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.224e-05/0.4533, allocations: 7.984 kB / 483.2 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.4533, allocations: 8.031 kB / 483.2 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.4533, allocations: 0 / 483.2 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002548/0.4559, allocations: 0.8995 MB / 484.1 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.53e-05/0.456, allocations: 108.8 kB / 484.2 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.563e-05/0.4561, allocations: 3.938 kB / 484.2 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004375/0.4565, allocations: 79.98 kB / 484.3 MB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001737/0.4567, allocations: 71.86 kB / 484.3 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-05/0.4567, allocations: 15.95 kB / 484.4 MB, free: 13.54 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002185/0.4569, allocations: 206 kB / 484.6 MB, free: 13.34 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4569, allocations: 0 / 484.6 MB, free: 13.34 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003976/0.4573, allocations: 83.69 kB / 484.6 MB, free: 13.26 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.0001707/0.4575, allocations: 107.2 kB / 484.7 MB, free: 13.15 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002903/0.4578, allocations: 167.8 kB / 484.9 MB, free: 12.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.175e-06/0.4578, allocations: 0 / 484.9 MB, free: 12.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001537/0.458, allocations: 103.9 kB / 485 MB, free: 12.88 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002866/0.4583, allocations: 39.17 kB / 485.1 MB, free: 12.85 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/0.4594, allocations: 0.534 MB / 485.6 MB, free: 12.28 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003408/0.4598, allocations: 0.7833 MB / 486.4 MB, free: 11.47 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001383/0.4599, allocations: 34.06 kB / 486.4 MB, free: 11.44 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.689e-05/0.46, allocations: 23.42 kB / 486.4 MB, free: 11.42 MB / 362.7 MB Notification: Performance of SimCode: time 2.9e-07/0.46, allocations: 8 kB / 486.4 MB, free: 11.41 MB / 362.7 MB Notification: Performance of Templates: time 0.00587/0.4659, allocations: 2.879 MB / 489.3 MB, free: 8.562 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches