Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.001934/0.001934, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.001997/0.001997, allocations: 161.6 kB / 24.27 MB, free: 156 kB / 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.666/1.666, allocations: 177.1 MB / 204.6 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 178] 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_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.853e-06/1.853e-06, allocations: 0 / 272.3 MB, free: 1.871 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.754e-05/2.939e-05, allocations: 2.312 kB / 272.3 MB, free: 1.867 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.01035/0.01038, allocations: 5.923 MB / 278.2 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005067/0.01545, allocations: 2.259 MB / 280.5 MB, free: 9.648 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007593/0.01621, allocations: 19.88 kB / 280.5 MB, free: 9.629 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001678/0.01788, allocations: 0.6144 MB / 281.1 MB, free: 9.012 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001192/0.01908, allocations: 465.3 kB / 281.6 MB, free: 8.555 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009468/0.02002, allocations: 411.2 kB / 282 MB, free: 8.152 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002149/0.02217, allocations: 1.348 MB / 283.3 MB, free: 6.801 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006867/0.02286, allocations: 290.3 kB / 283.6 MB, free: 6.504 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001202/0.02406, allocations: 0.7173 MB / 284.3 MB, free: 5.785 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008151/0.02488, allocations: 0.5262 MB / 284.8 MB, free: 5.258 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000185/0.02506, allocations: 116 kB / 285 MB, free: 5.145 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003749/0.02544, allocations: 171.9 kB / 285.1 MB, free: 4.977 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006481/0.02608, allocations: 0.674 MB / 285.8 MB, free: 4.301 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007853/0.02687, allocations: 0.5258 MB / 286.3 MB, free: 3.773 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002992/0.02986, allocations: 2.594 MB / 288.9 MB, free: 1.172 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.094e-06/0.02987, allocations: 7.938 kB / 288.9 MB, free: 1.164 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.02987, allocations: 0 / 288.9 MB, free: 1.164 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.837e-05/0.0299, allocations: 0 / 288.9 MB, free: 1.164 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.1236/0.1535, allocations: 2.663 MB / 291.6 MB, free: 27.25 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.1535, allocations: 8.875 kB / 291.6 MB, free: 27.25 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003635/0.1539, allocations: 275.2 kB / 291.9 MB, free: 27.11 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002243/0.1561, allocations: 1.239 MB / 293.1 MB, free: 26.53 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001284/0.1562, allocations: 182.6 kB / 293.3 MB, free: 26.35 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.1563, allocations: 70.25 kB / 293.4 MB, free: 26.33 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001384/0.1577, allocations: 1.234 MB / 294.6 MB, free: 25.41 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.136e-05/0.1577, allocations: 0.6562 kB / 294.6 MB, free: 25.41 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.252e-05/0.1578, allocations: 27.84 kB / 294.6 MB, free: 25.39 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.823e-05/0.1578, allocations: 20.12 kB / 294.6 MB, free: 25.38 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009236/0.1587, allocations: 0.5111 MB / 295.1 MB, free: 25.2 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005976/0.1647, allocations: 4.439 MB / 299.6 MB, free: 22.55 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.1658, allocations: 482.4 kB / 300.1 MB, free: 22.36 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006806/0.1665, allocations: 327.8 kB / 300.4 MB, free: 22.27 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.905e-05/0.1666, allocations: 10.78 kB / 300.4 MB, free: 22.26 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.193e-05/0.1666, allocations: 42.08 kB / 300.4 MB, free: 22.21 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 2.114e-06/0.1666, allocations: 0 / 300.4 MB, free: 22.21 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.002043/0.1686, allocations: 0.7836 MB / 301.2 MB, free: 21.91 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.646e-05/0.1687, allocations: 268.8 kB / 301.5 MB, free: 21.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003674/0.1723, allocations: 2.616 MB / 304.1 MB, free: 20.51 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.939e-05/0.1724, allocations: 33.58 kB / 304.1 MB, free: 20.47 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008953/0.1733, allocations: 1.178 MB / 305.3 MB, free: 19.62 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.1734, allocations: 132 kB / 305.4 MB, free: 19.53 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001586/0.1736, allocations: 123.9 kB / 305.5 MB, free: 19.46 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.536e-05/0.1737, allocations: 0.5137 MB / 306.1 MB, free: 18.96 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003606/0.174, allocations: 184.9 kB / 306.2 MB, free: 18.9 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004532/0.1745, allocations: 0.6415 MB / 306.9 MB, free: 18.27 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006672/0.1751, allocations: 0.5476 MB / 307.4 MB, free: 17.71 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.1751, allocations: 3.938 kB / 307.4 MB, free: 17.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001362/0.1765, allocations: 0.7495 MB / 308.2 MB, free: 16.96 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.1765, allocations: 4 kB / 308.2 MB, free: 16.95 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.1765, allocations: 6.969 kB / 308.2 MB, free: 16.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002668/0.1768, allocations: 74.97 kB / 308.3 MB, free: 16.88 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004028/0.1772, allocations: 103.9 kB / 308.4 MB, free: 16.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001319/0.1785, allocations: 2.276 MB / 310.6 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007281/0.1792, allocations: 61.61 kB / 310.7 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.97e-05/0.1793, allocations: 16 kB / 310.7 MB, free: 14.3 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (51): * Single equations (assignments): 50 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004446/0.1797, allocations: 318.7 kB / 311 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002159/0.1799, allocations: 196.4 kB / 311.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002151/0.1802, allocations: 166.1 kB / 311.4 MB, free: 13.63 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.1802, allocations: 4 kB / 311.4 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.522e-05/0.1802, allocations: 0 / 311.4 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.1802, allocations: 4.812 kB / 311.4 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003482/0.1837, allocations: 2.369 MB / 313.8 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.1837, allocations: 0 / 313.8 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000338/0.184, allocations: 75.89 kB / 313.8 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001739/0.1842, allocations: 69.34 kB / 313.9 MB, free: 11.06 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.618e-05/0.1842, allocations: 8 kB / 313.9 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001105/0.1853, allocations: 2.214 MB / 316.1 MB, free: 8.73 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.1853, allocations: 7.984 kB / 316.1 MB, free: 8.723 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001461/0.1868, allocations: 0.9684 MB / 317.1 MB, free: 7.719 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008935/0.1877, allocations: 342.6 kB / 317.4 MB, free: 7.383 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000171/0.1878, allocations: 8 kB / 317.4 MB, free: 7.375 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004575/0.1883, allocations: 35.97 kB / 317.5 MB, free: 7.34 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.1884, allocations: 51.91 kB / 317.5 MB, free: 7.289 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.693e-05/0.1885, allocations: 15.94 kB / 317.5 MB, free: 7.273 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.002077/0.1905, allocations: 1.477 MB / 319 MB, free: 5.777 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1905, allocations: 8 kB / 319 MB, free: 5.77 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008315/0.1914, allocations: 259.6 kB / 319.3 MB, free: 5.516 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,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 (29): * Single equations (assignments): 28 * 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 Backend phase and start with SimCode phase: time 0.003271/0.1946, allocations: 0.489 MB / 319.8 MB, free: 5.293 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001141/0.1958, allocations: 0.6484 MB / 320.4 MB, free: 4.625 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.266e-06/0.1958, allocations: 8.312 kB / 320.4 MB, free: 4.617 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004751/0.1963, allocations: 397.3 kB / 320.8 MB, free: 4.207 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001305/0.1976, allocations: 270.4 kB / 321.1 MB, free: 3.949 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003719/0.2013, allocations: 2.967 MB / 324 MB, free: 0.9219 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006609/0.2019, allocations: 0.8456 MB / 324.9 MB, free: 48 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0005779/0.2025, allocations: 190.8 kB / 325.1 MB, free: 15.86 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000272/0.2028, allocations: 88.5 kB / 325.2 MB, free: 15.77 MB / 282.7 MB Notification: Performance of SimCode: time 1.733e-06/0.2028, allocations: 0 / 325.2 MB, free: 15.77 MB / 282.7 MB Notification: Performance of Templates: time 0.03739/0.2402, allocations: 19.1 MB / 344.3 MB, free: 12.87 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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: 5.347213183064014]