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.001606/0.001606, allocations: 84.66 kB / 20.95 MB, free: 3.453 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.001581/0.001581, allocations: 153.1 kB / 24.26 MB, free: 152 kB / 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 1.455/1.455, allocations: 173.4 MB / 200.8 MB, free: 9.273 MB / 186.7 MB " [Timeout remaining time 178] 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.322e-06/1.322e-06, allocations: 0 / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.756e-05/3.888e-05, allocations: 2.312 kB / 267.3 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.008516/0.008555, allocations: 4.917 MB / 272.2 MB, free: 1.785 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003569/0.01212, allocations: 1.64 MB / 273.9 MB, free: 144 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003915/0.01252, allocations: 19.88 kB / 273.9 MB, free: 124 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00125/0.01377, allocations: 0.5172 MB / 274.4 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008313/0.0146, allocations: 357.9 kB / 274.7 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009376/0.01553, allocations: 383.2 kB / 275.1 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001502/0.01704, allocations: 0.9117 MB / 276 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004485/0.01748, allocations: 213.4 kB / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007142/0.0182, allocations: 0.5223 MB / 276.8 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005508/0.01875, allocations: 371.1 kB / 277.1 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001302/0.01888, allocations: 80 kB / 277.2 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002389/0.01912, allocations: 119.9 kB / 277.3 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005771/0.0197, allocations: 0.5961 MB / 277.9 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005244/0.02022, allocations: 430.7 kB / 278.3 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002449/0.02267, allocations: 2.064 MB / 280.4 MB, free: 9.574 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.02268, allocations: 0 / 280.4 MB, free: 9.574 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.02268, allocations: 3.938 kB / 280.4 MB, free: 9.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.375e-05/0.0227, allocations: 0 / 280.4 MB, free: 9.57 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.003791/0.02649, allocations: 2.038 MB / 282.4 MB, free: 7.492 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.02654, allocations: 8.031 kB / 282.4 MB, free: 7.484 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004168/0.02696, allocations: 231.7 kB / 282.7 MB, free: 7.258 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003019/0.02997, allocations: 1.474 MB / 284.1 MB, free: 5.754 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001471/0.03012, allocations: 92.95 kB / 284.2 MB, free: 5.648 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.03022, allocations: 55.94 kB / 284.3 MB, free: 5.594 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001415/0.03164, allocations: 0.8403 MB / 285.1 MB, free: 4.645 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.03166, allocations: 3.984 kB / 285.1 MB, free: 4.641 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.743e-05/0.03171, allocations: 20 kB / 285.2 MB, free: 4.621 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.634e-05/0.03173, allocations: 12 kB / 285.2 MB, free: 4.609 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008175/0.03255, allocations: 339.8 kB / 285.5 MB, free: 4.277 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004999/0.03755, allocations: 2.866 MB / 288.4 MB, free: 1.312 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001214/0.03876, allocations: 361.9 kB / 288.7 MB, free: 0.9531 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000544/0.0393, allocations: 175.7 kB / 288.9 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.497e-05/0.03934, allocations: 4 kB / 288.9 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.249e-05/0.03938, allocations: 42.56 kB / 288.9 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.673e-06/0.03938, allocations: 0 / 288.9 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.002156/0.04154, allocations: 0.6259 MB / 289.6 MB, free: 92 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1167/0.1582, allocations: 209.6 kB / 289.8 MB, free: 31.93 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003904/0.1621, allocations: 2.851 MB / 292.6 MB, free: 31.3 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.538e-05/0.1622, allocations: 32.55 kB / 292.6 MB, free: 31.27 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006399/0.1629, allocations: 0.7904 MB / 293.4 MB, free: 30.75 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.488e-05/0.1629, allocations: 76.22 kB / 293.5 MB, free: 30.74 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001253/0.1631, allocations: 72.14 kB / 293.6 MB, free: 30.69 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.381e-05/0.1631, allocations: 317.2 kB / 293.9 MB, free: 30.38 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003974/0.1635, allocations: 125 kB / 294 MB, free: 30.35 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004816/0.164, allocations: 441.3 kB / 294.4 MB, free: 29.93 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000724/0.1647, allocations: 361.4 kB / 294.8 MB, free: 29.72 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.1647, allocations: 4.5 kB / 294.8 MB, free: 29.72 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001385/0.1661, allocations: 0.5671 MB / 295.4 MB, free: 29.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.1662, allocations: 14.59 kB / 295.4 MB, free: 29.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.1662, allocations: 4.406 kB / 295.4 MB, free: 29.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002903/0.1665, allocations: 62.55 kB / 295.5 MB, free: 29.47 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000292/0.1667, allocations: 75 kB / 295.5 MB, free: 29.46 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001307/0.1681, allocations: 1.593 MB / 297.1 MB, free: 28.01 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004299/0.1685, allocations: 58.77 kB / 297.2 MB, free: 27.99 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.594e-05/0.1685, allocations: 12.72 kB / 297.2 MB, free: 27.99 MB / 266.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 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * 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.0006587/0.1692, allocations: 0.5781 MB / 297.8 MB, free: 27.72 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002042/0.1694, allocations: 176.4 kB / 297.9 MB, free: 27.62 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001212/0.1706, allocations: 0.5102 MB / 298.4 MB, free: 27.45 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.1706, allocations: 4.094 kB / 298.5 MB, free: 27.45 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/0.1706, allocations: 0.6094 kB / 298.5 MB, free: 27.45 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.1706, allocations: 5.297 kB / 298.5 MB, free: 27.45 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002423/0.173, allocations: 1.416 MB / 299.9 MB, free: 26.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.173, allocations: 0 / 299.9 MB, free: 26.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002246/0.1732, allocations: 46.06 kB / 299.9 MB, free: 26.81 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001515/0.1734, allocations: 46.17 kB / 300 MB, free: 26.8 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.078e-05/0.1734, allocations: 7.219 kB / 300 MB, free: 26.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001055/0.1745, allocations: 1.551 MB / 301.5 MB, free: 25.34 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1745, allocations: 0 / 301.5 MB, free: 25.34 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001429/0.1759, allocations: 0.7146 MB / 302.2 MB, free: 24.97 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005688/0.1765, allocations: 307.4 kB / 302.5 MB, free: 24.82 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001674/0.1766, allocations: 10 kB / 302.5 MB, free: 24.81 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004335/0.1771, allocations: 47.11 kB / 302.6 MB, free: 24.8 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.1772, allocations: 28.83 kB / 302.6 MB, free: 24.8 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.1772, allocations: 10.91 kB / 302.6 MB, free: 24.8 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.002381/0.1796, allocations: 2.034 MB / 304.7 MB, free: 24.11 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1796, allocations: 0 / 304.7 MB, free: 24.11 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007479/0.1803, allocations: 203.6 kB / 304.9 MB, free: 24.09 MB / 266.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.001613/0.1819, allocations: 398.8 kB / 305.3 MB, free: 23.96 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009449/0.1829, allocations: 425.7 kB / 305.7 MB, free: 23.75 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.1829, allocations: 3.656 kB / 305.7 MB, free: 23.75 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004465/0.1833, allocations: 266.7 kB / 305.9 MB, free: 23.6 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008895/0.1842, allocations: 209.2 kB / 306.1 MB, free: 23.48 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003937/0.1882, allocations: 3.075 MB / 309.2 MB, free: 20.53 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006237/0.1888, allocations: 0.7655 MB / 310 MB, free: 19.73 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003719/0.1892, allocations: 238.4 kB / 310.2 MB, free: 19.49 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001886/0.1893, allocations: 80.5 kB / 310.3 MB, free: 19.41 MB / 266.7 MB Notification: Performance of SimCode: time 5.51e-07/0.1893, allocations: 0 / 310.3 MB, free: 19.41 MB / 266.7 MB Notification: Performance of Templates: time 0.02184/0.2112, allocations: 15.62 MB / 325.9 MB, free: 3.926 MB / 266.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.906206362997182]