Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") translateModel(Modelica.Electrical.Batteries.Examples.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 87.66 kB / 16.31 MB, free: 5.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001355/0.001356, allocations: 178.7 kB / 17.2 MB, free: 5.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 223.3 MB / 241.2 MB, free: 5.438 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000336/0.0003365, allocations: 5.781 kB / 300.8 MB, free: 6.047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1241, allocations: 50.43 MB / 351.2 MB, free: 11.72 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004189/0.1283, allocations: 3.431 MB / 354.7 MB, free: 8.27 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002712/0.1311, allocations: 1.758 MB / 356.4 MB, free: 6.504 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003642/0.1315, allocations: 11.94 kB / 356.4 MB, free: 6.492 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001195/0.1327, allocations: 0.5489 MB / 357 MB, free: 5.941 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/BatteryStacks/CellRCStack.mo:14:26-14:33:writable] Warning: 'each' used when modifying non-array element v. Notification: Performance of NFTyping.typeBindings: time 0.0005498/0.1332, allocations: 302.7 kB / 357.3 MB, free: 5.645 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006187/0.1339, allocations: 212.4 kB / 357.5 MB, free: 5.441 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009812/0.1349, allocations: 0.8414 MB / 358.3 MB, free: 4.598 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004221/0.1353, allocations: 264.2 kB / 358.6 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000309/0.1356, allocations: 302.9 kB / 358.9 MB, free: 4.035 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004498/0.1361, allocations: 402.5 kB / 359.3 MB, free: 3.641 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.614e-05/0.1361, allocations: 36 kB / 359.3 MB, free: 3.605 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002224/0.1364, allocations: 87.98 kB / 359.4 MB, free: 3.52 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003152/0.1367, allocations: 430.7 kB / 359.8 MB, free: 3.098 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001827/0.1369, allocations: 241 kB / 360.1 MB, free: 2.855 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001156/0.138, allocations: 1.387 MB / 361.4 MB, free: 1.465 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.1381, allocations: 0 / 361.4 MB, free: 1.465 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1381, allocations: 4 kB / 361.4 MB, free: 1.461 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.023e-05/0.1381, allocations: 0 / 361.4 MB, free: 1.461 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.002754/0.1409, allocations: 1.604 MB / 363.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.1409, allocations: 8.031 kB / 363.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002353/0.1412, allocations: 158 kB / 363.2 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00158/0.1427, allocations: 1.103 MB / 364.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000308/0.1431, allocations: 144.3 kB / 364.5 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.527e-05/0.1431, allocations: 48 kB / 364.5 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001224/0.1444, allocations: 0.6749 MB / 365.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.1444, allocations: 0 / 365.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.271e-05/0.1445, allocations: 27.98 kB / 365.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.556e-05/0.1445, allocations: 12 kB / 365.2 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008608/0.1454, allocations: 451.7 kB / 365.7 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004288/0.1497, allocations: 2.922 MB / 368.6 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001043/0.1507, allocations: 473.2 kB / 369 MB, free: 9.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006708/0.1514, allocations: 340.7 kB / 369.4 MB, free: 9.254 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.842e-05/0.1514, allocations: 0 / 369.4 MB, free: 9.254 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.193e-05/0.1515, allocations: 38.56 kB / 369.4 MB, free: 9.207 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 3.156e-06/0.1515, allocations: 4 kB / 369.4 MB, free: 9.203 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.001987/0.1535, allocations: 0.83 MB / 370.2 MB, free: 8.344 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001313/0.1537, allocations: 269 kB / 370.5 MB, free: 8.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002873/0.1566, allocations: 2.23 MB / 372.7 MB, free: 5.777 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.274e-05/0.1566, allocations: 33.7 kB / 372.8 MB, free: 5.738 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006123/0.1572, allocations: 0.639 MB / 373.4 MB, free: 5.09 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/0.1573, allocations: 110.4 kB / 373.5 MB, free: 4.98 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.198e-05/0.1574, allocations: 8 kB / 373.5 MB, free: 4.973 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.1575, allocations: 322 kB / 373.8 MB, free: 4.652 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004128/0.1579, allocations: 172.6 kB / 374 MB, free: 4.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005224/0.1585, allocations: 316.6 kB / 374.3 MB, free: 4.117 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004451/0.1589, allocations: 211.8 kB / 374.5 MB, free: 3.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.1589, allocations: 4 kB / 374.5 MB, free: 3.906 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001291/0.1602, allocations: 0.6371 MB / 375.2 MB, free: 3.258 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.587e-05/0.1603, allocations: 7.938 kB / 375.2 MB, free: 3.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.447e-06/0.1603, allocations: 4 kB / 375.2 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003209/0.1606, allocations: 76.88 kB / 375.3 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004082/0.161, allocations: 99.86 kB / 375.4 MB, free: 3.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001811/0.1629, allocations: 1.619 MB / 377 MB, free: 1.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004433/0.1633, allocations: 63.73 kB / 377 MB, free: 1.258 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.88e-05/0.1634, allocations: 16 kB / 377 MB, free: 1.242 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0007404/0.1641, allocations: 481.5 kB / 377.5 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002133/0.1643, allocations: 138.3 kB / 377.7 MB, free: 0.625 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002192/0.1645, allocations: 161.5 kB / 377.8 MB, free: 472 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-05/0.1646, allocations: 4 kB / 377.8 MB, free: 468 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.1646, allocations: 0 / 377.8 MB, free: 468 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1646, allocations: 0 / 377.8 MB, free: 468 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002708/0.1673, allocations: 1.719 MB / 379.5 MB, free: 14.67 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.1673, allocations: 0 / 379.5 MB, free: 14.67 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003463/0.1677, allocations: 75.88 kB / 379.6 MB, free: 14.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001845/0.1679, allocations: 68.83 kB / 379.7 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.186e-05/0.1679, allocations: 8 kB / 379.7 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001527/0.1694, allocations: 1.572 MB / 381.3 MB, free: 12.81 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1694, allocations: 0 / 381.3 MB, free: 12.81 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001713/0.1712, allocations: 0.8639 MB / 382.1 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004731/0.1717, allocations: 331.3 kB / 382.4 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001105/0.1718, allocations: 8 kB / 382.5 MB, free: 11.56 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004491/0.1722, allocations: 67.94 kB / 382.5 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.588e-05/0.1723, allocations: 31.91 kB / 382.5 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.882e-05/0.1724, allocations: 20.05 kB / 382.6 MB, free: 11.45 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002391/0.1748, allocations: 1.596 MB / 384.2 MB, free: 9.852 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.1748, allocations: 0 / 384.2 MB, free: 9.852 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008897/0.1757, allocations: 211.6 kB / 384.4 MB, free: 9.645 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 25 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001353/0.177, allocations: 474.4 kB / 384.8 MB, free: 9.359 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001277/0.1783, allocations: 0.534 MB / 385.4 MB, free: 8.812 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.505e-06/0.1784, allocations: 3.906 kB / 385.4 MB, free: 8.809 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005931/0.179, allocations: 327 kB / 385.7 MB, free: 8.477 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001041/0.18, allocations: 193.1 kB / 385.9 MB, free: 8.285 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004633/0.1847, allocations: 2.948 MB / 388.8 MB, free: 5.301 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001025/0.1857, allocations: 1.253 MB / 390.1 MB, free: 4.023 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005204/0.1862, allocations: 219.8 kB / 390.3 MB, free: 3.805 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000194/0.1864, allocations: 71.42 kB / 390.4 MB, free: 3.734 MB / 318.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1864, allocations: 0 / 390.4 MB, free: 3.734 MB / 318.1 MB Notification: Performance of Templates: time 0.02316/0.2096, allocations: 12.75 MB / 403.1 MB, free: 7.078 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches