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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001184/0.001184, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001819/0.003004, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.001077/0.001077, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001399/0.002476, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.02/1.02, allocations: 177.5 MB / 190 MB, free: 4.762 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09923/1.119, allocations: 53.86 MB / 243.9 MB, free: 14.83 MB / 250.7 MB " [Timeout remaining time 179] 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=12000,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=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.092e-06/1.092e-06, allocations: 0 / 245.2 MB, free: 13.56 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.854e-05/1.964e-05, allocations: 2.312 kB / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.004646/0.004665, allocations: 5.416 MB / 250.6 MB, free: 8.105 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001927/0.006592, allocations: 1.9 MB / 252.5 MB, free: 6.199 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002302/0.006822, allocations: 19.88 kB / 252.5 MB, free: 6.18 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006585/0.007481, allocations: 0.529 MB / 253.1 MB, free: 5.648 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004248/0.007906, allocations: 405.6 kB / 253.5 MB, free: 5.25 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000521/0.008427, allocations: 371.2 kB / 253.8 MB, free: 4.887 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007069/0.009133, allocations: 0.9236 MB / 254.7 MB, free: 3.957 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002773/0.009411, allocations: 231.3 kB / 255 MB, free: 3.723 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005635/0.009974, allocations: 0.621 MB / 255.6 MB, free: 3.102 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003367/0.01031, allocations: 359.1 kB / 255.9 MB, free: 2.75 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.783e-05/0.01038, allocations: 76 kB / 256 MB, free: 2.676 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001466/0.01053, allocations: 123.9 kB / 256.1 MB, free: 2.555 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000283/0.01081, allocations: 0.5572 MB / 256.7 MB, free: 1.996 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002437/0.01105, allocations: 338.9 kB / 257 MB, free: 1.664 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007932/0.01185, allocations: 1.164 MB / 258.2 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.018e-05/0.01186, allocations: 0 / 258.2 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.01186, allocations: 8 kB / 258.2 MB, free: 500 kB / 250.7 MB Notification: Performance of Transformations before backend: time 1.984e-05/0.01188, allocations: 0 / 258.2 MB, free: 500 kB / 250.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.001772/0.01365, allocations: 2.165 MB / 260.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.689e-05/0.01368, allocations: 8.031 kB / 260.4 MB, free: 14.28 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001543/0.01383, allocations: 148.8 kB / 260.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007397/0.01457, allocations: 0.8142 MB / 261.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.198e-05/0.01464, allocations: 96.97 kB / 261.4 MB, free: 13.18 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.118e-05/0.01469, allocations: 56.36 kB / 261.5 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007273/0.01542, allocations: 0.6837 MB / 262.2 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.01544, allocations: 3.938 kB / 262.2 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.984e-05/0.01547, allocations: 24 kB / 262.2 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.01548, allocations: 12 kB / 262.2 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001495/0.01563, allocations: 118.9 kB / 262.3 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001906/0.01753, allocations: 1.88 MB / 264.2 MB, free: 10.23 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002931/0.01783, allocations: 190.5 kB / 264.4 MB, free: 10.03 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/0.01795, allocations: 80.81 kB / 264.5 MB, free: 9.949 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.392e-05/0.01797, allocations: 4.375 kB / 264.5 MB, free: 9.945 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.01799, allocations: 42.5 kB / 264.5 MB, free: 9.895 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.543e-06/0.018, allocations: 0 / 264.5 MB, free: 9.895 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.000499/0.0185, allocations: 293.5 kB / 264.8 MB, free: 9.602 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.168e-05/0.01852, allocations: 59.41 kB / 264.8 MB, free: 9.531 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001226/0.01974, allocations: 1.675 MB / 266.5 MB, free: 7.805 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.01977, allocations: 33.64 kB / 266.6 MB, free: 7.766 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002091/0.01998, allocations: 460.2 kB / 267 MB, free: 7.312 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.767e-05/0.02001, allocations: 79.31 kB / 267.1 MB, free: 7.234 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.954e-05/0.02008, allocations: 69.95 kB / 267.1 MB, free: 7.16 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.653e-05/0.02016, allocations: 321.9 kB / 267.5 MB, free: 6.84 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.988e-05/0.0202, allocations: 36.64 kB / 267.5 MB, free: 6.805 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001454/0.02035, allocations: 338 kB / 267.8 MB, free: 6.367 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001592/0.0205, allocations: 228.9 kB / 268.1 MB, free: 6.09 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.556e-06/0.02051, allocations: 4 kB / 268.1 MB, free: 6.086 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002726/0.02078, allocations: 279.2 kB / 268.3 MB, free: 5.805 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.0208, allocations: 8.5 kB / 268.3 MB, free: 5.797 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.0208, allocations: 4 kB / 268.3 MB, free: 5.793 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001298/0.02093, allocations: 44.83 kB / 268.4 MB, free: 5.746 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001489/0.02108, allocations: 75.84 kB / 268.5 MB, free: 5.672 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007698/0.02185, allocations: 1.411 MB / 269.9 MB, free: 4.172 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001764/0.02203, allocations: 43.77 kB / 269.9 MB, free: 4.129 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.437e-05/0.02204, allocations: 12 kB / 269.9 MB, free: 4.117 MB / 266.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 (cell.cell.limIntegrator.local_reset,cell.limIntegrator.local_reset,energy.local_reset,cccvCharger.CV) * 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.0001551/0.0222, allocations: 144.4 kB / 270.1 MB, free: 3.965 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.408e-05/0.02228, allocations: 95.88 kB / 270.2 MB, free: 3.871 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003086/0.02259, allocations: 274.3 kB / 270.4 MB, free: 3.594 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.02259, allocations: 4 kB / 270.4 MB, free: 3.59 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.02259, allocations: 3.984 kB / 270.4 MB, free: 3.586 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.0226, allocations: 3.938 kB / 270.4 MB, free: 3.582 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008377/0.02343, allocations: 0.8324 MB / 271.3 MB, free: 2.715 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.02344, allocations: 3.984 kB / 271.3 MB, free: 2.711 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001049/0.02354, allocations: 39.97 kB / 271.3 MB, free: 2.672 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002205/0.02376, allocations: 222.7 kB / 271.5 MB, free: 2.453 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.012e-05/0.02384, allocations: 36.77 kB / 271.6 MB, free: 2.414 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.02386, allocations: 0 / 271.6 MB, free: 2.414 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007558/0.02461, allocations: 1.371 MB / 272.9 MB, free: 0.957 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.02461, allocations: 0 / 272.9 MB, free: 0.957 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003497/0.02496, allocations: 381.3 kB / 273.3 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.984e-05/0.02502, allocations: 4 kB / 273.3 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000154/0.02518, allocations: 36.03 kB / 273.4 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.442e-05/0.02523, allocations: 31.89 kB / 273.4 MB, free: 500 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.02524, allocations: 11.98 kB / 273.4 MB, free: 488 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0007161/0.02596, allocations: 0.9104 MB / 274.3 MB, free: 15.54 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02596, allocations: 0 / 274.3 MB, free: 15.54 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004655/0.02642, allocations: 203.6 kB / 274.5 MB, free: 15.34 MB / 282.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.001021/0.02744, allocations: 488.1 kB / 275 MB, free: 15.05 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003403/0.02779, allocations: 275 kB / 275.2 MB, free: 14.77 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-05/0.02781, allocations: 20 kB / 275.3 MB, free: 14.75 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001621/0.02797, allocations: 210.3 kB / 275.5 MB, free: 14.53 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000976/0.02894, allocations: 1.366 MB / 276.8 MB, free: 12.96 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00485/0.03379, allocations: 2.387 MB / 279.2 MB, free: 10.52 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002419/0.03404, allocations: 354 kB / 279.6 MB, free: 10.15 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002382/0.03427, allocations: 142.3 kB / 279.7 MB, free: 10 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003356/0.03461, allocations: 257.2 kB / 280 MB, free: 9.754 MB / 282.7 MB Notification: Performance of SimCode: time 1.643e-06/0.03461, allocations: 4 kB / 280 MB, free: 9.75 MB / 282.7 MB Notification: Performance of Templates: time 0.1278/0.1625, allocations: 16.9 MB / 296.9 MB, free: 30.66 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1265441244468093]