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.001412/0.001412, allocations: 105.4 kB / 19.8 MB, free: 2.516 MB / 14.72 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.002351/0.002351, allocations: 212.8 kB / 23 MB, free: 5.605 MB / 14.72 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.627/1.627, allocations: 230.2 MB / 256.2 MB, free: 8.559 MB / 206.1 MB " [Timeout remaining time 178] 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.1..v|cell.cell.capacitor.2..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.1..v|cell.cell.capacitor.2..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 0.002656/0.002656, allocations: 63.89 kB / 376.5 MB, free: 3.645 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2974/0.3, allocations: 53.33 MB / 429.8 MB, free: 7.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008832/0.3088, allocations: 6.112 MB / 435.9 MB, free: 1.566 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00429/0.3131, allocations: 2.341 MB / 438.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005713/0.3137, allocations: 15.94 kB / 438.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001553/0.3153, allocations: 0.6263 MB / 438.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001158/0.3164, allocations: 457.6 kB / 439.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009842/0.3174, allocations: 414.1 kB / 439.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001588/0.319, allocations: 1.31 MB / 441 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005741/0.3196, allocations: 309.9 kB / 441.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006684/0.3202, allocations: 0.4906 MB / 441.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008054/0.321, allocations: 0.6033 MB / 442.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001632/0.3212, allocations: 116 kB / 442.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003546/0.3216, allocations: 176 kB / 442.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006263/0.3222, allocations: 0.6583 MB / 443.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009716/0.3232, allocations: 0.8894 MB / 444.3 MB, free: 9.152 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002835/0.326, allocations: 2.642 MB / 446.9 MB, free: 6.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.326, allocations: 0 / 446.9 MB, free: 6.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.326, allocations: 4 kB / 446.9 MB, free: 6.496 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.593e-05/0.326, allocations: 0 / 446.9 MB, free: 6.496 MB / 350.1 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.00492/0.331, allocations: 2.433 MB / 449.3 MB, free: 4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.331, allocations: 8.031 kB / 449.4 MB, free: 3.992 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004226/0.3314, allocations: 227.5 kB / 449.6 MB, free: 3.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002778/0.3342, allocations: 1.705 MB / 451.3 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000134/0.3343, allocations: 105 kB / 451.4 MB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.3345, allocations: 63.95 kB / 451.4 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001564/0.336, allocations: 0.8297 MB / 452.3 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.051e-05/0.336, allocations: 4 kB / 452.3 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.1e-05/0.3361, allocations: 28 kB / 452.3 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.719e-05/0.3361, allocations: 12 kB / 452.3 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001088/0.3372, allocations: 0.5477 MB / 452.9 MB, free: 352 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006722/0.3439, allocations: 3.99 MB / 456.9 MB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001347/0.3453, allocations: 0.5038 MB / 457.4 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008332/0.3461, allocations: 360.9 kB / 457.7 MB, free: 11.37 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.455e-05/0.3462, allocations: 8.266 kB / 457.7 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.495e-05/0.3462, allocations: 38.84 kB / 457.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 4.218e-06/0.3462, allocations: 0 / 457.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002705/0.3489, allocations: 0.9466 MB / 458.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001921/0.3491, allocations: 261 kB / 459 MB, free: 10.03 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005188/0.3543, allocations: 3.16 MB / 462.1 MB, free: 6.832 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001248/0.3544, allocations: 37.7 kB / 462.2 MB, free: 6.789 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009229/0.3554, allocations: 0.8653 MB / 463 MB, free: 5.918 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001613/0.3555, allocations: 126.9 kB / 463.1 MB, free: 5.793 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001803/0.3557, allocations: 94.2 kB / 463.2 MB, free: 5.695 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.3559, allocations: 322 kB / 463.6 MB, free: 5.375 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000551/0.3564, allocations: 220.9 kB / 463.8 MB, free: 5.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006328/0.3571, allocations: 386.1 kB / 464.1 MB, free: 4.711 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009889/0.3581, allocations: 0.5204 MB / 464.7 MB, free: 4.141 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.3581, allocations: 0 / 464.7 MB, free: 4.141 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001965/0.36, allocations: 0.7818 MB / 465.4 MB, free: 3.348 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.541e-05/0.3601, allocations: 11.94 kB / 465.5 MB, free: 3.336 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.3601, allocations: 4 kB / 465.5 MB, free: 3.332 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003453/0.3604, allocations: 64.81 kB / 465.5 MB, free: 3.266 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004834/0.3609, allocations: 124 kB / 465.6 MB, free: 3.145 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002127/0.363, allocations: 1.79 MB / 467.4 MB, free: 1.219 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000839/0.3639, allocations: 83.62 kB / 467.5 MB, free: 1.137 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.613e-05/0.3639, allocations: 16 kB / 467.5 MB, free: 1.121 MB / 366.1 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.001093/0.365, allocations: 0.6499 MB / 468.2 MB, free: 472 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003223/0.3653, allocations: 198.7 kB / 468.4 MB, free: 272 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003115/0.3656, allocations: 214.6 kB / 468.6 MB, free: 52 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.3656, allocations: 4 kB / 468.6 MB, free: 48 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.646e-06/0.3656, allocations: 0 / 468.6 MB, free: 48 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.3656, allocations: 3.984 kB / 468.6 MB, free: 44 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003796/0.3694, allocations: 2.159 MB / 470.8 MB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.3694, allocations: 4.062 kB / 470.8 MB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003909/0.3698, allocations: 79.88 kB / 470.8 MB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000202/0.37, allocations: 56.81 kB / 470.9 MB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.731e-05/0.3701, allocations: 15.94 kB / 470.9 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001813/0.3719, allocations: 1.759 MB / 472.7 MB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.3719, allocations: 3.938 kB / 472.7 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00199/0.3739, allocations: 0.9882 MB / 473.7 MB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007963/0.3747, allocations: 451.7 kB / 474.1 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001615/0.3748, allocations: 8 kB / 474.1 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005129/0.3753, allocations: 59.95 kB / 474.2 MB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000122/0.3755, allocations: 39.94 kB / 474.2 MB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.539e-05/0.3755, allocations: 8 kB / 474.2 MB, free: 10.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003338/0.3788, allocations: 2.259 MB / 476.5 MB, free: 7.887 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3788, allocations: 0 / 476.5 MB, free: 7.887 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009674/0.3798, allocations: 263.5 kB / 476.7 MB, free: 7.629 MB / 382.1 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.001713/0.3815, allocations: 455 kB / 477.2 MB, free: 7.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001428/0.3829, allocations: 0.5924 MB / 477.8 MB, free: 6.734 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.3829, allocations: 0 / 477.8 MB, free: 6.734 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006519/0.3836, allocations: 347.1 kB / 478.1 MB, free: 6.383 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001319/0.3849, allocations: 300.6 kB / 478.4 MB, free: 6.094 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005982/0.3909, allocations: 3.647 MB / 482 MB, free: 2.398 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001374/0.3923, allocations: 1.501 MB / 483.5 MB, free: 0.8672 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007561/0.393, allocations: 299.1 kB / 483.8 MB, free: 0.5703 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002623/0.3933, allocations: 91.44 kB / 483.9 MB, free: 492 kB / 382.1 MB Notification: Performance of SimCode: time 1.263e-06/0.3933, allocations: 3.938 kB / 483.9 MB, free: 488 kB / 382.1 MB Notification: Performance of Templates: time 0.03667/0.43, allocations: 17.62 MB / 0.4898 GB, free: 14.97 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.621893300674856]