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.0008928/0.0008928, allocations: 85.05 kB / 21.5 MB, free: 2.984 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.0008589/0.0008589, allocations: 147 kB / 24.89 MB, free: 8.781 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.8849/0.8849, allocations: 173.4 MB / 201.5 MB, free: 8.77 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.[0-9,]+..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.[0-9,]+..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 3.226e-06/3.226e-06, allocations: 4 kB / 268.4 MB, free: 6.062 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.199e-05/2.522e-05, allocations: 2.312 kB / 268.5 MB, free: 6.059 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008944/0.008969, allocations: 5.783 MB / 274.2 MB, free: 248 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004178/0.01315, allocations: 2.162 MB / 276.4 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003929/0.01354, allocations: 23.81 kB / 276.4 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001158/0.0147, allocations: 0.6182 MB / 277 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005628/0.01526, allocations: 429.5 kB / 277.5 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005522/0.01581, allocations: 403.2 kB / 277.9 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001033/0.01685, allocations: 1.34 MB / 279.2 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003804/0.01723, allocations: 300.3 kB / 279.5 MB, free: 10.95 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006198/0.01785, allocations: 0.7174 MB / 280.2 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004763/0.01832, allocations: 486.9 kB / 280.7 MB, free: 9.758 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.935e-05/0.01842, allocations: 115.9 kB / 280.8 MB, free: 9.645 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001827/0.0186, allocations: 171.9 kB / 281 MB, free: 9.477 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003126/0.01892, allocations: 0.6662 MB / 281.6 MB, free: 8.809 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003371/0.01925, allocations: 0.518 MB / 282.1 MB, free: 8.289 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009517/0.02021, allocations: 1.464 MB / 283.6 MB, free: 6.82 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.02021, allocations: 0 / 283.6 MB, free: 6.82 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.02021, allocations: 0 / 283.6 MB, free: 6.82 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.153e-05/0.02022, allocations: 0 / 283.6 MB, free: 6.82 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.001763/0.02198, allocations: 2.153 MB / 285.8 MB, free: 4.629 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.879e-05/0.02201, allocations: 8.922 kB / 285.8 MB, free: 4.621 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001657/0.02218, allocations: 172.8 kB / 285.9 MB, free: 4.453 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008157/0.02299, allocations: 0.8941 MB / 286.8 MB, free: 3.504 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/0.0231, allocations: 186.3 kB / 287 MB, free: 3.293 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.38e-05/0.02316, allocations: 67.94 kB / 287.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006045/0.02376, allocations: 0.9033 MB / 288 MB, free: 2.18 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.02378, allocations: 0 / 288 MB, free: 2.18 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.698e-05/0.02381, allocations: 28 kB / 288 MB, free: 2.152 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.02382, allocations: 19.94 kB / 288 MB, free: 2.133 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002063/0.02403, allocations: 161 kB / 288.2 MB, free: 1.977 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0989/0.1229, allocations: 2.21 MB / 290.4 MB, free: 27.33 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004604/0.1234, allocations: 251.8 kB / 290.6 MB, free: 27.3 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002578/0.1236, allocations: 178.6 kB / 290.8 MB, free: 27.29 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.365e-05/0.1237, allocations: 7.422 kB / 290.8 MB, free: 27.29 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.225e-05/0.1237, allocations: 48.89 kB / 290.9 MB, free: 27.25 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 2.895e-06/0.1237, allocations: 0 / 290.9 MB, free: 27.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.000771/0.1245, allocations: 362.9 kB / 291.2 MB, free: 27.21 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.404e-05/0.1245, allocations: 268.5 kB / 291.5 MB, free: 26.89 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001798/0.1263, allocations: 1.808 MB / 293.3 MB, free: 26.66 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.822e-05/0.1263, allocations: 32.48 kB / 293.3 MB, free: 26.63 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002598/0.1266, allocations: 0.4891 MB / 293.8 MB, free: 26.53 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.829e-05/0.1267, allocations: 132 kB / 293.9 MB, free: 26.52 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.579e-05/0.1268, allocations: 93.53 kB / 294 MB, free: 26.5 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.235e-05/0.1268, allocations: 326.6 kB / 294.4 MB, free: 26.19 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.186e-05/0.1269, allocations: 42.91 kB / 294.4 MB, free: 26.19 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001625/0.127, allocations: 428.5 kB / 294.8 MB, free: 25.75 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002177/0.1273, allocations: 258.1 kB / 295.1 MB, free: 25.61 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.1273, allocations: 1.094 kB / 295.1 MB, free: 25.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0004379/0.1277, allocations: 343.4 kB / 295.4 MB, free: 25.56 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.1277, allocations: 8.312 kB / 295.4 MB, free: 25.56 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.1277, allocations: 3.312 kB / 295.4 MB, free: 25.56 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001608/0.1279, allocations: 43.14 kB / 295.5 MB, free: 25.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002381/0.1281, allocations: 105.7 kB / 295.6 MB, free: 25.55 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006881/0.1288, allocations: 1.435 MB / 297 MB, free: 24.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002574/0.1291, allocations: 61.06 kB / 297.1 MB, free: 24.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.319e-05/0.1291, allocations: 16.52 kB / 297.1 MB, free: 24.27 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.0001875/0.1293, allocations: 152.2 kB / 297.2 MB, free: 24.14 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001347/0.1294, allocations: 107.9 kB / 297.3 MB, free: 24.14 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000141/0.1296, allocations: 162.8 kB / 297.5 MB, free: 24.12 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.1296, allocations: 3.469 kB / 297.5 MB, free: 24.12 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1296, allocations: 0 / 297.5 MB, free: 24.12 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.1296, allocations: 3.125 kB / 297.5 MB, free: 24.12 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001363/0.1309, allocations: 1.018 MB / 298.5 MB, free: 23.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.1309, allocations: 4.969 kB / 298.5 MB, free: 23.89 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002088/0.1311, allocations: 73.27 kB / 298.6 MB, free: 23.89 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001066/0.1312, allocations: 32.95 kB / 298.6 MB, free: 23.88 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.413e-05/0.1313, allocations: 10.94 kB / 298.6 MB, free: 23.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005441/0.1318, allocations: 1.398 MB / 300 MB, free: 22.61 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1318, allocations: 0 / 300 MB, free: 22.61 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005129/0.1323, allocations: 473.8 kB / 300.5 MB, free: 22.42 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002986/0.1326, allocations: 246 kB / 300.7 MB, free: 22.32 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001001/0.1327, allocations: 11.47 kB / 300.7 MB, free: 22.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002193/0.1329, allocations: 41.66 kB / 300.8 MB, free: 22.32 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.956e-05/0.133, allocations: 37.44 kB / 300.8 MB, free: 22.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.133, allocations: 10.08 kB / 300.8 MB, free: 22.32 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001054/0.1341, allocations: 0.9949 MB / 301.8 MB, free: 22.22 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1341, allocations: 0 / 301.8 MB, free: 22.22 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005869/0.1347, allocations: 263.3 kB / 302.1 MB, free: 22.2 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.001252/0.1359, allocations: 0.5791 MB / 302.7 MB, free: 22.04 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003933/0.1363, allocations: 324.6 kB / 303 MB, free: 21.91 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.302e-05/0.1364, allocations: 20.47 kB / 303 MB, free: 21.91 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001838/0.1365, allocations: 229.7 kB / 303.2 MB, free: 21.79 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006275/0.1372, allocations: 263.5 kB / 303.5 MB, free: 21.75 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00315/0.1403, allocations: 2.787 MB / 306.3 MB, free: 20.52 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002536/0.1406, allocations: 402 kB / 306.7 MB, free: 20.43 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002878/0.1409, allocations: 172.6 kB / 306.8 MB, free: 20.39 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004098/0.1413, allocations: 307.2 kB / 307.1 MB, free: 20.34 MB / 266.7 MB Notification: Performance of SimCode: time 9.22e-07/0.1413, allocations: 0 / 307.1 MB, free: 20.34 MB / 266.7 MB Notification: Performance of Templates: time 0.02104/0.1623, allocations: 20.28 MB / 327.4 MB, free: 1.586 MB / 266.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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 240] 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","",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.011143444105983]