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.0008995/0.0008995, allocations: 80.8 kB / 21.5 MB, free: 2.996 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.0009648/0.0009648, allocations: 175.1 kB / 24.92 MB, free: 8.723 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.8924/0.8924, allocations: 177.1 MB / 205.3 MB, free: 5.074 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.[0-9,]+..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.[0-9,]+..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.011e-06/1.011e-06, allocations: 0 / 273.4 MB, free: 1.199 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.363e-05/1.464e-05, allocations: 5.125 kB / 273.4 MB, free: 1.195 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.004864/0.004879, allocations: 5.828 MB / 279.2 MB, free: 11.33 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002789/0.007668, allocations: 2.313 MB / 281.6 MB, free: 9.012 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003283/0.007996, allocations: 23.81 kB / 281.6 MB, free: 8.988 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009839/0.00898, allocations: 0.6221 MB / 282.2 MB, free: 8.363 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007137/0.009694, allocations: 457.4 kB / 282.7 MB, free: 7.914 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005431/0.01024, allocations: 419.2 kB / 283.1 MB, free: 7.504 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001025/0.01126, allocations: 1.34 MB / 284.4 MB, free: 6.16 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003889/0.01165, allocations: 296.4 kB / 284.7 MB, free: 5.852 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006262/0.01228, allocations: 0.7289 MB / 285.4 MB, free: 5.121 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004392/0.01272, allocations: 490.9 kB / 285.9 MB, free: 4.641 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.93e-05/0.01282, allocations: 112 kB / 286 MB, free: 4.531 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001867/0.013, allocations: 171.9 kB / 286.2 MB, free: 4.363 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003246/0.01333, allocations: 0.6584 MB / 286.8 MB, free: 3.703 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000397/0.01372, allocations: 0.5258 MB / 287.4 MB, free: 3.176 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001052/0.01478, allocations: 1.467 MB / 288.8 MB, free: 1.703 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.813e-06/0.01478, allocations: 0 / 288.8 MB, free: 1.703 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.01478, allocations: 0 / 288.8 MB, free: 1.703 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.019e-05/0.0148, allocations: 0 / 288.8 MB, free: 1.703 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.1056/0.1204, allocations: 2.165 MB / 291 MB, free: 24.39 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.149e-05/0.1204, allocations: 9.312 kB / 291 MB, free: 24.39 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000242/0.1207, allocations: 175.8 kB / 291.2 MB, free: 24.39 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001024/0.1217, allocations: 0.8962 MB / 292.1 MB, free: 23.94 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.934e-05/0.1218, allocations: 182.8 kB / 292.3 MB, free: 23.78 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.756e-05/0.1219, allocations: 74.55 kB / 292.3 MB, free: 23.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006524/0.1225, allocations: 0.9015 MB / 293.2 MB, free: 23.14 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.1225, allocations: 3.25 kB / 293.2 MB, free: 23.14 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.636e-05/0.1226, allocations: 27.5 kB / 293.3 MB, free: 23.14 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.1226, allocations: 14.97 kB / 293.3 MB, free: 23.14 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000241/0.1228, allocations: 152.9 kB / 293.4 MB, free: 23.14 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002278/0.1251, allocations: 2.22 MB / 295.6 MB, free: 22.2 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003884/0.1255, allocations: 248.7 kB / 295.9 MB, free: 22.17 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002434/0.1257, allocations: 180.6 kB / 296.1 MB, free: 22.16 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.369e-05/0.1258, allocations: 7.062 kB / 296.1 MB, free: 22.16 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.014e-05/0.1258, allocations: 42.88 kB / 296.1 MB, free: 22.12 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 1.783e-06/0.1258, allocations: 0.875 kB / 296.1 MB, free: 22.12 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.0006829/0.1265, allocations: 379.3 kB / 296.5 MB, free: 22.07 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.842e-05/0.1265, allocations: 265.6 kB / 296.7 MB, free: 21.76 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001706/0.1282, allocations: 1.816 MB / 298.6 MB, free: 21.52 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.658e-05/0.1282, allocations: 36.91 kB / 298.6 MB, free: 21.49 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000268/0.1285, allocations: 0.4914 MB / 299.1 MB, free: 21.27 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.713e-05/0.1286, allocations: 127.8 kB / 299.2 MB, free: 21.19 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.1287, allocations: 89.89 kB / 299.3 MB, free: 21.17 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.749e-05/0.1287, allocations: 328.6 kB / 299.6 MB, free: 20.86 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.497e-05/0.1288, allocations: 41.36 kB / 299.7 MB, free: 20.86 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001565/0.1289, allocations: 433.8 kB / 300.1 MB, free: 20.41 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002182/0.1292, allocations: 258.4 kB / 300.3 MB, free: 20.27 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1292, allocations: 1.031 kB / 300.3 MB, free: 20.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0004443/0.1296, allocations: 341.2 kB / 300.7 MB, free: 20.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.1296, allocations: 9.391 kB / 300.7 MB, free: 20.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.1296, allocations: 3.219 kB / 300.7 MB, free: 20.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000148/0.1298, allocations: 55.69 kB / 300.7 MB, free: 20.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002295/0.13, allocations: 100.2 kB / 300.8 MB, free: 20.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008061/0.1308, allocations: 1.44 MB / 302.3 MB, free: 18.92 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002312/0.131, allocations: 58.97 kB / 302.3 MB, free: 18.89 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.078e-05/0.1311, allocations: 13.09 kB / 302.3 MB, free: 18.88 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.0001748/0.1312, allocations: 156.5 kB / 302.5 MB, free: 18.74 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.1314, allocations: 107.2 kB / 302.6 MB, free: 18.74 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001313/0.1315, allocations: 160.1 kB / 302.8 MB, free: 18.66 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.1315, allocations: 3.406 kB / 302.8 MB, free: 18.66 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.1315, allocations: 5 kB / 302.8 MB, free: 18.66 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.1315, allocations: 1.484 kB / 302.8 MB, free: 18.66 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001192/0.1327, allocations: 1.014 MB / 303.8 MB, free: 18.31 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.1327, allocations: 0.75 kB / 303.8 MB, free: 18.31 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000183/0.1329, allocations: 78.56 kB / 303.9 MB, free: 18.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.934e-05/0.133, allocations: 38.23 kB / 303.9 MB, free: 18.29 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.034e-05/0.133, allocations: 8.453 kB / 303.9 MB, free: 18.29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005068/0.1335, allocations: 1.402 MB / 305.3 MB, free: 16.96 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1335, allocations: 1.469 kB / 305.3 MB, free: 16.96 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004731/0.134, allocations: 462.8 kB / 305.8 MB, free: 16.77 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002754/0.1342, allocations: 248.6 kB / 306 MB, free: 16.61 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.694e-05/0.1343, allocations: 16.59 kB / 306 MB, free: 16.61 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002146/0.1346, allocations: 39.05 kB / 306.1 MB, free: 16.6 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.836e-05/0.1346, allocations: 38.02 kB / 306.1 MB, free: 16.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.538e-05/0.1346, allocations: 11.14 kB / 306.1 MB, free: 16.59 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0009049/0.1355, allocations: 0.9941 MB / 307.1 MB, free: 16.38 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1355, allocations: 0 / 307.1 MB, free: 16.38 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004957/0.136, allocations: 265.7 kB / 307.4 MB, free: 16.33 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.00113/0.1372, allocations: 0.5863 MB / 307.9 MB, free: 16.16 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003492/0.1375, allocations: 337.1 kB / 308.3 MB, free: 16.01 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-05/0.1375, allocations: 21.59 kB / 308.3 MB, free: 16.01 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001512/0.1377, allocations: 227.4 kB / 308.5 MB, free: 15.88 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000569/0.1383, allocations: 257.3 kB / 308.8 MB, free: 15.75 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002484/0.1407, allocations: 2.772 MB / 311.5 MB, free: 13.62 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002301/0.141, allocations: 398 kB / 311.9 MB, free: 13.28 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002669/0.1412, allocations: 174.8 kB / 312.1 MB, free: 13.1 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003902/0.1416, allocations: 313.2 kB / 312.4 MB, free: 12.8 MB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.1416, allocations: 0 / 312.4 MB, free: 12.8 MB / 266.7 MB Notification: Performance of Templates: time 0.02107/0.1627, allocations: 20.29 MB / 332.7 MB, free: 8.766 MB / 282.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","",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.047079725190997]