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.000999/0.000999, allocations: 91.67 kB / 21.19 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.0014/0.0014, allocations: 156.5 kB / 24.55 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.074/1.074, allocations: 177 MB / 204.8 MB, free: 5.195 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.763e-06/1.763e-06, allocations: 0 / 272.9 MB, free: 1.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.975e-05/3.151e-05, allocations: 2.312 kB / 272.9 MB, free: 1.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.00339/0.003421, allocations: 3.007 MB / 275.9 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001105/0.004526, allocations: 0.74 MB / 276.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001716/0.004698, allocations: 4 kB / 276.6 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001908/0.004889, allocations: 67.31 kB / 276.7 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002396/0.005128, allocations: 107.1 kB / 276.8 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003137/0.005442, allocations: 115.8 kB / 276.9 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003885/0.00583, allocations: 426.1 kB / 277.3 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002485/0.006079, allocations: 134.4 kB / 277.5 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002025/0.006281, allocations: 247.5 kB / 277.7 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001928/0.006474, allocations: 147.6 kB / 277.9 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.194e-05/0.006516, allocations: 40 kB / 277.9 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.596e-05/0.006612, allocations: 51.98 kB / 277.9 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000121/0.006733, allocations: 115.6 kB / 278.1 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.006836, allocations: 143.7 kB / 278.2 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003366/0.007172, allocations: 314.8 kB / 278.5 MB, free: 11.64 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.007174, allocations: 0 / 278.5 MB, free: 11.64 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.007176, allocations: 0 / 278.5 MB, free: 11.64 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.007181, allocations: 0 / 278.5 MB, free: 11.64 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.0009687/0.008149, allocations: 0.7843 MB / 279.3 MB, free: 10.82 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.008194, allocations: 11.98 kB / 279.3 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.008298, allocations: 72.69 kB / 279.4 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003534/0.008651, allocations: 275.4 kB / 279.6 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.021e-05/0.008672, allocations: 21.03 kB / 279.7 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.778e-05/0.008719, allocations: 36.38 kB / 279.7 MB, free: 10.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003658/0.009085, allocations: 319 kB / 280 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.739e-06/0.009095, allocations: 4.172 kB / 280 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.247e-05/0.009117, allocations: 12.38 kB / 280 MB, free: 10.03 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.009129, allocations: 11.94 kB / 280 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001894/0.009319, allocations: 119.8 kB / 280.2 MB, free: 9.898 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001142/0.01046, allocations: 1.213 MB / 281.4 MB, free: 8.613 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002493/0.01071, allocations: 131 kB / 281.5 MB, free: 8.473 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001482/0.01086, allocations: 67.66 kB / 281.6 MB, free: 8.402 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.815e-05/0.0109, allocations: 15.92 kB / 281.6 MB, free: 8.387 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/0.01092, allocations: 37.38 kB / 281.6 MB, free: 8.34 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.593e-06/0.01093, allocations: 0 / 281.6 MB, free: 8.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002908/0.01122, allocations: 149.6 kB / 281.8 MB, free: 8.188 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.375e-05/0.01124, allocations: 51.41 kB / 281.8 MB, free: 8.125 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002229/0.01146, allocations: 328.2 kB / 282.1 MB, free: 7.789 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.574e-05/0.01148, allocations: 25.7 kB / 282.2 MB, free: 7.758 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.0116, allocations: 263.1 kB / 282.4 MB, free: 7.492 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.223e-05/0.01163, allocations: 59.48 kB / 282.5 MB, free: 7.434 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.77e-05/0.01169, allocations: 47.36 kB / 282.5 MB, free: 7.379 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.01182, allocations: 0.5079 MB / 283 MB, free: 6.859 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.986e-05/0.01188, allocations: 27.98 kB / 283.1 MB, free: 6.832 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.01198, allocations: 121 kB / 283.2 MB, free: 6.676 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000143/0.01213, allocations: 156.3 kB / 283.3 MB, free: 6.488 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.01213, allocations: 3.984 kB / 283.3 MB, free: 6.484 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002151/0.01235, allocations: 181.2 kB / 283.5 MB, free: 6.301 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.01236, allocations: 11.98 kB / 283.5 MB, free: 6.289 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.01237, allocations: 0 / 283.5 MB, free: 6.289 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.01238, allocations: 8.188 kB / 283.5 MB, free: 6.281 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.01249, allocations: 51.92 kB / 283.6 MB, free: 6.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.0125, allocations: 0 / 283.6 MB, free: 6.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001329/0.01263, allocations: 47.84 kB / 283.6 MB, free: 6.184 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.01265, allocations: 12 kB / 283.6 MB, free: 6.172 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 9.326e-05/0.01274, allocations: 172.5 kB / 283.8 MB, free: 5.992 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.503e-05/0.01279, allocations: 23.86 kB / 283.8 MB, free: 5.969 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002108/0.013, allocations: 142.7 kB / 284 MB, free: 5.824 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.013, allocations: 7.938 kB / 284 MB, free: 5.816 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.01301, allocations: 4 kB / 284 MB, free: 5.812 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.01301, allocations: 3.984 kB / 284 MB, free: 5.809 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000443/0.01345, allocations: 0.5049 MB / 284.5 MB, free: 5.254 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.01345, allocations: 0 / 284.5 MB, free: 5.254 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.327e-05/0.01355, allocations: 35.86 kB / 284.5 MB, free: 5.219 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.01355, allocations: 0 / 284.5 MB, free: 5.219 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.353e-05/0.01356, allocations: 8 kB / 284.5 MB, free: 5.211 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.01356, allocations: 0 / 284.5 MB, free: 5.211 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.01357, allocations: 0 / 284.5 MB, free: 5.211 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002722/0.01384, allocations: 327.7 kB / 284.8 MB, free: 4.867 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.212e-05/0.01387, allocations: 31.83 kB / 284.9 MB, free: 4.836 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.42e-05/0.01389, allocations: 7.984 kB / 284.9 MB, free: 4.828 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000139/0.01403, allocations: 35.97 kB / 284.9 MB, free: 4.793 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.01417, allocations: 99.81 kB / 285 MB, free: 4.695 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.01418, allocations: 8 kB / 285 MB, free: 4.688 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001269/0.01431, allocations: 225.1 kB / 285.2 MB, free: 4.465 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01431, allocations: 0 / 285.2 MB, free: 4.465 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002282/0.01454, allocations: 87.78 kB / 285.3 MB, free: 4.379 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.0001139/0.01465, allocations: 107.2 kB / 285.4 MB, free: 4.266 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001939/0.01484, allocations: 111.4 kB / 285.5 MB, free: 4.152 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.01485, allocations: 0 / 285.5 MB, free: 4.152 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.055e-05/0.01492, allocations: 50.42 kB / 285.6 MB, free: 4.102 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000264/0.01518, allocations: 48.97 kB / 285.6 MB, free: 4.055 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009284/0.01611, allocations: 0.6067 MB / 286.2 MB, free: 3.418 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.294e-05/0.01616, allocations: 88.31 kB / 286.3 MB, free: 3.312 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.967e-05/0.01624, allocations: 34.27 kB / 286.4 MB, free: 3.277 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.613e-05/0.01631, allocations: 28.5 kB / 286.4 MB, free: 3.25 MB / 266.7 MB Notification: Performance of SimCode: time 7.42e-07/0.01631, allocations: 0 / 286.4 MB, free: 3.25 MB / 266.7 MB Notification: Performance of Templates: time 0.0974/0.1137, allocations: 4.3 MB / 290.7 MB, free: 25.83 MB / 266.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.317229824140668]