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.001462/0.001462, allocations: 117.2 kB / 18.5 MB, free: 4.543 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.001461/0.001461, allocations: 202.6 kB / 21.45 MB, free: 1.59 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.545/1.545, allocations: 230.2 MB / 254.5 MB, free: 15.25 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.002028/0.002028, allocations: 63.89 kB / 373.8 MB, free: 9.902 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1304, allocations: 53.33 MB / 427.1 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.2494/0.3798, allocations: 6.071 MB / 433.2 MB, free: 8.273 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003332/0.3831, allocations: 2.32 MB / 435.5 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003813/0.3835, allocations: 20.47 kB / 435.6 MB, free: 7.656 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001236/0.3847, allocations: 0.6205 MB / 436.2 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007071/0.3855, allocations: 452.3 kB / 436.6 MB, free: 7.312 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007793/0.3862, allocations: 413.1 kB / 437 MB, free: 7.262 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001432/0.3877, allocations: 1.309 MB / 438.3 MB, free: 6.902 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005219/0.3882, allocations: 349.4 kB / 438.7 MB, free: 6.707 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006357/0.3888, allocations: 0.4952 MB / 439.2 MB, free: 6.473 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006821/0.3895, allocations: 0.601 MB / 439.8 MB, free: 6.227 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001493/0.3897, allocations: 116.8 kB / 439.9 MB, free: 6.227 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003086/0.39, allocations: 177.5 kB / 440.1 MB, free: 6.207 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005027/0.3905, allocations: 0.654 MB / 440.7 MB, free: 5.934 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000705/0.3912, allocations: 0.8908 MB / 441.6 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002964/0.3941, allocations: 2.644 MB / 444.2 MB, free: 4.312 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.3941, allocations: 3.938 kB / 444.2 MB, free: 4.309 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3941, allocations: 0 / 444.2 MB, free: 4.309 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.721e-05/0.3942, allocations: 0 / 444.2 MB, free: 4.309 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.004221/0.3984, allocations: 2.445 MB / 446.7 MB, free: 2.719 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.3985, allocations: 9.344 kB / 446.7 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003791/0.3988, allocations: 225.4 kB / 446.9 MB, free: 2.598 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002737/0.4016, allocations: 1.693 MB / 448.6 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001222/0.4017, allocations: 107.5 kB / 448.7 MB, free: 1.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001025/0.4018, allocations: 65.53 kB / 448.8 MB, free: 1.566 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001503/0.4033, allocations: 0.8297 MB / 449.6 MB, free: 1.133 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.988e-05/0.4033, allocations: 1.25 kB / 449.6 MB, free: 1.133 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.466e-05/0.4034, allocations: 28.22 kB / 449.6 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.693e-05/0.4034, allocations: 14.84 kB / 449.7 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001102/0.4045, allocations: 0.5439 MB / 450.2 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00782/0.4123, allocations: 4 MB / 454.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001544/0.4139, allocations: 0.5053 MB / 454.7 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008315/0.4147, allocations: 342.6 kB / 455 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.477e-05/0.4147, allocations: 4.094 kB / 455 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.711e-05/0.4148, allocations: 38.59 kB / 455.1 MB, free: 14.22 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.124e-06/0.4148, allocations: 0 / 455.1 MB, free: 14.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.003028/0.4178, allocations: 0.949 MB / 456 MB, free: 13.67 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001734/0.418, allocations: 265.1 kB / 456.3 MB, free: 13.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005644/0.4236, allocations: 3.166 MB / 459.5 MB, free: 11.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001101/0.4237, allocations: 33.05 kB / 459.5 MB, free: 11.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009472/0.4247, allocations: 0.8627 MB / 460.3 MB, free: 11.12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001461/0.4248, allocations: 125.8 kB / 460.5 MB, free: 11.01 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001889/0.425, allocations: 92.11 kB / 460.6 MB, free: 10.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.4252, allocations: 326.6 kB / 460.9 MB, free: 10.63 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005231/0.4257, allocations: 214.6 kB / 461.1 MB, free: 10.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006665/0.4264, allocations: 388 kB / 461.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009896/0.4274, allocations: 0.5237 MB / 462 MB, free: 9.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.4274, allocations: 5.25 kB / 462 MB, free: 9.836 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001989/0.4294, allocations: 0.7885 MB / 462.8 MB, free: 9.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.948e-05/0.4294, allocations: 14.42 kB / 462.8 MB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.4294, allocations: 3.281 kB / 462.8 MB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003568/0.4298, allocations: 66.95 kB / 462.9 MB, free: 9.371 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004829/0.4303, allocations: 119 kB / 463 MB, free: 9.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002013/0.4323, allocations: 1.782 MB / 464.8 MB, free: 7.609 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00101/0.4333, allocations: 81.08 kB / 464.8 MB, free: 7.559 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.146e-05/0.4333, allocations: 22.89 kB / 464.9 MB, free: 7.551 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.001289/0.4346, allocations: 0.6578 MB / 465.5 MB, free: 7.172 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003689/0.435, allocations: 196.6 kB / 465.7 MB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003278/0.4353, allocations: 216.6 kB / 465.9 MB, free: 6.953 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.4353, allocations: 2.375 kB / 465.9 MB, free: 6.953 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.4353, allocations: 5.125 kB / 465.9 MB, free: 6.949 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.4353, allocations: 2.578 kB / 465.9 MB, free: 6.949 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003863/0.4392, allocations: 2.162 MB / 468.1 MB, free: 5.492 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.4392, allocations: 1.781 kB / 468.1 MB, free: 5.492 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003779/0.4396, allocations: 80.09 kB / 468.2 MB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002113/0.4398, allocations: 58.42 kB / 468.2 MB, free: 5.445 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.339e-05/0.4398, allocations: 22.33 kB / 468.3 MB, free: 5.426 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001711/0.4415, allocations: 1.737 MB / 470 MB, free: 3.715 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.4415, allocations: 2.969 kB / 470 MB, free: 3.715 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002129/0.4437, allocations: 0.9789 MB / 471 MB, free: 3.125 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009744/0.4447, allocations: 456.1 kB / 471.4 MB, free: 2.805 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004035/0.4451, allocations: 17.44 kB / 471.4 MB, free: 2.793 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007366/0.4458, allocations: 52.94 kB / 471.5 MB, free: 2.773 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.4459, allocations: 37.91 kB / 471.5 MB, free: 2.754 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.073e-05/0.4459, allocations: 12.25 kB / 471.5 MB, free: 2.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.004896/0.4508, allocations: 2.259 MB / 473.8 MB, free: 1.266 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4508, allocations: 0 / 473.8 MB, free: 1.266 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001547/0.4524, allocations: 259.6 kB / 474.1 MB, free: 1.012 MB / 366.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.001863/0.4542, allocations: 475.1 kB / 474.5 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001571/0.4558, allocations: 0.5806 MB / 475.1 MB, free: 152 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.4558, allocations: 0 / 475.1 MB, free: 152 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007384/0.4566, allocations: 359.1 kB / 475.4 MB, free: 15.79 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001799/0.4584, allocations: 285.2 kB / 475.7 MB, free: 15.51 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007743/0.4661, allocations: 3.645 MB / 479.4 MB, free: 11.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001817/0.4679, allocations: 1.497 MB / 480.9 MB, free: 10.29 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001108/0.469, allocations: 299.1 kB / 481.2 MB, free: 9.996 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005614/0.4696, allocations: 99.42 kB / 481.3 MB, free: 9.898 MB / 382.1 MB Notification: Performance of SimCode: time 1.322e-06/0.4696, allocations: 0 / 481.3 MB, free: 9.898 MB / 382.1 MB Notification: Performance of Templates: time 0.03722/0.5068, allocations: 17.52 MB / 498.8 MB, free: 8.473 MB / 398.1 MB " [Timeout remaining time 659] 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.6348564913496375]