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.0009593/0.0009593, allocations: 91.67 kB / 21.2 MB, free: 3.367 MB / 18.57 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.0009486/0.0009486, allocations: 160.5 kB / 24.56 MB, free: 12 kB / 18.57 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.002/1.002, allocations: 177 MB / 204.8 MB, free: 5.574 MB / 186.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 2.044e-06/2.044e-06, allocations: 0 / 272.9 MB, free: 1.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.827e-05/3.032e-05, allocations: 2.312 kB / 272.9 MB, free: 1.449 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.005507/0.005538, allocations: 5.449 MB / 278.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002921/0.008459, allocations: 1.842 MB / 280.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004661/0.008925, allocations: 15.94 kB / 280.2 MB, free: 10.1 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001118/0.01004, allocations: 0.5211 MB / 280.7 MB, free: 9.578 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007489/0.01079, allocations: 409.6 kB / 281.1 MB, free: 9.176 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007149/0.01151, allocations: 375.3 kB / 281.5 MB, free: 8.809 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009181/0.01242, allocations: 0.9196 MB / 282.4 MB, free: 7.887 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003858/0.01281, allocations: 225.2 kB / 282.6 MB, free: 7.66 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005251/0.01334, allocations: 0.5146 MB / 283.1 MB, free: 7.145 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004349/0.01377, allocations: 391 kB / 283.5 MB, free: 6.762 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.031e-05/0.01386, allocations: 76 kB / 283.6 MB, free: 6.688 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003206/0.01418, allocations: 123.9 kB / 283.7 MB, free: 6.566 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003813/0.01456, allocations: 0.6 MB / 284.3 MB, free: 5.965 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003611/0.01492, allocations: 430.7 kB / 284.7 MB, free: 5.543 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001188/0.01611, allocations: 1.203 MB / 285.9 MB, free: 4.336 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.01612, allocations: 0 / 285.9 MB, free: 4.336 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.01612, allocations: 0 / 285.9 MB, free: 4.336 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.287e-05/0.01613, allocations: 3.938 kB / 286 MB, free: 4.332 MB / 266.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.0025/0.01863, allocations: 2.227 MB / 288.2 MB, free: 2.059 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.01867, allocations: 11.98 kB / 288.2 MB, free: 2.047 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000272/0.01895, allocations: 227.7 kB / 288.4 MB, free: 1.824 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001387/0.02033, allocations: 1.059 MB / 289.5 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000104/0.02044, allocations: 88.97 kB / 289.6 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.288e-05/0.02051, allocations: 52.38 kB / 289.6 MB, free: 0.582 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1168/0.1373, allocations: 0.7377 MB / 290.3 MB, free: 24.07 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/0.1374, allocations: 3.625 kB / 290.4 MB, free: 24.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.153e-05/0.1374, allocations: 21.75 kB / 290.4 MB, free: 24.07 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.435e-05/0.1374, allocations: 11.69 kB / 290.4 MB, free: 24.07 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003675/0.1378, allocations: 169.3 kB / 290.5 MB, free: 24.07 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003689/0.1415, allocations: 2.997 MB / 293.5 MB, free: 22.82 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005104/0.142, allocations: 227 kB / 293.8 MB, free: 22.78 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000218/0.1422, allocations: 104.1 kB / 293.9 MB, free: 22.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.658e-05/0.1423, allocations: 7.906 kB / 293.9 MB, free: 22.77 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.911e-05/0.1423, allocations: 41.03 kB / 293.9 MB, free: 22.72 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 2.154e-06/0.1423, allocations: 0.6562 kB / 293.9 MB, free: 22.72 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008487/0.1431, allocations: 423.8 kB / 294.3 MB, free: 22.63 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.309e-05/0.1432, allocations: 209.9 kB / 294.5 MB, free: 22.38 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002334/0.1455, allocations: 2.022 MB / 296.6 MB, free: 21.92 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.678e-05/0.1456, allocations: 32.36 kB / 296.6 MB, free: 21.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006256/0.1462, allocations: 0.9691 MB / 297.6 MB, free: 21.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.881e-05/0.1462, allocations: 84.78 kB / 297.6 MB, free: 21.12 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.1463, allocations: 75.7 kB / 297.7 MB, free: 21.07 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.945e-05/0.1464, allocations: 496.8 kB / 298.2 MB, free: 20.59 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001013/0.1465, allocations: 45.17 kB / 298.2 MB, free: 20.58 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001791/0.1467, allocations: 416.3 kB / 298.7 MB, free: 20.11 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002363/0.1469, allocations: 276.6 kB / 298.9 MB, free: 19.87 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/0.1469, allocations: 1.219 kB / 298.9 MB, free: 19.87 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006511/0.1476, allocations: 421.1 kB / 299.3 MB, free: 19.7 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.1476, allocations: 14.88 kB / 299.3 MB, free: 19.69 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.1476, allocations: 3.125 kB / 299.4 MB, free: 19.69 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002454/0.1479, allocations: 50.16 kB / 299.4 MB, free: 19.67 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001773/0.148, allocations: 63.97 kB / 299.5 MB, free: 19.67 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001103/0.1491, allocations: 2.096 MB / 301.6 MB, free: 17.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003983/0.1495, allocations: 43.98 kB / 301.6 MB, free: 17.63 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.258e-05/0.1496, allocations: 17.41 kB / 301.6 MB, free: 17.63 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 (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.0003114/0.1499, allocations: 177 kB / 301.8 MB, free: 17.46 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001767/0.1501, allocations: 180.7 kB / 302 MB, free: 17.36 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005714/0.1506, allocations: 329.6 kB / 302.3 MB, free: 17.22 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.794e-06/0.1506, allocations: 2.656 kB / 302.3 MB, free: 17.22 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.1506, allocations: 4.188 kB / 302.3 MB, free: 17.22 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.1506, allocations: 6.422 kB / 302.3 MB, free: 17.21 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002358/0.153, allocations: 1.515 MB / 303.8 MB, free: 16.42 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.153, allocations: 0 / 303.8 MB, free: 16.42 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001363/0.1531, allocations: 39.59 kB / 303.9 MB, free: 16.42 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000133/0.1533, allocations: 40.83 kB / 303.9 MB, free: 16.4 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.212e-05/0.1533, allocations: 6.125 kB / 303.9 MB, free: 16.39 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000894/0.1542, allocations: 2.043 MB / 305.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.1542, allocations: 1.781 kB / 305.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006349/0.1548, allocations: 0.5415 MB / 306.5 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003657/0.1552, allocations: 281.8 kB / 306.8 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.996e-05/0.1553, allocations: 11.39 kB / 306.8 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001795/0.1555, allocations: 30.09 kB / 306.8 MB, free: 13.87 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.273e-05/0.1556, allocations: 27.78 kB / 306.8 MB, free: 13.87 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.394e-05/0.1556, allocations: 13.5 kB / 306.8 MB, free: 13.86 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001675/0.1572, allocations: 1.158 MB / 308 MB, free: 13.45 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1572, allocations: 0 / 308 MB, free: 13.45 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006856/0.1579, allocations: 206.2 kB / 308.2 MB, free: 13.42 MB / 266.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.0008027/0.1587, allocations: 336.5 kB / 308.5 MB, free: 13.32 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005821/0.1593, allocations: 366.5 kB / 308.9 MB, free: 13.11 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.1593, allocations: 0 / 308.9 MB, free: 13.11 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002026/0.1595, allocations: 257.2 kB / 309.1 MB, free: 12.91 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008288/0.1604, allocations: 221.5 kB / 309.4 MB, free: 12.8 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002999/0.1634, allocations: 2.391 MB / 311.8 MB, free: 11.59 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002163/0.1636, allocations: 342.6 kB / 312.1 MB, free: 11.45 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002547/0.1638, allocations: 153 kB / 312.2 MB, free: 11.42 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001324/0.164, allocations: 82.91 kB / 312.3 MB, free: 11.41 MB / 266.7 MB Notification: Performance of SimCode: time 1.333e-06/0.164, allocations: 0 / 312.3 MB, free: 11.41 MB / 266.7 MB Notification: Performance of Templates: time 0.01943/0.1834, allocations: 15.57 MB / 327.9 MB, free: 12.32 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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.337912926916033]