Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001038/0.001038, allocations: 71.77 kB / 21.69 MB, free: 2.855 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009038/0.0009038, allocations: 165.7 kB / 24.99 MB, free: 8.789 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.055/1.055, allocations: 177.1 MB / 205.3 MB, free: 5.656 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.013e-06/2.013e-06, allocations: 0 / 273 MB, free: 1.883 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.61e-05/2.811e-05, allocations: 2.312 kB / 273 MB, free: 1.879 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006118/0.006146, allocations: 5.436 MB / 278.5 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003205/0.009352, allocations: 1.839 MB / 280.3 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004879/0.009839, allocations: 19.88 kB / 280.3 MB, free: 10.55 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001131/0.01097, allocations: 0.5172 MB / 280.9 MB, free: 10.03 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007649/0.01174, allocations: 409.7 kB / 281.3 MB, free: 9.629 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008469/0.01258, allocations: 359.3 kB / 281.6 MB, free: 9.277 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001184/0.01377, allocations: 0.9235 MB / 282.5 MB, free: 8.352 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004714/0.01424, allocations: 229.2 kB / 282.8 MB, free: 8.121 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006523/0.01489, allocations: 0.5185 MB / 283.3 MB, free: 7.602 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000476/0.01537, allocations: 387 kB / 283.6 MB, free: 7.223 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001167/0.01548, allocations: 80 kB / 283.7 MB, free: 7.145 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002598/0.01574, allocations: 123.9 kB / 283.8 MB, free: 7.023 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000624/0.01637, allocations: 0.5961 MB / 284.4 MB, free: 6.426 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006513/0.01702, allocations: 434.7 kB / 284.9 MB, free: 6 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001673/0.01869, allocations: 1.203 MB / 286.1 MB, free: 4.793 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.0187, allocations: 0 / 286.1 MB, free: 4.793 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.0187, allocations: 0 / 286.1 MB, free: 4.793 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.308e-05/0.01876, allocations: 3.938 kB / 286.1 MB, free: 4.789 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.003026/0.02179, allocations: 2.223 MB / 288.3 MB, free: 2.52 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.509e-05/0.02184, allocations: 12.03 kB / 288.3 MB, free: 2.508 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003056/0.02215, allocations: 235.7 kB / 288.5 MB, free: 2.277 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001342/0.02349, allocations: 1.043 MB / 289.6 MB, free: 1.203 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/0.0236, allocations: 96.97 kB / 289.7 MB, free: 1.094 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.372e-05/0.02366, allocations: 55.94 kB / 289.7 MB, free: 1.039 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008095/0.02447, allocations: 0.7363 MB / 290.5 MB, free: 184 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.02449, allocations: 3.938 kB / 290.5 MB, free: 180 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.498e-05/0.02452, allocations: 20 kB / 290.5 MB, free: 160 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.02454, allocations: 12 kB / 290.5 MB, free: 148 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1204/0.1449, allocations: 162.3 kB / 290.7 MB, free: 28.26 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003862/0.1488, allocations: 3.007 MB / 293.7 MB, free: 26.74 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005375/0.1493, allocations: 216.6 kB / 293.9 MB, free: 26.67 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002416/0.1496, allocations: 111 kB / 294 MB, free: 26.64 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.869e-05/0.1496, allocations: 4.688 kB / 294 MB, free: 26.64 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.536e-05/0.1496, allocations: 42.77 kB / 294 MB, free: 26.59 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.884e-06/0.1496, allocations: 0 / 294 MB, free: 26.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009617/0.1506, allocations: 425.8 kB / 294.5 MB, free: 26.46 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.497e-05/0.1507, allocations: 213.7 kB / 294.7 MB, free: 26.21 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002746/0.1534, allocations: 2.021 MB / 296.7 MB, free: 25.4 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.361e-05/0.1534, allocations: 36.41 kB / 296.7 MB, free: 25.37 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006891/0.1541, allocations: 0.9751 MB / 297.7 MB, free: 24.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.157e-05/0.1542, allocations: 79.53 kB / 297.8 MB, free: 24.61 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.1543, allocations: 75.03 kB / 297.8 MB, free: 24.55 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.193e-05/0.1543, allocations: 0.4922 MB / 298.3 MB, free: 24.06 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001115/0.1544, allocations: 40.47 kB / 298.4 MB, free: 24.05 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002107/0.1546, allocations: 417.2 kB / 298.8 MB, free: 23.58 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002863/0.1549, allocations: 275.6 kB / 299.1 MB, free: 23.33 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.1549, allocations: 1.531 kB / 299.1 MB, free: 23.33 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006512/0.1556, allocations: 428 kB / 299.5 MB, free: 23.13 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.1556, allocations: 7.922 kB / 299.5 MB, free: 23.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.1556, allocations: 2.75 kB / 299.5 MB, free: 23.13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002082/0.1558, allocations: 44.3 kB / 299.5 MB, free: 23.11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002023/0.156, allocations: 69.56 kB / 299.6 MB, free: 23.1 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001004/0.157, allocations: 2.085 MB / 301.7 MB, free: 21.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002994/0.1573, allocations: 52.19 kB / 301.7 MB, free: 21.05 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.343e-05/0.1573, allocations: 12.23 kB / 301.7 MB, free: 21.05 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.0001942/0.1575, allocations: 194.7 kB / 301.9 MB, free: 20.87 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000177/0.1577, allocations: 176 kB / 302.1 MB, free: 20.77 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005102/0.1582, allocations: 316.1 kB / 302.4 MB, free: 20.63 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.1582, allocations: 5.844 kB / 302.4 MB, free: 20.63 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.1582, allocations: 6.266 kB / 302.4 MB, free: 20.63 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.1582, allocations: 0.5625 kB / 302.4 MB, free: 20.63 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001994/0.1602, allocations: 1.517 MB / 303.9 MB, free: 19.83 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.1602, allocations: 3.594 kB / 303.9 MB, free: 19.83 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001446/0.1604, allocations: 38.36 kB / 304 MB, free: 19.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.838e-05/0.1605, allocations: 34.19 kB / 304 MB, free: 19.81 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.864e-05/0.1605, allocations: 7.875 kB / 304 MB, free: 19.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000722/0.1612, allocations: 2.042 MB / 306.1 MB, free: 17.78 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1612, allocations: 2.375 kB / 306.1 MB, free: 17.78 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006387/0.1619, allocations: 0.5522 MB / 306.6 MB, free: 17.42 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004141/0.1623, allocations: 286.5 kB / 306.9 MB, free: 17.27 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001157/0.1624, allocations: 6.625 kB / 306.9 MB, free: 17.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002646/0.1627, allocations: 29.8 kB / 306.9 MB, free: 17.27 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.538e-05/0.1627, allocations: 31.58 kB / 307 MB, free: 17.26 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.518e-05/0.1628, allocations: 5.938 kB / 307 MB, free: 17.26 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001544/0.1643, allocations: 1.157 MB / 308.1 MB, free: 16.84 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1643, allocations: 0 / 308.1 MB, free: 16.84 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006899/0.165, allocations: 218.6 kB / 308.3 MB, free: 16.81 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.0007493/0.1657, allocations: 343.8 kB / 308.7 MB, free: 16.69 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000422/0.1662, allocations: 351 kB / 309 MB, free: 16.46 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1662, allocations: 1.219 kB / 309 MB, free: 16.46 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001715/0.1663, allocations: 257.4 kB / 309.3 MB, free: 16.26 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005796/0.1669, allocations: 212.5 kB / 309.5 MB, free: 16.16 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002546/0.1695, allocations: 2.394 MB / 311.9 MB, free: 14.78 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001919/0.1697, allocations: 350 kB / 312.2 MB, free: 14.41 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000207/0.1699, allocations: 142.2 kB / 312.4 MB, free: 14.27 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.17, allocations: 80.5 kB / 312.4 MB, free: 14.19 MB / 266.7 MB Notification: Performance of SimCode: time 7.51e-07/0.17, allocations: 0 / 312.4 MB, free: 14.19 MB / 266.7 MB Notification: Performance of Templates: time 0.01809/0.1881, allocations: 15.59 MB / 328 MB, free: 14.74 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.373729503946379]