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.001197/0.001197, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.004638/0.004638, allocations: 160.7 kB / 24.7 MB, free: 9.43 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 0.8582/0.8582, allocations: 177.1 MB / 205 MB, free: 5.723 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_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.893e-06/1.893e-06, allocations: 0 / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.587e-05/2.776e-05, allocations: 4.531 kB / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.005099/0.005127, allocations: 5.426 MB / 331.2 MB, free: 9.961 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002807/0.007934, allocations: 2.193 MB / 333.4 MB, free: 7.762 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004072/0.008341, allocations: 19.88 kB / 333.4 MB, free: 7.742 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001095/0.009436, allocations: 0.6104 MB / 334.1 MB, free: 7.129 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007139/0.01015, allocations: 473.3 kB / 334.5 MB, free: 6.664 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006035/0.01075, allocations: 406.5 kB / 334.9 MB, free: 6.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001349/0.0121, allocations: 1.347 MB / 336.3 MB, free: 4.922 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004129/0.01252, allocations: 298.2 kB / 336.6 MB, free: 4.617 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006405/0.01316, allocations: 0.7173 MB / 337.3 MB, free: 3.898 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004373/0.01359, allocations: 0.5105 MB / 337.8 MB, free: 3.387 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.805e-05/0.01369, allocations: 116 kB / 337.9 MB, free: 3.273 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002193/0.01391, allocations: 171.9 kB / 338.1 MB, free: 3.105 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003171/0.01423, allocations: 0.674 MB / 338.7 MB, free: 2.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003399/0.01457, allocations: 0.5219 MB / 339.3 MB, free: 1.906 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001647/0.01621, allocations: 2.586 MB / 341.8 MB, free: 15.31 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.01622, allocations: 3.984 kB / 341.9 MB, free: 15.3 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.01622, allocations: 4 kB / 341.9 MB, free: 15.3 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.75e-05/0.01625, allocations: 0 / 341.9 MB, free: 15.3 MB / 314.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.002812/0.01906, allocations: 2.345 MB / 344.2 MB, free: 12.91 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.0191, allocations: 12.03 kB / 344.2 MB, free: 12.9 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002179/0.01932, allocations: 223.5 kB / 344.4 MB, free: 12.68 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001685/0.021, allocations: 1.635 MB / 346.1 MB, free: 10.99 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001316/0.02114, allocations: 186.3 kB / 346.2 MB, free: 10.78 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.207e-05/0.02121, allocations: 71.88 kB / 346.3 MB, free: 10.71 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.02225, allocations: 1.181 MB / 347.5 MB, free: 9.387 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.02226, allocations: 0 / 347.5 MB, free: 9.387 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.672e-05/0.02231, allocations: 28 kB / 347.5 MB, free: 9.359 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.02232, allocations: 15.94 kB / 347.5 MB, free: 9.344 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006631/0.02298, allocations: 0.5555 MB / 348.1 MB, free: 8.785 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004538/0.02752, allocations: 3.484 MB / 351.6 MB, free: 5.207 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008059/0.02832, allocations: 0.4926 MB / 352.1 MB, free: 4.703 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000471/0.0288, allocations: 347.6 kB / 352.4 MB, free: 4.363 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.452e-05/0.02882, allocations: 4.281 kB / 352.4 MB, free: 4.359 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.831e-05/0.02885, allocations: 42.78 kB / 352.5 MB, free: 4.309 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 3.246e-06/0.02885, allocations: 0 / 352.5 MB, free: 4.309 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.00143/0.03028, allocations: 0.8697 MB / 353.3 MB, free: 3.43 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.39e-05/0.03038, allocations: 261 kB / 353.6 MB, free: 3.113 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002915/0.03329, allocations: 3.116 MB / 356.7 MB, free: 15.95 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.774e-05/0.03336, allocations: 41.7 kB / 356.7 MB, free: 15.91 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007899/0.03415, allocations: 0.8726 MB / 357.6 MB, free: 15.03 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.834e-05/0.03424, allocations: 115 kB / 357.7 MB, free: 14.91 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001147/0.03435, allocations: 94.14 kB / 357.8 MB, free: 14.82 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.013e-05/0.03443, allocations: 326 kB / 358.1 MB, free: 14.49 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002834/0.03471, allocations: 204.9 kB / 358.3 MB, free: 14.29 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004041/0.03512, allocations: 0.5965 MB / 358.9 MB, free: 13.57 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005489/0.03567, allocations: 0.5168 MB / 359.4 MB, free: 13 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.03567, allocations: 4 kB / 359.5 MB, free: 13 MB / 330.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001057/0.03673, allocations: 0.7778 MB / 360.2 MB, free: 12.21 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.03675, allocations: 8 kB / 360.2 MB, free: 12.2 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.03676, allocations: 4 kB / 360.2 MB, free: 12.2 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002428/0.037, allocations: 72.75 kB / 360.3 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002579/0.03726, allocations: 112 kB / 360.4 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001178/0.03844, allocations: 1.668 MB / 362.1 MB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004128/0.03885, allocations: 71.73 kB / 362.2 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.422e-05/0.03887, allocations: 20 kB / 362.2 MB, free: 10.16 MB / 330.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.0007231/0.0396, allocations: 0.6537 MB / 362.8 MB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001692/0.03977, allocations: 186.8 kB / 363 MB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001833/0.03995, allocations: 214.1 kB / 363.2 MB, free: 9.102 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.03995, allocations: 3.938 kB / 363.2 MB, free: 9.098 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.03996, allocations: 7.938 kB / 363.2 MB, free: 9.09 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.03996, allocations: 7.984 kB / 363.2 MB, free: 9.082 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002235/0.0422, allocations: 1.824 MB / 365.1 MB, free: 7.207 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.0422, allocations: 4.125 kB / 365.1 MB, free: 7.203 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002104/0.04241, allocations: 87.95 kB / 365.2 MB, free: 7.117 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001246/0.04254, allocations: 56.81 kB / 365.2 MB, free: 7.059 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.043e-05/0.04256, allocations: 8 kB / 365.2 MB, free: 7.051 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009558/0.04351, allocations: 1.602 MB / 366.8 MB, free: 5.348 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.04352, allocations: 0 / 366.8 MB, free: 5.348 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001054/0.04457, allocations: 0.9834 MB / 367.8 MB, free: 4.336 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004576/0.04503, allocations: 366.6 kB / 368.2 MB, free: 3.977 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.617e-05/0.04511, allocations: 15.98 kB / 368.2 MB, free: 3.961 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002808/0.04539, allocations: 55.95 kB / 368.2 MB, free: 3.906 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.344e-05/0.04548, allocations: 43.86 kB / 368.3 MB, free: 3.863 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.604e-05/0.04549, allocations: 11.98 kB / 368.3 MB, free: 3.852 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001961/0.04745, allocations: 2.215 MB / 370.5 MB, free: 1.617 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.04745, allocations: 0 / 370.5 MB, free: 1.617 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006736/0.04813, allocations: 263.5 kB / 370.8 MB, free: 1.359 MB / 330.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.0008501/0.04898, allocations: 0.5054 MB / 371.3 MB, free: 1.066 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001118/0.0501, allocations: 0.5901 MB / 371.9 MB, free: 476 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.0501, allocations: 320 / 371.9 MB, free: 476 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003635/0.05046, allocations: 350.7 kB / 372.2 MB, free: 112 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008471/0.05131, allocations: 251.1 kB / 372.4 MB, free: 15.86 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004002/0.05531, allocations: 3.624 MB / 376.1 MB, free: 12.18 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000656/0.05597, allocations: 0.9003 MB / 377 MB, free: 11.25 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002979/0.05627, allocations: 92.5 kB / 377.1 MB, free: 11.16 MB / 346.7 MB Notification: Performance of SimCode: time 1.342e-06/0.05627, allocations: 4 kB / 377.1 MB, free: 11.16 MB / 346.7 MB Notification: Performance of Templates: time 0.02977/0.08604, allocations: 29.83 MB / 406.9 MB, free: 13.36 MB / 378.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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 480] 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.399127810262144]