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.001512/0.001512, allocations: 123.4 kB / 17.79 MB, free: 5.266 MB / 14.72 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.001943/0.001943, allocations: 200.3 kB / 20.74 MB, free: 2.32 MB / 14.72 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 1.553/1.553, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] 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.1..v|cell.cell.capacitor.2..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.1..v|cell.cell.capacitor.2..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 0.001687/0.001687, allocations: 51.92 kB / 373.5 MB, free: 9.746 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1057, allocations: 53.34 MB / 426.8 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.2291/0.3348, allocations: 6.081 MB / 432.9 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003477/0.3383, allocations: 2.325 MB / 435.2 MB, free: 7.977 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008904/0.3392, allocations: 24.69 kB / 435.2 MB, free: 7.965 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001922/0.3411, allocations: 0.6147 MB / 435.8 MB, free: 7.797 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001505/0.3426, allocations: 453.5 kB / 436.3 MB, free: 7.625 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009897/0.3436, allocations: 408.2 kB / 436.7 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001583/0.3452, allocations: 1.304 MB / 438 MB, free: 6.875 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000628/0.3458, allocations: 347.2 kB / 438.3 MB, free: 6.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009958/0.3468, allocations: 0.5014 MB / 438.8 MB, free: 6.449 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009321/0.3477, allocations: 0.6077 MB / 439.4 MB, free: 6.195 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001688/0.3479, allocations: 116.9 kB / 439.5 MB, free: 6.195 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003552/0.3482, allocations: 173.9 kB / 439.7 MB, free: 6.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005155/0.3487, allocations: 0.6612 MB / 440.4 MB, free: 5.898 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006708/0.3494, allocations: 0.8884 MB / 441.3 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003507/0.3529, allocations: 2.643 MB / 443.9 MB, free: 4.277 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.3529, allocations: 1.031 kB / 443.9 MB, free: 4.277 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.3529, allocations: 1.312 kB / 443.9 MB, free: 4.277 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.749e-05/0.353, allocations: 1.156 kB / 443.9 MB, free: 4.277 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.004922/0.3579, allocations: 2.444 MB / 446.4 MB, free: 2.688 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.358, allocations: 10.52 kB / 446.4 MB, free: 2.688 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003454/0.3583, allocations: 224.8 kB / 446.6 MB, free: 2.566 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002605/0.3609, allocations: 1.694 MB / 448.3 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001097/0.361, allocations: 106 kB / 448.4 MB, free: 1.559 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001003/0.3611, allocations: 68.09 kB / 448.4 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/0.3626, allocations: 0.8266 MB / 449.3 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.896e-05/0.3627, allocations: 1.031 kB / 449.3 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.897e-05/0.3627, allocations: 28 kB / 449.3 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.699e-05/0.3628, allocations: 14.59 kB / 449.3 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001092/0.3638, allocations: 0.5523 MB / 449.9 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007354/0.3712, allocations: 3.989 MB / 453.9 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00145/0.3726, allocations: 0.5031 MB / 454.4 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008203/0.3735, allocations: 334.9 kB / 454.7 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.366e-05/0.3735, allocations: 4.219 kB / 454.7 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.119e-05/0.3736, allocations: 45.3 kB / 454.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.134e-06/0.3736, allocations: 1.156 kB / 454.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002875/0.3764, allocations: 0.9554 MB / 455.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001748/0.3766, allocations: 268.9 kB / 456 MB, free: 13.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00569/0.3823, allocations: 3.162 MB / 459.1 MB, free: 11.81 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001162/0.3824, allocations: 33.23 kB / 459.1 MB, free: 11.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009889/0.3834, allocations: 0.8587 MB / 460 MB, free: 11.04 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001666/0.3836, allocations: 125.7 kB / 460.1 MB, free: 10.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002105/0.3838, allocations: 96.36 kB / 460.2 MB, free: 10.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.384, allocations: 322.6 kB / 460.5 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005599/0.3845, allocations: 210.8 kB / 460.7 MB, free: 10.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006951/0.3852, allocations: 396.1 kB / 461.1 MB, free: 10.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/0.3864, allocations: 0.5171 MB / 461.6 MB, free: 9.766 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.3864, allocations: 4 kB / 461.7 MB, free: 9.762 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002075/0.3884, allocations: 0.7865 MB / 462.4 MB, free: 9.336 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.62e-05/0.3885, allocations: 7.656 kB / 462.4 MB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.3885, allocations: 7.594 kB / 462.5 MB, free: 9.332 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003895/0.3889, allocations: 71.5 kB / 462.5 MB, free: 9.297 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005292/0.3894, allocations: 109.5 kB / 462.6 MB, free: 9.273 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002656/0.3921, allocations: 1.8 MB / 464.4 MB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001082/0.3931, allocations: 74.94 kB / 464.5 MB, free: 7.484 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.735e-05/0.3932, allocations: 17.44 kB / 464.5 MB, free: 7.48 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.001743/0.3949, allocations: 0.654 MB / 465.2 MB, free: 7.105 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004462/0.3954, allocations: 196.6 kB / 465.4 MB, free: 6.996 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004364/0.3958, allocations: 224.2 kB / 465.6 MB, free: 6.879 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.73e-06/0.3958, allocations: 3.375 kB / 465.6 MB, free: 6.879 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.3958, allocations: 0 / 465.6 MB, free: 6.879 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.3958, allocations: 7.922 kB / 465.6 MB, free: 6.871 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004517/0.4003, allocations: 2.155 MB / 467.8 MB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.4004, allocations: 2.438 kB / 467.8 MB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004495/0.4008, allocations: 81.67 kB / 467.8 MB, free: 5.402 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002556/0.4011, allocations: 69.59 kB / 467.9 MB, free: 5.359 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.498e-05/0.4011, allocations: 7.312 kB / 467.9 MB, free: 5.355 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001903/0.403, allocations: 1.747 MB / 469.7 MB, free: 3.645 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.403, allocations: 3.938 kB / 469.7 MB, free: 3.641 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00226/0.4053, allocations: 0.9884 MB / 470.6 MB, free: 3.043 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009736/0.4062, allocations: 449.2 kB / 471.1 MB, free: 2.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002222/0.4065, allocations: 16.61 kB / 471.1 MB, free: 2.719 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000599/0.4071, allocations: 48.83 kB / 471.1 MB, free: 2.703 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/0.4072, allocations: 43.95 kB / 471.2 MB, free: 2.676 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.193e-05/0.4072, allocations: 16.36 kB / 471.2 MB, free: 2.668 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00393/0.4111, allocations: 2.25 MB / 473.5 MB, free: 1.156 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4111, allocations: 0 / 473.5 MB, free: 1.156 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001229/0.4124, allocations: 263.6 kB / 473.7 MB, free: 0.8984 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.001818/0.4142, allocations: 481.1 kB / 474.2 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001603/0.4158, allocations: 0.5809 MB / 474.8 MB, free: 56 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.4158, allocations: 8.312 kB / 474.8 MB, free: 48 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007783/0.4166, allocations: 350.4 kB / 475.1 MB, free: 15.69 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001875/0.4184, allocations: 290.8 kB / 475.4 MB, free: 15.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007528/0.426, allocations: 3.652 MB / 479.1 MB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001501/0.4275, allocations: 1.493 MB / 480.5 MB, free: 10.19 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00103/0.4285, allocations: 299.2 kB / 480.8 MB, free: 9.891 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003161/0.4288, allocations: 95.44 kB / 480.9 MB, free: 9.797 MB / 382.1 MB Notification: Performance of SimCode: time 9.21e-07/0.4288, allocations: 0 / 480.9 MB, free: 9.797 MB / 382.1 MB Notification: Performance of Templates: time 0.03731/0.4661, allocations: 17.52 MB / 498.5 MB, free: 8.41 MB / 398.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.725272510200739]