Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.001962/0.001962, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 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.001438/0.001438, allocations: 191 kB / 23.71 MB, free: 4.406 MB / 14.72 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 1.483/1.483, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] 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_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001606/0.001606, allocations: 47.92 kB / 370.9 MB, free: 9.188 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.337, allocations: 52.19 MB / 423.1 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007524/0.3446, allocations: 4.909 MB / 428 MB, free: 9.535 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003038/0.3476, allocations: 1.639 MB / 429.6 MB, free: 7.895 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003809/0.348, allocations: 19.88 kB / 429.6 MB, free: 7.875 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001152/0.3491, allocations: 0.5058 MB / 430.1 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008364/0.35, allocations: 350.1 kB / 430.5 MB, free: 7.023 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001043/0.351, allocations: 379.8 kB / 430.8 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001209/0.3522, allocations: 0.8925 MB / 431.7 MB, free: 5.758 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005207/0.3527, allocations: 225.3 kB / 432 MB, free: 5.535 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004582/0.3532, allocations: 370.8 kB / 432.3 MB, free: 5.172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005052/0.3537, allocations: 426.3 kB / 432.7 MB, free: 4.754 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001237/0.3538, allocations: 80 kB / 432.8 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002163/0.354, allocations: 116 kB / 432.9 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00054/0.3546, allocations: 0.5882 MB / 433.5 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005535/0.3551, allocations: 0.5512 MB / 434.1 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002198/0.3573, allocations: 2.148 MB / 436.2 MB, free: 1.262 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.87e-06/0.3573, allocations: 0 / 436.2 MB, free: 1.262 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3573, allocations: 0 / 436.2 MB, free: 1.262 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.592e-05/0.3574, allocations: 0 / 436.2 MB, free: 1.262 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.0037/0.3611, allocations: 2.062 MB / 438.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.655e-05/0.3611, allocations: 8.031 kB / 438.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003518/0.3615, allocations: 195.7 kB / 438.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002881/0.3644, allocations: 1.451 MB / 439.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001452/0.3645, allocations: 92.41 kB / 440 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.022e-05/0.3646, allocations: 44 kB / 440.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/0.3659, allocations: 0.8364 MB / 440.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.3659, allocations: 3.938 kB / 440.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.505e-05/0.3659, allocations: 27.98 kB / 440.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.545e-05/0.366, allocations: 12 kB / 440.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007406/0.3667, allocations: 343.7 kB / 441.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004846/0.3715, allocations: 2.834 MB / 444.1 MB, free: 9.074 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001146/0.3727, allocations: 364.7 kB / 444.5 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005059/0.3732, allocations: 168.8 kB / 444.6 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.814e-05/0.3732, allocations: 3.984 kB / 444.6 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.521e-05/0.3733, allocations: 38.56 kB / 444.7 MB, free: 8.492 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 3.076e-06/0.3733, allocations: 4 kB / 444.7 MB, free: 8.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.002195/0.3755, allocations: 0.624 MB / 445.3 MB, free: 7.855 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001864/0.3757, allocations: 213.6 kB / 445.5 MB, free: 7.598 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004106/0.3798, allocations: 2.848 MB / 448.4 MB, free: 4.699 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.738e-05/0.3798, allocations: 33.64 kB / 448.4 MB, free: 4.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007986/0.3806, allocations: 0.7973 MB / 449.2 MB, free: 3.859 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.096e-05/0.3807, allocations: 83.31 kB / 449.3 MB, free: 3.777 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001237/0.3808, allocations: 73.97 kB / 449.3 MB, free: 3.699 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.381, allocations: 314 kB / 449.6 MB, free: 3.387 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003435/0.3813, allocations: 120.6 kB / 449.8 MB, free: 3.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006531/0.382, allocations: 443.1 kB / 450.2 MB, free: 2.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007873/0.3828, allocations: 365.6 kB / 450.6 MB, free: 2.324 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.3828, allocations: 0 / 450.6 MB, free: 2.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001301/0.3841, allocations: 0.5636 MB / 451.1 MB, free: 1.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/0.3841, allocations: 8 kB / 451.1 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.3841, allocations: 4 kB / 451.1 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000292/0.3844, allocations: 56.81 kB / 451.2 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002934/0.3847, allocations: 75.89 kB / 451.3 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001837/0.3865, allocations: 1.595 MB / 452.9 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005212/0.3871, allocations: 59.7 kB / 452.9 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.634e-05/0.3871, allocations: 16.09 kB / 452.9 MB, free: 15.84 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0009554/0.388, allocations: 0.5793 MB / 453.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002481/0.3883, allocations: 166.9 kB / 453.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001272/0.3896, allocations: 0.5059 MB / 454.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.3896, allocations: 4 kB / 454.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.3896, allocations: 0 / 454.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.3896, allocations: 7.984 kB / 454.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002874/0.3924, allocations: 1.407 MB / 455.6 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.3924, allocations: 0 / 455.6 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002434/0.3927, allocations: 48 kB / 455.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001716/0.3929, allocations: 56.75 kB / 455.7 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.928e-05/0.3929, allocations: 4 kB / 455.7 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001599/0.3945, allocations: 1.539 MB / 457.2 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.3945, allocations: 3.938 kB / 457.2 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001568/0.3961, allocations: 0.7112 MB / 458 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008079/0.3969, allocations: 306.8 kB / 458.3 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001188/0.397, allocations: 8 kB / 458.3 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004383/0.3974, allocations: 39.95 kB / 458.3 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.3975, allocations: 35.94 kB / 458.3 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.692e-05/0.3975, allocations: 4 kB / 458.3 MB, free: 10.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003/0.4005, allocations: 2.034 MB / 460.4 MB, free: 8.168 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4005, allocations: 3.938 kB / 460.4 MB, free: 8.164 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008435/0.4014, allocations: 215.6 kB / 460.6 MB, free: 7.953 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001441/0.4028, allocations: 385 kB / 461 MB, free: 7.719 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00115/0.404, allocations: 432.1 kB / 461.4 MB, free: 7.289 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.247e-06/0.404, allocations: 0 / 461.4 MB, free: 7.289 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005513/0.4045, allocations: 263.2 kB / 461.6 MB, free: 7.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/0.4056, allocations: 197.4 kB / 461.8 MB, free: 6.824 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006058/0.4116, allocations: 3.097 MB / 464.9 MB, free: 3.688 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001152/0.4128, allocations: 0.7625 MB / 465.7 MB, free: 2.887 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005872/0.4134, allocations: 238.2 kB / 465.9 MB, free: 2.648 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002417/0.4136, allocations: 79.44 kB / 466 MB, free: 2.57 MB / 366.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4136, allocations: 4 kB / 466 MB, free: 2.566 MB / 366.1 MB Notification: Performance of Templates: time 0.03398/0.4476, allocations: 16.94 MB / 483 MB, free: 1.758 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.28589797578752]