Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001231/0.001231, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001497/0.001497, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 56.14 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.2762, allocations: 50.55 MB / 409.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.00673/0.2829, allocations: 5.541 MB / 414.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003031/0.286, allocations: 1.882 MB / 416.7 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003035/0.2863, allocations: 8 kB / 416.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009923/0.2873, allocations: 0.5225 MB / 417.2 MB, free: 9.621 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006919/0.2881, allocations: 389.9 kB / 417.6 MB, free: 9.238 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007245/0.2888, allocations: 382.9 kB / 417.9 MB, free: 8.867 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009254/0.2897, allocations: 0.9003 MB / 418.8 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004784/0.2902, allocations: 328.8 kB / 419.2 MB, free: 7.629 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000405/0.2906, allocations: 370.7 kB / 419.5 MB, free: 7.266 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004605/0.2911, allocations: 442.4 kB / 420 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001104/0.2912, allocations: 83.94 kB / 420 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001948/0.2914, allocations: 116 kB / 420.2 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004589/0.2919, allocations: 0.5882 MB / 420.7 MB, free: 6.047 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005752/0.2925, allocations: 0.7377 MB / 421.5 MB, free: 5.305 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001762/0.2942, allocations: 2.126 MB / 423.6 MB, free: 3.172 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.2943, allocations: 0 / 423.6 MB, free: 3.172 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2943, allocations: 0 / 423.6 MB, free: 3.172 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.589e-05/0.2943, allocations: 0 / 423.6 MB, free: 3.172 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.003173/0.2975, allocations: 2.087 MB / 425.7 MB, free: 1.027 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.2975, allocations: 12.03 kB / 425.7 MB, free: 1.016 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002496/0.2978, allocations: 186.6 kB / 425.9 MB, free: 0.832 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002211/0.3, allocations: 1.506 MB / 427.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.517e-05/0.3001, allocations: 66.7 kB / 427.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.198e-05/0.3002, allocations: 44 kB / 427.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001013/0.3012, allocations: 0.5893 MB / 428.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.3013, allocations: 0 / 428.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.257e-05/0.3013, allocations: 24 kB / 428.1 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.386e-05/0.3013, allocations: 15.94 kB / 428.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006593/0.302, allocations: 343.8 kB / 428.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004433/0.3064, allocations: 3.238 MB / 431.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.3075, allocations: 378.2 kB / 432.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000471/0.308, allocations: 188.7 kB / 432.3 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.941e-05/0.3081, allocations: 4 kB / 432.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.027e-05/0.3081, allocations: 34.56 kB / 432.3 MB, free: 10.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.144e-06/0.3081, allocations: 0 / 432.3 MB, free: 10.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001886/0.31, allocations: 0.7036 MB / 433 MB, free: 9.461 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001422/0.3102, allocations: 205.6 kB / 433.2 MB, free: 9.211 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003868/0.314, allocations: 2.901 MB / 436.1 MB, free: 6.266 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.958e-05/0.3141, allocations: 33.7 kB / 436.1 MB, free: 6.227 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007782/0.3149, allocations: 0.7854 MB / 436.9 MB, free: 5.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.299e-05/0.315, allocations: 78.89 kB / 437 MB, free: 5.352 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001289/0.3151, allocations: 66.03 kB / 437.1 MB, free: 5.281 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.3153, allocations: 318 kB / 437.4 MB, free: 4.965 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003354/0.3156, allocations: 124.6 kB / 437.5 MB, free: 4.844 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000451/0.3161, allocations: 292.7 kB / 437.8 MB, free: 4.488 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006762/0.3168, allocations: 353.4 kB / 438.1 MB, free: 4.094 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.3168, allocations: 7.938 kB / 438.1 MB, free: 4.086 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001246/0.3181, allocations: 0.5548 MB / 438.7 MB, free: 3.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.3181, allocations: 12.09 kB / 438.7 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.3181, allocations: 8 kB / 438.7 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002733/0.3184, allocations: 56.81 kB / 438.8 MB, free: 3.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002752/0.3187, allocations: 79.83 kB / 438.8 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001658/0.3203, allocations: 1.72 MB / 440.6 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005577/0.3209, allocations: 59.56 kB / 440.6 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.806e-05/0.3209, allocations: 23.92 kB / 440.6 MB, free: 1.426 MB / 350.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.0009018/0.3219, allocations: 0.5758 MB / 441.2 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002292/0.3221, allocations: 165.9 kB / 441.4 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001153/0.3232, allocations: 0.5064 MB / 441.9 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.3233, allocations: 0 / 441.9 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.3233, allocations: 4 kB / 441.9 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.3233, allocations: 3.984 kB / 441.9 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002651/0.3259, allocations: 1.694 MB / 443.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.326, allocations: 4 kB / 443.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002381/0.3262, allocations: 47.98 kB / 443.6 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001874/0.3264, allocations: 52.77 kB / 443.7 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.931e-05/0.3264, allocations: 0 / 443.7 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001533/0.328, allocations: 1.673 MB / 445.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.328, allocations: 8.125 kB / 445.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001538/0.3295, allocations: 0.7004 MB / 446.1 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005804/0.3301, allocations: 382.8 kB / 446.4 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001218/0.3303, allocations: 8 kB / 446.4 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000417/0.3307, allocations: 43.95 kB / 446.5 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.647e-05/0.3308, allocations: 31.97 kB / 446.5 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.696e-05/0.3308, allocations: 4 kB / 446.5 MB, free: 11.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.004263/0.3351, allocations: 2.075 MB / 448.6 MB, free: 9.152 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3351, allocations: 0 / 448.6 MB, free: 9.152 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001545/0.3367, allocations: 203.6 kB / 448.8 MB, free: 8.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.001381/0.3381, allocations: 364.1 kB / 449.2 MB, free: 8.707 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001606/0.3397, allocations: 447.8 kB / 449.6 MB, free: 8.266 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.3397, allocations: 0 / 449.6 MB, free: 8.266 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007547/0.3405, allocations: 274.7 kB / 449.9 MB, free: 7.984 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001721/0.3422, allocations: 222.6 kB / 450.1 MB, free: 7.762 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007418/0.3497, allocations: 3.012 MB / 453.1 MB, free: 4.711 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001546/0.3512, allocations: 1.359 MB / 454.5 MB, free: 3.32 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008769/0.3521, allocations: 237.7 kB / 454.7 MB, free: 3.086 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003273/0.3525, allocations: 79.42 kB / 454.8 MB, free: 3.008 MB / 366.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3525, allocations: 4 kB / 454.8 MB, free: 3.004 MB / 366.1 MB Notification: Performance of Templates: time 0.04467/0.3972, allocations: 15.74 MB / 470.5 MB, free: 3.34 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches