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.0007682/0.0007682, allocations: 84 kB / 21.43 MB, free: 3.137 MB / 18.57 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.003191/0.003191, allocations: 141.6 kB / 24.68 MB, free: 8.891 MB / 18.57 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 0.8211/0.8211, allocations: 173.4 MB / 201.2 MB, free: 9.457 MB / 186.7 MB " [Timeout remaining time 179] 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 1.714e-06/1.714e-06, allocations: 3.938 kB / 319.7 MB, free: 5.895 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.922e-05/2.093e-05, allocations: 6.281 kB / 319.7 MB, free: 5.887 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.004076/0.004097, allocations: 4.906 MB / 324.6 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001815/0.005912, allocations: 1.652 MB / 326.2 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002015/0.006113, allocations: 19.88 kB / 326.3 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009676/0.007081, allocations: 0.5094 MB / 326.8 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004037/0.007485, allocations: 365.9 kB / 327.1 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004263/0.007911, allocations: 378 kB / 327.5 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005718/0.008483, allocations: 0.9157 MB / 328.4 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002734/0.008756, allocations: 225.2 kB / 328.6 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003416/0.009098, allocations: 0.5107 MB / 329.1 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003014/0.009399, allocations: 379 kB / 329.5 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.588e-05/0.009465, allocations: 76 kB / 329.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001181/0.009583, allocations: 119.9 kB / 329.7 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002731/0.009856, allocations: 0.5922 MB / 330.3 MB, free: 11.22 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002488/0.0101, allocations: 434.6 kB / 330.7 MB, free: 10.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001132/0.01124, allocations: 2.064 MB / 332.8 MB, free: 8.727 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.01124, allocations: 0 / 332.8 MB, free: 8.727 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.01124, allocations: 0 / 332.8 MB, free: 8.727 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.01125, allocations: 3.938 kB / 332.8 MB, free: 8.723 MB / 298.7 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.002001/0.01325, allocations: 2.035 MB / 334.8 MB, free: 6.648 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.01329, allocations: 11.97 kB / 334.8 MB, free: 6.637 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001544/0.01344, allocations: 195.7 kB / 335 MB, free: 6.445 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00131/0.01475, allocations: 1.454 MB / 336.5 MB, free: 4.961 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.031e-05/0.01483, allocations: 96.95 kB / 336.6 MB, free: 4.852 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.982e-05/0.01488, allocations: 47.94 kB / 336.6 MB, free: 4.805 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006792/0.01556, allocations: 0.848 MB / 337.5 MB, free: 3.852 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.01557, allocations: 0 / 337.5 MB, free: 3.852 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.232e-05/0.0156, allocations: 20 kB / 337.5 MB, free: 3.832 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.01561, allocations: 12 kB / 337.5 MB, free: 3.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004166/0.01603, allocations: 343.7 kB / 337.8 MB, free: 3.484 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002334/0.01836, allocations: 2.824 MB / 340.7 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008258/0.01919, allocations: 354.9 kB / 341 MB, free: 208 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002637/0.01945, allocations: 172.7 kB / 341.2 MB, free: 32 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.203e-05/0.01947, allocations: 4 kB / 341.2 MB, free: 28 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.0195, allocations: 38.56 kB / 341.2 MB, free: 15.98 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.153e-06/0.0195, allocations: 4 kB / 341.2 MB, free: 15.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009631/0.02047, allocations: 0.621 MB / 341.8 MB, free: 15.35 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.531e-05/0.02053, allocations: 209.6 kB / 342 MB, free: 15.09 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002085/0.02262, allocations: 2.852 MB / 344.9 MB, free: 12.19 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/0.02264, allocations: 33.7 kB / 344.9 MB, free: 12.15 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004309/0.02307, allocations: 0.7973 MB / 345.7 MB, free: 11.35 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.181e-05/0.02311, allocations: 79.38 kB / 345.8 MB, free: 11.27 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.547e-05/0.02319, allocations: 73.97 kB / 345.9 MB, free: 11.2 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.507e-05/0.02326, allocations: 318 kB / 346.2 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001874/0.02345, allocations: 124.5 kB / 346.3 MB, free: 10.76 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002819/0.02373, allocations: 450.9 kB / 346.7 MB, free: 10.21 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003906/0.02412, allocations: 356.2 kB / 347.1 MB, free: 9.812 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.02412, allocations: 3.938 kB / 347.1 MB, free: 9.809 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000607/0.02473, allocations: 0.5587 MB / 347.7 MB, free: 9.242 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.02474, allocations: 7.938 kB / 347.7 MB, free: 9.234 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.02475, allocations: 4 kB / 347.7 MB, free: 9.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001807/0.02493, allocations: 64.75 kB / 347.7 MB, free: 9.164 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003811/0.02531, allocations: 67.97 kB / 347.8 MB, free: 9.098 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009527/0.02627, allocations: 1.606 MB / 349.4 MB, free: 7.391 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002094/0.02647, allocations: 55.75 kB / 349.5 MB, free: 7.336 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.626e-05/0.02649, allocations: 20.09 kB / 349.5 MB, free: 7.316 MB / 314.7 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.0004161/0.02691, allocations: 0.5718 MB / 350 MB, free: 6.734 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001197/0.02703, allocations: 170.9 kB / 350.2 MB, free: 6.566 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006185/0.02765, allocations: 0.4982 MB / 350.7 MB, free: 6.059 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.02765, allocations: 4 kB / 350.7 MB, free: 6.055 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-06/0.02765, allocations: 4 kB / 350.7 MB, free: 6.051 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.02765, allocations: 7.922 kB / 350.7 MB, free: 6.043 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00138/0.02903, allocations: 1.411 MB / 352.1 MB, free: 4.582 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.02904, allocations: 0 / 352.1 MB, free: 4.582 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001195/0.02916, allocations: 48 kB / 352.2 MB, free: 4.535 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.429e-05/0.02925, allocations: 48.77 kB / 352.2 MB, free: 4.484 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.02926, allocations: 8.125 kB / 352.2 MB, free: 4.477 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007729/0.03004, allocations: 1.539 MB / 353.8 MB, free: 2.836 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.03004, allocations: 4.031 kB / 353.8 MB, free: 2.832 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007477/0.03079, allocations: 0.7146 MB / 354.5 MB, free: 2.094 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003285/0.03111, allocations: 302.8 kB / 354.8 MB, free: 1.797 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.634e-05/0.03118, allocations: 8 kB / 354.8 MB, free: 1.789 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002028/0.03138, allocations: 47.89 kB / 354.8 MB, free: 1.742 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.196e-05/0.03145, allocations: 32.12 kB / 354.9 MB, free: 1.711 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.034e-05/0.03146, allocations: 8 kB / 354.9 MB, free: 1.703 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001783/0.03324, allocations: 2.034 MB / 356.9 MB, free: 15.64 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.03324, allocations: 0 / 356.9 MB, free: 15.64 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004055/0.03364, allocations: 207.6 kB / 357.1 MB, free: 15.44 MB / 330.7 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.0005631/0.03421, allocations: 386.6 kB / 357.5 MB, free: 15.2 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005638/0.03477, allocations: 430.6 kB / 357.9 MB, free: 14.77 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.03477, allocations: 0 / 357.9 MB, free: 14.77 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002609/0.03503, allocations: 267.2 kB / 358.2 MB, free: 14.5 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005282/0.03556, allocations: 192.6 kB / 358.4 MB, free: 14.31 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002894/0.03846, allocations: 3.158 MB / 361.5 MB, free: 11.11 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009943/0.03945, allocations: 0.7586 MB / 362.3 MB, free: 10.31 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001428/0.03959, allocations: 80.48 kB / 362.4 MB, free: 10.23 MB / 330.7 MB Notification: Performance of SimCode: time 4.6e-07/0.03959, allocations: 0 / 362.4 MB, free: 10.23 MB / 330.7 MB Notification: Performance of Templates: time 0.01779/0.05739, allocations: 25 MB / 387.4 MB, free: 1.238 MB / 346.7 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.078793338499963]