Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.001158/0.001158, 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.001056/0.001056, allocations: 156.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 0.9553/0.9553, allocations: 177 MB / 204.8 MB, free: 5.59 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.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 272.9 MB, free: 1.484 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.576e-05/2.738e-05, allocations: 2.312 kB / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.00394/0.003967, allocations: 3.015 MB / 275.9 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001389/0.005356, allocations: 0.7244 MB / 276.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002008/0.005557, allocations: 7.938 kB / 276.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002081/0.005765, allocations: 63.38 kB / 276.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002933/0.006058, allocations: 111.1 kB / 276.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004074/0.006465, allocations: 119.7 kB / 276.9 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004136/0.006879, allocations: 426.1 kB / 277.3 MB, free: 13 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002501/0.007129, allocations: 138.3 kB / 277.5 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002503/0.007379, allocations: 239.5 kB / 277.7 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002275/0.007607, allocations: 151.5 kB / 277.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.452e-05/0.007651, allocations: 40 kB / 277.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001107/0.007762, allocations: 51.98 kB / 277.9 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001186/0.007881, allocations: 111.6 kB / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001078/0.007988, allocations: 143.6 kB / 278.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003763/0.008365, allocations: 310.8 kB / 278.5 MB, free: 11.84 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.008368, allocations: 0 / 278.5 MB, free: 11.84 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.008369, allocations: 0 / 278.5 MB, free: 11.84 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.008376, allocations: 3.938 kB / 278.5 MB, free: 11.84 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001008/0.009384, allocations: 0.7882 MB / 279.3 MB, free: 11.01 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.009427, allocations: 15.97 kB / 279.3 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.009533, allocations: 64.7 kB / 279.4 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003404/0.009873, allocations: 279.4 kB / 279.6 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.101e-05/0.009894, allocations: 21.03 kB / 279.7 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.466e-05/0.009939, allocations: 36.38 kB / 279.7 MB, free: 10.58 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003834/0.01032, allocations: 319.1 kB / 280 MB, free: 10.24 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.01033, allocations: 192 / 280 MB, free: 10.24 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.507e-05/0.01036, allocations: 16.38 kB / 280 MB, free: 10.22 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.2e-05/0.01037, allocations: 11.94 kB / 280 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001897/0.01056, allocations: 111.8 kB / 280.1 MB, free: 10.1 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001237/0.0118, allocations: 1.225 MB / 281.4 MB, free: 8.801 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000266/0.01206, allocations: 123 kB / 281.5 MB, free: 8.668 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001541/0.01222, allocations: 83.53 kB / 281.6 MB, free: 8.582 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.587e-05/0.01225, allocations: 4 kB / 281.6 MB, free: 8.578 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.01228, allocations: 37.38 kB / 281.6 MB, free: 8.531 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.853e-06/0.01228, allocations: 0 / 281.6 MB, free: 8.531 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003085/0.01259, allocations: 145.7 kB / 281.8 MB, free: 8.383 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.878e-05/0.01262, allocations: 51.41 kB / 281.8 MB, free: 8.32 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002228/0.01284, allocations: 332.1 kB / 282.1 MB, free: 7.98 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.953e-05/0.01286, allocations: 25.7 kB / 282.2 MB, free: 7.949 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.01299, allocations: 263.1 kB / 282.4 MB, free: 7.684 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.688e-05/0.01303, allocations: 59.47 kB / 282.5 MB, free: 7.625 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.109e-05/0.01309, allocations: 51.38 kB / 282.5 MB, free: 7.566 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004064/0.0135, allocations: 0.504 MB / 283 MB, free: 7.051 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.609e-05/0.01356, allocations: 27.97 kB / 283 MB, free: 7.023 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.226e-05/0.01365, allocations: 117.1 kB / 283.2 MB, free: 6.871 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001507/0.0138, allocations: 156.2 kB / 283.3 MB, free: 6.684 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.01381, allocations: 0 / 283.3 MB, free: 6.684 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000237/0.01404, allocations: 189.2 kB / 283.5 MB, free: 6.492 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.01406, allocations: 4 kB / 283.5 MB, free: 6.488 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.01407, allocations: 4 kB / 283.5 MB, free: 6.484 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.17e-05/0.01409, allocations: 7.938 kB / 283.5 MB, free: 6.477 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001179/0.01421, allocations: 44.17 kB / 283.6 MB, free: 6.434 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.01421, allocations: 4 kB / 283.6 MB, free: 6.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001531/0.01437, allocations: 55.78 kB / 283.6 MB, free: 6.375 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.072e-05/0.01439, allocations: 12 kB / 283.6 MB, free: 6.363 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,energy.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001101/0.0145, allocations: 168.5 kB / 283.8 MB, free: 6.188 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.126e-05/0.01454, allocations: 27.86 kB / 283.8 MB, free: 6.16 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002388/0.01478, allocations: 142.6 kB / 284 MB, free: 6.016 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.01478, allocations: 7.938 kB / 284 MB, free: 6.008 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/0.01479, allocations: 0 / 284 MB, free: 6.008 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.01479, allocations: 7.984 kB / 284 MB, free: 6 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005389/0.01533, allocations: 0.5049 MB / 284.5 MB, free: 5.445 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-06/0.01533, allocations: 0 / 284.5 MB, free: 5.445 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.01544, allocations: 31.92 kB / 284.5 MB, free: 5.414 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.01544, allocations: 0 / 284.5 MB, free: 5.414 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/0.01546, allocations: 8 kB / 284.5 MB, free: 5.406 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.01546, allocations: 3.938 kB / 284.5 MB, free: 5.402 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.01546, allocations: 3.938 kB / 284.5 MB, free: 5.398 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002912/0.01575, allocations: 319.8 kB / 284.8 MB, free: 5.062 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.79e-05/0.01579, allocations: 35.77 kB / 284.9 MB, free: 5.027 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.684e-05/0.01582, allocations: 8.062 kB / 284.9 MB, free: 5.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001463/0.01597, allocations: 35.97 kB / 284.9 MB, free: 4.984 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001463/0.01611, allocations: 95.81 kB / 285 MB, free: 4.891 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/0.01612, allocations: 12 kB / 285 MB, free: 4.879 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001342/0.01626, allocations: 221.1 kB / 285.2 MB, free: 4.66 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01626, allocations: 0 / 285.2 MB, free: 4.66 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002555/0.01651, allocations: 87.78 kB / 285.3 MB, free: 4.574 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (superCap.capacitor.v,energy.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001494/0.01666, allocations: 111.2 kB / 285.4 MB, free: 4.457 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002163/0.01688, allocations: 110.3 kB / 285.5 MB, free: 4.348 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.01688, allocations: 0 / 285.5 MB, free: 4.348 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.517e-05/0.01696, allocations: 50.7 kB / 285.6 MB, free: 4.297 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000311/0.01727, allocations: 53.59 kB / 285.6 MB, free: 4.246 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/0.0184, allocations: 0.6068 MB / 286.2 MB, free: 3.609 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.73e-05/0.01846, allocations: 88.31 kB / 286.3 MB, free: 3.504 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.276e-05/0.01855, allocations: 34.28 kB / 286.4 MB, free: 3.469 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.963e-05/0.01862, allocations: 28.5 kB / 286.4 MB, free: 3.441 MB / 266.7 MB Notification: Performance of SimCode: time 9.51e-07/0.01862, allocations: 0 / 286.4 MB, free: 3.441 MB / 266.7 MB Notification: Performance of Templates: time 0.007767/0.02639, allocations: 4.576 MB / 291 MB, free: 14.91 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.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.0442907670512795]