Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001379/0.001379, allocations: 88.73 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001558/0.001558, allocations: 164.4 kB / 24.91 MB, free: 8.719 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9578/0.9578, allocations: 177 MB / 205.2 MB, free: 5.055 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.[0-9,]+..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_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.[0-9,]+..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.915e-06/2.915e-06, allocations: 0 / 273.4 MB, free: 1.109 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.922e-05/3.213e-05, allocations: 6.312 kB / 273.4 MB, free: 1.102 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.005389/0.005421, allocations: 5.827 MB / 279.2 MB, free: 11.24 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002358/0.007779, allocations: 2.317 MB / 281.5 MB, free: 8.914 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002221/0.008001, allocations: 19.88 kB / 281.5 MB, free: 8.895 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00117/0.009171, allocations: 0.6143 MB / 282.1 MB, free: 8.277 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005084/0.00968, allocations: 473.3 kB / 282.6 MB, free: 7.812 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004672/0.01015, allocations: 411.2 kB / 283 MB, free: 7.41 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008923/0.01104, allocations: 1.333 MB / 284.3 MB, free: 6.074 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000349/0.01139, allocations: 300.3 kB / 284.6 MB, free: 5.762 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005053/0.01189, allocations: 0.7173 MB / 285.4 MB, free: 5.043 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003912/0.01228, allocations: 490.9 kB / 285.8 MB, free: 4.562 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.175e-05/0.01238, allocations: 112 kB / 285.9 MB, free: 4.453 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001733/0.01255, allocations: 187.8 kB / 286.1 MB, free: 4.27 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003177/0.01287, allocations: 0.6622 MB / 286.8 MB, free: 3.605 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003378/0.01321, allocations: 0.5219 MB / 287.3 MB, free: 3.082 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009525/0.01416, allocations: 1.464 MB / 288.8 MB, free: 1.613 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.01416, allocations: 0 / 288.8 MB, free: 1.613 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.01416, allocations: 4 kB / 288.8 MB, free: 1.609 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.31e-05/0.01418, allocations: 0 / 288.8 MB, free: 1.609 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.1131/0.1273, allocations: 2.154 MB / 290.9 MB, free: 24.29 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.1273, allocations: 14.77 kB / 290.9 MB, free: 24.28 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002816/0.1276, allocations: 176.9 kB / 291.1 MB, free: 24.28 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001121/0.1287, allocations: 0.8971 MB / 292 MB, free: 23.82 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.879e-05/0.1288, allocations: 185.4 kB / 292.2 MB, free: 23.66 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.501e-05/0.1289, allocations: 69.55 kB / 292.3 MB, free: 23.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006804/0.1296, allocations: 0.9051 MB / 293.2 MB, free: 23.03 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.1296, allocations: 0.5469 kB / 293.2 MB, free: 23.03 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.563e-05/0.1296, allocations: 28.09 kB / 293.2 MB, free: 23.03 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.378e-05/0.1296, allocations: 19 kB / 293.2 MB, free: 23.03 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000255/0.1299, allocations: 155.4 kB / 293.4 MB, free: 23.02 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002411/0.1323, allocations: 2.222 MB / 295.6 MB, free: 22.08 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004252/0.1327, allocations: 254.1 kB / 295.8 MB, free: 22.05 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002622/0.133, allocations: 176.3 kB / 296 MB, free: 22.04 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.386e-05/0.133, allocations: 9.438 kB / 296 MB, free: 22.04 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.172e-05/0.133, allocations: 39.94 kB / 296.1 MB, free: 22 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 3.266e-06/0.133, allocations: 0 / 296.1 MB, free: 22 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.0007199/0.1337, allocations: 385.5 kB / 296.4 MB, free: 21.95 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.288e-05/0.1338, allocations: 264.1 kB / 296.7 MB, free: 21.64 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001728/0.1355, allocations: 1.812 MB / 298.5 MB, free: 21.4 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.628e-05/0.1355, allocations: 34.67 kB / 298.5 MB, free: 21.37 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002787/0.1358, allocations: 0.4915 MB / 299 MB, free: 21.15 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.673e-05/0.1359, allocations: 129 kB / 299.2 MB, free: 21.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.954e-05/0.136, allocations: 91.33 kB / 299.2 MB, free: 21.05 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.76e-05/0.136, allocations: 322.2 kB / 299.6 MB, free: 20.74 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.279e-05/0.1361, allocations: 43.05 kB / 299.6 MB, free: 20.74 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001618/0.1362, allocations: 433 kB / 300 MB, free: 20.3 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002234/0.1365, allocations: 256.3 kB / 300.3 MB, free: 20.16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.1365, allocations: 1.156 kB / 300.3 MB, free: 20.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0004451/0.1369, allocations: 348.8 kB / 300.6 MB, free: 20.11 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.1369, allocations: 7.875 kB / 300.6 MB, free: 20.11 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.1369, allocations: 4.719 kB / 300.6 MB, free: 20.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000147/0.1371, allocations: 41.28 kB / 300.7 MB, free: 20.1 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002267/0.1373, allocations: 104.1 kB / 300.8 MB, free: 20.1 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006917/0.138, allocations: 1.436 MB / 302.2 MB, free: 18.8 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002383/0.1383, allocations: 58.39 kB / 302.3 MB, free: 18.77 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.348e-05/0.1383, allocations: 16.91 kB / 302.3 MB, free: 18.77 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 (cell.cell.limIntegrator.local_reset,cell.limIntegrator.local_reset,energy.local_reset,cccvCharger.CV) * 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.0001763/0.1385, allocations: 145.8 kB / 302.4 MB, free: 18.63 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001515/0.1386, allocations: 118.2 kB / 302.5 MB, free: 18.62 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001497/0.1388, allocations: 160.5 kB / 302.7 MB, free: 18.54 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.1388, allocations: 8.094 kB / 302.7 MB, free: 18.54 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.1388, allocations: 0 / 302.7 MB, free: 18.54 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.1388, allocations: 1.453 kB / 302.7 MB, free: 18.54 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001202/0.14, allocations: 1.024 MB / 303.7 MB, free: 18.19 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.14, allocations: 1.375 kB / 303.7 MB, free: 18.19 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001857/0.1402, allocations: 69.44 kB / 303.8 MB, free: 18.19 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.215e-05/0.1402, allocations: 42.42 kB / 303.8 MB, free: 18.18 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.107e-05/0.1403, allocations: 8.109 kB / 303.8 MB, free: 18.17 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005164/0.1408, allocations: 1.401 MB / 305.2 MB, free: 16.84 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1408, allocations: 2.453 kB / 305.2 MB, free: 16.84 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004749/0.1413, allocations: 461.7 kB / 305.7 MB, free: 16.65 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000289/0.1415, allocations: 248.8 kB / 305.9 MB, free: 16.5 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.1417, allocations: 15.27 kB / 306 MB, free: 16.49 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002141/0.1419, allocations: 39.83 kB / 306 MB, free: 16.48 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.339e-05/0.1419, allocations: 37.34 kB / 306 MB, free: 16.47 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.502e-05/0.142, allocations: 10.25 kB / 306 MB, free: 16.47 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0009085/0.1429, allocations: 0.998 MB / 307 MB, free: 16.26 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1429, allocations: 4 kB / 307 MB, free: 16.26 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00046/0.1433, allocations: 262.2 kB / 307.3 MB, free: 16.21 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.001179/0.1445, allocations: 0.5698 MB / 307.9 MB, free: 16.02 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003563/0.1449, allocations: 333.2 kB / 308.2 MB, free: 15.88 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.776e-05/0.1449, allocations: 20.34 kB / 308.2 MB, free: 15.88 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001466/0.145, allocations: 228 kB / 308.4 MB, free: 15.74 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00056/0.1456, allocations: 253 kB / 308.7 MB, free: 15.62 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002761/0.1483, allocations: 2.772 MB / 311.5 MB, free: 13.48 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002603/0.1486, allocations: 392.8 kB / 311.8 MB, free: 13.16 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002648/0.1489, allocations: 174.8 kB / 312 MB, free: 12.98 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004648/0.1493, allocations: 313.2 kB / 312.3 MB, free: 12.68 MB / 266.7 MB Notification: Performance of SimCode: time 8.92e-07/0.1493, allocations: 0 / 312.3 MB, free: 12.68 MB / 266.7 MB Notification: Performance of Templates: time 0.02253/0.1719, allocations: 20.28 MB / 332.6 MB, free: 8.586 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",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.271599190775305]