Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 80.72 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 143.7 kB / 25.59 MB, free: 8.605 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9532/0.9532, allocations: 173.4 MB / 202.2 MB, free: 8.285 MB / 186.7 MB " [Timeout remaining time 179] 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.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 269.2 MB, free: 9.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.194e-05/2.327e-05, allocations: 2.312 kB / 269.2 MB, free: 9.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.005122/0.005145, allocations: 5.282 MB / 274.5 MB, free: 4.516 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002394/0.007539, allocations: 1.684 MB / 276.1 MB, free: 2.84 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003753/0.007914, allocations: 19.88 kB / 276.2 MB, free: 2.82 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008503/0.008764, allocations: 0.5149 MB / 276.7 MB, free: 2.305 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005972/0.009362, allocations: 358.5 kB / 277 MB, free: 1.953 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006017/0.009963, allocations: 375.2 kB / 277.4 MB, free: 1.586 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008696/0.01083, allocations: 0.9118 MB / 278.3 MB, free: 0.668 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003513/0.01118, allocations: 221.4 kB / 278.5 MB, free: 460 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005835/0.01177, allocations: 0.5223 MB / 279 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000469/0.01224, allocations: 391 kB / 279.4 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.993e-05/0.01233, allocations: 76 kB / 279.5 MB, free: 15.47 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001596/0.01249, allocations: 111.9 kB / 279.6 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003375/0.01282, allocations: 0.5883 MB / 280.2 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003587/0.01318, allocations: 442.6 kB / 280.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009776/0.01416, allocations: 1.199 MB / 281.8 MB, free: 13.13 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.01416, allocations: 0 / 281.8 MB, free: 13.13 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.01416, allocations: 0 / 281.8 MB, free: 13.13 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.761e-05/0.01418, allocations: 4 kB / 281.8 MB, free: 13.13 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002032/0.01621, allocations: 2.184 MB / 284 MB, free: 10.9 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.01625, allocations: 8.031 kB / 284 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002113/0.01646, allocations: 235.7 kB / 284.2 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009152/0.01738, allocations: 0.9492 MB / 285.2 MB, free: 9.68 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.323e-05/0.01746, allocations: 88.97 kB / 285.3 MB, free: 9.578 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.527e-05/0.01751, allocations: 59.94 kB / 285.3 MB, free: 9.52 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005662/0.01808, allocations: 0.7089 MB / 286 MB, free: 8.684 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.01809, allocations: 0 / 286 MB, free: 8.684 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.368e-05/0.01813, allocations: 27.98 kB / 286.1 MB, free: 8.656 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.01814, allocations: 12 kB / 286.1 MB, free: 8.645 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001768/0.01831, allocations: 126.8 kB / 286.2 MB, free: 8.52 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002194/0.02051, allocations: 2.615 MB / 288.8 MB, free: 5.805 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003505/0.02086, allocations: 201.8 kB / 289 MB, free: 5.598 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001452/0.021, allocations: 107.9 kB / 289.1 MB, free: 5.488 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.432e-05/0.02103, allocations: 4 kB / 289.1 MB, free: 5.484 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/0.02105, allocations: 37.39 kB / 289.2 MB, free: 5.438 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.633e-06/0.02105, allocations: 0 / 289.2 MB, free: 5.438 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006217/0.02167, allocations: 398 kB / 289.6 MB, free: 5.039 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.936e-05/0.02174, allocations: 213.6 kB / 289.8 MB, free: 4.781 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001495/0.02324, allocations: 1.914 MB / 291.7 MB, free: 2.809 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.045e-05/0.02326, allocations: 29.7 kB / 291.7 MB, free: 2.773 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005852/0.02384, allocations: 0.9898 MB / 292.7 MB, free: 1.777 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.615e-05/0.02389, allocations: 75.36 kB / 292.8 MB, free: 1.703 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.395e-05/0.02398, allocations: 75.61 kB / 292.8 MB, free: 1.621 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.02409, allocations: 0.4887 MB / 293.3 MB, free: 1.125 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.918e-05/0.02414, allocations: 32.62 kB / 293.4 MB, free: 1.094 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001831/0.02432, allocations: 412.1 kB / 293.8 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001932/0.02452, allocations: 257.3 kB / 294 MB, free: 244 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.02452, allocations: 4 kB / 294 MB, free: 240 kB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003958/0.02492, allocations: 404 kB / 294.4 MB, free: 15.82 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.02493, allocations: 7.938 kB / 294.4 MB, free: 15.82 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.02494, allocations: 4 kB / 294.4 MB, free: 15.81 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001383/0.02508, allocations: 51.91 kB / 294.5 MB, free: 15.76 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/0.02522, allocations: 67.91 kB / 294.5 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009751/0.0262, allocations: 2.052 MB / 296.6 MB, free: 13.53 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001964/0.02639, allocations: 59.72 kB / 296.7 MB, free: 13.47 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.523e-05/0.02641, allocations: 8 kB / 296.7 MB, free: 13.46 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 4 (cell.cell.limIntegrator.local_reset,cell.limIntegrator.local_reset,energy.local_reset,cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001691/0.02658, allocations: 184.5 kB / 296.8 MB, free: 13.27 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001269/0.0267, allocations: 174.9 kB / 297 MB, free: 13.1 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003601/0.02706, allocations: 307.2 kB / 297.3 MB, free: 12.79 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.02707, allocations: 8 kB / 297.3 MB, free: 12.79 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-06/0.02707, allocations: 0 / 297.3 MB, free: 12.79 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.02707, allocations: 0 / 297.3 MB, free: 12.79 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001109/0.02818, allocations: 1.141 MB / 298.5 MB, free: 11.6 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.02818, allocations: 0 / 298.5 MB, free: 11.6 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.02829, allocations: 40.02 kB / 298.5 MB, free: 11.56 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.26e-05/0.02836, allocations: 31.66 kB / 298.5 MB, free: 11.52 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.327e-05/0.02837, allocations: 8 kB / 298.5 MB, free: 11.52 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008222/0.02919, allocations: 2.024 MB / 300.6 MB, free: 9.379 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.02919, allocations: 0 / 300.6 MB, free: 9.379 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004166/0.02961, allocations: 0.5279 MB / 301.1 MB, free: 8.82 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000249/0.02986, allocations: 246.8 kB / 301.3 MB, free: 8.578 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.945e-05/0.02993, allocations: 8 kB / 301.3 MB, free: 8.57 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001662/0.0301, allocations: 31.98 kB / 301.4 MB, free: 8.539 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.879e-05/0.03015, allocations: 27.94 kB / 301.4 MB, free: 8.512 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.101e-05/0.03017, allocations: 8 kB / 301.4 MB, free: 8.504 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0008201/0.03099, allocations: 1.046 MB / 302.5 MB, free: 7.434 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.03099, allocations: 0 / 302.5 MB, free: 7.434 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000459/0.03144, allocations: 203.6 kB / 302.7 MB, free: 7.234 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007158/0.03216, allocations: 341.5 kB / 303 MB, free: 7.008 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003593/0.03252, allocations: 345.1 kB / 303.3 MB, free: 6.648 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.03252, allocations: 0 / 303.3 MB, free: 6.648 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001744/0.0327, allocations: 244.9 kB / 303.6 MB, free: 6.391 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005572/0.03325, allocations: 208.4 kB / 303.8 MB, free: 6.191 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002694/0.03595, allocations: 2.41 MB / 306.2 MB, free: 3.727 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002461/0.03619, allocations: 346 kB / 306.5 MB, free: 3.363 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002353/0.03643, allocations: 142.2 kB / 306.7 MB, free: 3.219 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003556/0.03678, allocations: 290.1 kB / 306.9 MB, free: 2.934 MB / 282.7 MB Notification: Performance of SimCode: time 7.11e-07/0.03679, allocations: 0 / 306.9 MB, free: 2.934 MB / 282.7 MB Notification: Performance of Templates: time 0.02262/0.0594, allocations: 16.86 MB / 323.8 MB, free: 2.219 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.137922195252031]