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.0007884/0.0007884, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001131/0.001919, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.0007202/0.0007202, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000959/0.001679, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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 1.092/1.092, allocations: 177.4 MB / 189.9 MB, free: 4.82 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08503/1.177, allocations: 53.86 MB / 243.7 MB, free: 14.9 MB / 250.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 1.343e-06/1.343e-06, allocations: 0 / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.506e-05/1.64e-05, allocations: 6.25 kB / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.005062/0.005078, allocations: 5.918 MB / 250.9 MB, free: 7.703 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003097/0.008175, allocations: 2.332 MB / 253.3 MB, free: 5.363 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003948/0.00857, allocations: 19.88 kB / 253.3 MB, free: 5.344 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009847/0.009555, allocations: 0.6339 MB / 253.9 MB, free: 4.707 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006093/0.01016, allocations: 469.3 kB / 254.4 MB, free: 4.246 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005887/0.01075, allocations: 415.2 kB / 254.8 MB, free: 3.84 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009503/0.0117, allocations: 1.333 MB / 256.1 MB, free: 2.504 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003542/0.01206, allocations: 304.3 kB / 256.4 MB, free: 2.188 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006265/0.01268, allocations: 0.8489 MB / 257.2 MB, free: 1.336 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003978/0.01308, allocations: 490.8 kB / 257.7 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.328e-05/0.01317, allocations: 112 kB / 257.8 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002091/0.01338, allocations: 183.9 kB / 258 MB, free: 0.5664 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003101/0.01369, allocations: 0.604 MB / 258.6 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003429/0.01404, allocations: 418.8 kB / 259 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001038/0.01507, allocations: 1.417 MB / 260.4 MB, free: 14.13 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.659e-05/0.01509, allocations: 0 / 260.4 MB, free: 14.13 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.01509, allocations: 0 / 260.4 MB, free: 14.13 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.5e-05/0.01512, allocations: 0 / 260.4 MB, free: 14.13 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.002139/0.01726, allocations: 2.465 MB / 262.9 MB, free: 11.62 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.227e-05/0.01729, allocations: 8.625 kB / 262.9 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001763/0.01747, allocations: 180.8 kB / 263.1 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009179/0.01838, allocations: 0.8943 MB / 264 MB, free: 10.49 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001087/0.01849, allocations: 182.4 kB / 264.2 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.691e-05/0.01856, allocations: 68.33 kB / 264.2 MB, free: 10.22 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009146/0.01947, allocations: 0.9151 MB / 265.1 MB, free: 9.16 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.01949, allocations: 0 / 265.1 MB, free: 9.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.762e-05/0.01952, allocations: 28 kB / 265.2 MB, free: 9.133 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.01954, allocations: 16 kB / 265.2 MB, free: 9.117 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002076/0.01974, allocations: 161 kB / 265.3 MB, free: 8.961 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002606/0.02235, allocations: 2.227 MB / 267.6 MB, free: 6.66 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003929/0.02274, allocations: 260.1 kB / 267.8 MB, free: 6.398 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002268/0.02297, allocations: 173.3 kB / 268 MB, free: 6.227 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.214e-05/0.02299, allocations: 8.266 kB / 268 MB, free: 6.219 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.02302, allocations: 38.84 kB / 268 MB, free: 6.172 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 2.023e-06/0.02302, allocations: 0 / 268 MB, free: 6.172 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.0007142/0.02374, allocations: 372.8 kB / 268.4 MB, free: 5.801 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.549e-05/0.02377, allocations: 59.41 kB / 268.5 MB, free: 5.73 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001446/0.02522, allocations: 1.81 MB / 270.3 MB, free: 3.879 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.065e-05/0.02525, allocations: 33.7 kB / 270.3 MB, free: 3.84 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002579/0.02551, allocations: 0.5016 MB / 270.8 MB, free: 3.324 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.408e-05/0.02558, allocations: 122.9 kB / 270.9 MB, free: 3.203 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.02568, allocations: 94.09 kB / 271 MB, free: 3.105 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.635e-05/0.02576, allocations: 329.9 kB / 271.3 MB, free: 2.777 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.524e-05/0.02582, allocations: 40.98 kB / 271.4 MB, free: 2.738 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002093/0.02603, allocations: 437.9 kB / 271.8 MB, free: 2.184 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000213/0.02625, allocations: 248 kB / 272.1 MB, free: 1.891 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.02625, allocations: 8 kB / 272.1 MB, free: 1.883 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0003761/0.02663, allocations: 337.5 kB / 272.4 MB, free: 1.543 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.02664, allocations: 8.469 kB / 272.4 MB, free: 1.535 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.02665, allocations: 11.94 kB / 272.4 MB, free: 1.523 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001615/0.02681, allocations: 48.75 kB / 272.5 MB, free: 1.473 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003309/0.02715, allocations: 123.9 kB / 272.6 MB, free: 1.352 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009551/0.0281, allocations: 1.441 MB / 274 MB, free: 15.82 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002566/0.02836, allocations: 59.66 kB / 274.1 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.061e-05/0.02838, allocations: 16 kB / 274.1 MB, free: 15.75 MB / 282.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.0002035/0.02858, allocations: 140.5 kB / 274.2 MB, free: 15.6 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.02869, allocations: 107.9 kB / 274.3 MB, free: 15.5 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001407/0.02883, allocations: 174.1 kB / 274.5 MB, free: 15.33 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.02883, allocations: 0 / 274.5 MB, free: 15.33 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.02884, allocations: 4 kB / 274.5 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.02884, allocations: 0 / 274.5 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001218/0.03006, allocations: 1.018 MB / 275.5 MB, free: 14.27 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.03006, allocations: 0 / 275.5 MB, free: 14.27 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002521/0.03032, allocations: 92.53 kB / 275.6 MB, free: 14.18 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002884/0.0306, allocations: 246.5 kB / 275.9 MB, free: 13.94 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001006/0.0307, allocations: 36.83 kB / 275.9 MB, free: 13.9 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.979e-05/0.03072, allocations: 8 kB / 275.9 MB, free: 13.89 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000755/0.03148, allocations: 1.399 MB / 277.3 MB, free: 12.41 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.03148, allocations: 4 kB / 277.3 MB, free: 12.4 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004846/0.03197, allocations: 471.3 kB / 277.8 MB, free: 11.91 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.353e-05/0.03206, allocations: 12 kB / 277.8 MB, free: 11.9 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.03227, allocations: 35.97 kB / 277.8 MB, free: 11.87 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.288e-05/0.03234, allocations: 35.94 kB / 277.9 MB, free: 11.83 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.738e-05/0.03236, allocations: 11.98 kB / 277.9 MB, free: 11.82 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000893/0.03325, allocations: 0.994 MB / 278.9 MB, free: 10.8 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03325, allocations: 0 / 278.9 MB, free: 10.8 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005614/0.03382, allocations: 267.5 kB / 279.1 MB, free: 10.54 MB / 282.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.001609/0.03542, allocations: 0.6374 MB / 279.8 MB, free: 10.16 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005091/0.03593, allocations: 328.8 kB / 280.1 MB, free: 9.828 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.418e-05/0.03597, allocations: 23.98 kB / 280.1 MB, free: 9.805 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002232/0.03619, allocations: 219.8 kB / 280.3 MB, free: 9.574 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006689/0.03686, allocations: 336.6 kB / 280.6 MB, free: 9.242 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00742/0.04428, allocations: 2.79 MB / 283.4 MB, free: 6.391 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004203/0.0447, allocations: 403.3 kB / 283.8 MB, free: 5.973 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005277/0.04523, allocations: 170.8 kB / 284 MB, free: 5.801 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004962/0.04572, allocations: 313.2 kB / 284.3 MB, free: 5.496 MB / 282.7 MB Notification: Performance of SimCode: time 1.763e-06/0.04573, allocations: 0 / 284.3 MB, free: 5.496 MB / 282.7 MB Notification: Performance of Templates: time 0.1389/0.1846, allocations: 21.14 MB / 305.4 MB, free: 29.66 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 -ignoreHideResult -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.2051140312105417]