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.001056/0.001056, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.00123/0.00123, allocations: 159.8 kB / 24.91 MB, free: 8.719 MB / 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.9703/0.9703, allocations: 177 MB / 205.2 MB, free: 5.023 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.172e-06/1.172e-06, allocations: 0 / 273.4 MB, free: 1.078 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.025e-05/2.142e-05, allocations: 5.266 kB / 273.4 MB, free: 1.074 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003864/0.003886, allocations: 2.968 MB / 276.3 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001505/0.005391, allocations: 0.7514 MB / 277.1 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001908/0.005582, allocations: 8 kB / 277.1 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002103/0.005792, allocations: 71.3 kB / 277.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002836/0.006076, allocations: 107.1 kB / 277.3 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003291/0.006405, allocations: 111.7 kB / 277.4 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004131/0.006818, allocations: 430.1 kB / 277.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007081/0.007526, allocations: 142.2 kB / 277.9 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002969/0.007823, allocations: 239.5 kB / 278.2 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002541/0.008077, allocations: 159.6 kB / 278.3 MB, free: 12.08 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.319e-05/0.00813, allocations: 40 kB / 278.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000107/0.008237, allocations: 48 kB / 278.4 MB, free: 12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001292/0.008367, allocations: 111.6 kB / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001322/0.008499, allocations: 147.6 kB / 278.7 MB, free: 11.74 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003803/0.008879, allocations: 306.8 kB / 279 MB, free: 11.44 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.008882, allocations: 0 / 279 MB, free: 11.44 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.008883, allocations: 0 / 279 MB, free: 11.44 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.008887, allocations: 4 kB / 279 MB, free: 11.44 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.001016/0.009903, allocations: 0.6557 MB / 279.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.009939, allocations: 19.97 kB / 279.6 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.064e-05/0.01003, allocations: 48.91 kB / 279.7 MB, free: 10.69 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003044/0.01033, allocations: 224.6 kB / 279.9 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.102e-05/0.01035, allocations: 25.03 kB / 279.9 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.164e-05/0.01041, allocations: 32.38 kB / 280 MB, free: 10.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003533/0.01076, allocations: 305.3 kB / 280.3 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.01077, allocations: 4.172 kB / 280.3 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.022e-05/0.0108, allocations: 16.38 kB / 280.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.01081, allocations: 11.94 kB / 280.3 MB, free: 10.03 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001504/0.01096, allocations: 75.33 kB / 280.4 MB, free: 9.957 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001165/0.01213, allocations: 0.8951 MB / 281.3 MB, free: 9.008 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002262/0.01236, allocations: 150.3 kB / 281.4 MB, free: 8.852 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001238/0.01248, allocations: 69.09 kB / 281.5 MB, free: 8.781 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.597e-05/0.01251, allocations: 7.938 kB / 281.5 MB, free: 8.773 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.184e-05/0.01253, allocations: 30.56 kB / 281.5 MB, free: 8.734 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.904e-06/0.01253, allocations: 4 kB / 281.5 MB, free: 8.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002329/0.01276, allocations: 108.5 kB / 281.6 MB, free: 8.621 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.063e-05/0.01279, allocations: 59.34 kB / 281.7 MB, free: 8.551 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002003/0.01299, allocations: 248.9 kB / 281.9 MB, free: 8.297 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.01301, allocations: 25.7 kB / 282 MB, free: 8.266 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.654e-05/0.01311, allocations: 200.8 kB / 282.1 MB, free: 8.062 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.949e-05/0.01315, allocations: 55.52 kB / 282.2 MB, free: 8.008 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.474e-05/0.01322, allocations: 49.64 kB / 282.3 MB, free: 7.953 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.705e-05/0.01332, allocations: 338.8 kB / 282.6 MB, free: 7.613 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.788e-05/0.01337, allocations: 14.83 kB / 282.6 MB, free: 7.598 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.072e-05/0.01345, allocations: 91.62 kB / 282.7 MB, free: 7.48 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001308/0.01358, allocations: 122.8 kB / 282.8 MB, free: 7.336 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.01358, allocations: 0 / 282.8 MB, free: 7.336 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002181/0.0138, allocations: 144.2 kB / 282.9 MB, free: 7.188 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.01381, allocations: 8 kB / 283 MB, free: 7.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.01382, allocations: 0 / 283 MB, free: 7.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.01383, allocations: 4 kB / 283 MB, free: 7.176 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.01397, allocations: 43.92 kB / 283 MB, free: 7.133 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.01398, allocations: 11.92 kB / 283 MB, free: 7.121 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001756/0.01415, allocations: 48.11 kB / 283.1 MB, free: 7.074 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.14e-05/0.01418, allocations: 8 kB / 283.1 MB, free: 7.066 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 (energy.local_reset,pulseSeries.on2,pulseSeries.on1) * 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.812e-05/0.01427, allocations: 124.5 kB / 283.2 MB, free: 6.934 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.654e-05/0.01432, allocations: 23.98 kB / 283.2 MB, free: 6.91 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002036/0.01452, allocations: 111.7 kB / 283.3 MB, free: 6.797 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.01453, allocations: 4 kB / 283.3 MB, free: 6.793 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.01453, allocations: 3.938 kB / 283.3 MB, free: 6.789 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.267e-06/0.01453, allocations: 0 / 283.3 MB, free: 6.789 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004513/0.01498, allocations: 383.5 kB / 283.7 MB, free: 6.383 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.01499, allocations: 0 / 283.7 MB, free: 6.383 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001142/0.0151, allocations: 35.95 kB / 283.7 MB, free: 6.348 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.0151, allocations: 3.938 kB / 283.7 MB, free: 6.344 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.01512, allocations: 8 kB / 283.8 MB, free: 6.336 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.01512, allocations: 3.938 kB / 283.8 MB, free: 6.332 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.01512, allocations: 7.984 kB / 283.8 MB, free: 6.324 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002559/0.01538, allocations: 274 kB / 284 MB, free: 6.039 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.018e-05/0.01542, allocations: 23.81 kB / 284.1 MB, free: 6.016 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.108e-05/0.01545, allocations: 7.984 kB / 284.1 MB, free: 6.008 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001923/0.01564, allocations: 39.94 kB / 284.1 MB, free: 5.969 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.269e-05/0.01574, allocations: 51.86 kB / 284.2 MB, free: 5.918 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.313e-05/0.01575, allocations: 4 kB / 284.2 MB, free: 5.914 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001009/0.01585, allocations: 86.78 kB / 284.2 MB, free: 5.824 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01585, allocations: 0 / 284.2 MB, free: 5.824 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003123/0.01616, allocations: 83.78 kB / 284.3 MB, free: 5.742 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.0001239/0.01629, allocations: 92.34 kB / 284.4 MB, free: 5.641 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001658/0.01645, allocations: 88.75 kB / 284.5 MB, free: 5.551 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/0.01646, allocations: 4 kB / 284.5 MB, free: 5.547 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.002e-05/0.01653, allocations: 39.61 kB / 284.5 MB, free: 5.504 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000278/0.01681, allocations: 40.47 kB / 284.6 MB, free: 5.465 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001027/0.01783, allocations: 0.6004 MB / 285.2 MB, free: 4.836 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.347e-05/0.0179, allocations: 88.31 kB / 285.3 MB, free: 4.73 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001097/0.01801, allocations: 38.2 kB / 285.3 MB, free: 4.695 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001655/0.01817, allocations: 99.34 kB / 285.4 MB, free: 4.598 MB / 266.7 MB Notification: Performance of SimCode: time 9.81e-07/0.01817, allocations: 0 / 285.4 MB, free: 4.598 MB / 266.7 MB Notification: Performance of Templates: time 0.007188/0.02536, allocations: 3.945 MB / 289.3 MB, free: 0.7109 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.0576155348680913]