Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.0007599/0.0007599, allocations: 84 kB / 21.43 MB, free: 3.133 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.003329/0.003329, allocations: 148.3 kB / 24.68 MB, free: 9.434 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.8314/0.8314, allocations: 173.4 MB / 201.2 MB, free: 9.418 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_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.0.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.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.062e-06/1.062e-06, allocations: 3.938 kB / 319.7 MB, free: 5.871 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.621e-05/1.727e-05, allocations: 6.219 kB / 319.7 MB, free: 5.863 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.004318/0.004336, allocations: 5.347 MB / 325 MB, free: 496 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001917/0.006253, allocations: 2.041 MB / 327.1 MB, free: 14.44 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002093/0.006462, allocations: 19.88 kB / 327.1 MB, free: 14.42 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008368/0.007299, allocations: 0.6143 MB / 327.7 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004172/0.007716, allocations: 421.5 kB / 328.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004264/0.008143, allocations: 412.8 kB / 328.5 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008345/0.008977, allocations: 1.344 MB / 329.9 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000343/0.00932, allocations: 298.2 kB / 330.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004679/0.009788, allocations: 0.7173 MB / 330.9 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003922/0.01018, allocations: 0.5066 MB / 331.4 MB, free: 10.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.591e-05/0.01027, allocations: 116 kB / 331.5 MB, free: 9.996 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001609/0.01043, allocations: 175.8 kB / 331.7 MB, free: 9.824 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002969/0.01072, allocations: 0.6623 MB / 332.3 MB, free: 9.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003103/0.01103, allocations: 0.5258 MB / 332.8 MB, free: 8.633 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001417/0.01245, allocations: 2.582 MB / 335.4 MB, free: 6.043 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.484e-06/0.01245, allocations: 0 / 335.4 MB, free: 6.043 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.01245, allocations: 0 / 335.4 MB, free: 6.043 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.392e-05/0.01247, allocations: 4 kB / 335.4 MB, free: 6.039 MB / 298.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.002102/0.01457, allocations: 2.331 MB / 337.8 MB, free: 3.664 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/0.0146, allocations: 12.92 kB / 337.8 MB, free: 3.652 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001815/0.01479, allocations: 223.5 kB / 338 MB, free: 3.434 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001458/0.01624, allocations: 1.628 MB / 339.6 MB, free: 1.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001132/0.01636, allocations: 182.3 kB / 339.8 MB, free: 1.539 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.366e-05/0.01642, allocations: 67.94 kB / 339.9 MB, free: 1.473 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009147/0.01734, allocations: 1.181 MB / 341 MB, free: 152 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.301e-05/0.01735, allocations: 0 / 341 MB, free: 152 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.928e-05/0.01739, allocations: 28 kB / 341.1 MB, free: 124 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.0174, allocations: 16 kB / 341.1 MB, free: 108 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006278/0.01803, allocations: 0.5516 MB / 341.6 MB, free: 15.55 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002993/0.02102, allocations: 3.495 MB / 345.1 MB, free: 11.96 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007041/0.02172, allocations: 0.4995 MB / 345.6 MB, free: 11.45 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000421/0.02214, allocations: 341.9 kB / 346 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.123e-05/0.02217, allocations: 4.281 kB / 346 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.954e-05/0.02219, allocations: 42.84 kB / 346 MB, free: 11.05 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 1.663e-06/0.02219, allocations: 0 / 346 MB, free: 11.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.001184/0.02337, allocations: 0.8662 MB / 346.9 MB, free: 10.18 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.676e-05/0.02346, allocations: 269 kB / 347.1 MB, free: 9.855 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00228/0.02574, allocations: 3.103 MB / 350.2 MB, free: 6.711 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.646e-05/0.02576, allocations: 33.7 kB / 350.3 MB, free: 6.672 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004796/0.02624, allocations: 0.8805 MB / 351.2 MB, free: 5.781 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.217e-05/0.02631, allocations: 119 kB / 351.3 MB, free: 5.664 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.43e-05/0.0264, allocations: 90.14 kB / 351.4 MB, free: 5.57 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.644e-05/0.02648, allocations: 326 kB / 351.7 MB, free: 5.246 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002559/0.02673, allocations: 220.8 kB / 351.9 MB, free: 5.027 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003858/0.02712, allocations: 0.5733 MB / 352.5 MB, free: 4.332 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005352/0.02765, allocations: 0.5243 MB / 353 MB, free: 3.758 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.02766, allocations: 0 / 353 MB, free: 3.758 MB / 314.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.000816/0.02847, allocations: 0.774 MB / 353.8 MB, free: 2.973 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.02849, allocations: 7.984 kB / 353.8 MB, free: 2.965 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.02849, allocations: 4 kB / 353.8 MB, free: 2.961 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001944/0.02869, allocations: 64.77 kB / 353.8 MB, free: 2.895 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002331/0.02892, allocations: 128 kB / 354 MB, free: 2.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001046/0.02997, allocations: 1.668 MB / 355.6 MB, free: 1.004 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002488/0.03022, allocations: 67.64 kB / 355.7 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.341e-05/0.03024, allocations: 19.98 kB / 355.7 MB, free: 0.918 MB / 314.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.0004798/0.03072, allocations: 0.6489 MB / 356.4 MB, free: 268 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000132/0.03085, allocations: 186.8 kB / 356.6 MB, free: 80 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001615/0.03101, allocations: 214 kB / 356.8 MB, free: 15.87 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.03102, allocations: 4.094 kB / 356.8 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.03102, allocations: 7.938 kB / 356.8 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.03102, allocations: 3.984 kB / 356.8 MB, free: 15.85 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001795/0.03282, allocations: 1.824 MB / 358.6 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.03282, allocations: 8.062 kB / 358.6 MB, free: 13.97 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001951/0.03302, allocations: 75.89 kB / 358.7 MB, free: 13.9 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001061/0.03312, allocations: 64.75 kB / 358.8 MB, free: 13.83 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.034e-05/0.03314, allocations: 12.12 kB / 358.8 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008393/0.03398, allocations: 1.605 MB / 360.4 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.03398, allocations: 3.938 kB / 360.4 MB, free: 12.11 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001/0.03498, allocations: 0.9758 MB / 361.3 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004074/0.03539, allocations: 362.7 kB / 361.7 MB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.301e-05/0.03547, allocations: 8 kB / 361.7 MB, free: 10.74 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003212/0.03579, allocations: 59.94 kB / 361.8 MB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.145e-05/0.03589, allocations: 43.88 kB / 361.8 MB, free: 10.64 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.0359, allocations: 11.98 kB / 361.8 MB, free: 10.63 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00176/0.03766, allocations: 2.199 MB / 364 MB, free: 8.41 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03766, allocations: 0 / 364 MB, free: 8.41 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004863/0.03815, allocations: 267.5 kB / 364.3 MB, free: 8.148 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.0008128/0.03896, allocations: 0.492 MB / 364.8 MB, free: 7.863 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007548/0.03972, allocations: 0.5939 MB / 365.4 MB, free: 7.258 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.03972, allocations: 4 kB / 365.4 MB, free: 7.254 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003468/0.04007, allocations: 346.7 kB / 365.7 MB, free: 6.902 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006539/0.04072, allocations: 263.4 kB / 366 MB, free: 6.645 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003595/0.04432, allocations: 3.655 MB / 369.6 MB, free: 2.938 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006648/0.04498, allocations: 0.9039 MB / 370.5 MB, free: 2 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001844/0.04517, allocations: 96.44 kB / 370.6 MB, free: 1.906 MB / 330.7 MB Notification: Performance of SimCode: time 4.11e-07/0.04517, allocations: 3.938 kB / 370.6 MB, free: 1.902 MB / 330.7 MB Notification: Performance of Templates: time 0.02212/0.06729, allocations: 29.73 MB / 400.4 MB, free: 4.207 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.182702764868736]