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.001784/0.001784, allocations: 103.6 kB / 21.19 MB, free: 0.5234 MB / 14.72 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.002045/0.002045, allocations: 214.5 kB / 24.48 MB, free: 3.836 MB / 14.72 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.526/1.526, allocations: 230.5 MB / 258.1 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001972/0.001972, allocations: 63.89 kB / 379 MB, free: 2.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2666, allocations: 53.41 MB / 432.4 MB, free: 6.543 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004755/0.2713, allocations: 2.791 MB / 435.2 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001696/0.273, allocations: 0.7206 MB / 435.9 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003106/0.2734, allocations: 7.938 kB / 435.9 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002731/0.2736, allocations: 63.42 kB / 436 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003836/0.274, allocations: 111.1 kB / 436.1 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003873/0.2744, allocations: 103.8 kB / 436.2 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005531/0.2749, allocations: 414.3 kB / 436.6 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003154/0.2753, allocations: 138.4 kB / 436.7 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002547/0.2755, allocations: 175.4 kB / 436.9 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000298/0.2758, allocations: 151.2 kB / 437 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.752e-05/0.2759, allocations: 40 kB / 437.1 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001422/0.276, allocations: 59.98 kB / 437.1 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000175/0.2762, allocations: 115.6 kB / 437.2 MB, free: 1.668 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002177/0.2764, allocations: 167.2 kB / 437.4 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006373/0.2771, allocations: 497.1 kB / 437.9 MB, free: 1.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.2771, allocations: 4 kB / 437.9 MB, free: 1.016 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.178e-06/0.2771, allocations: 4 kB / 437.9 MB, free: 1.012 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.599e-05/0.2771, allocations: 7.938 kB / 437.9 MB, free: 1.004 MB / 334.1 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.001845/0.2789, allocations: 0.7194 MB / 438.6 MB, free: 256 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.279, allocations: 11.98 kB / 438.6 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/0.2791, allocations: 44.7 kB / 438.7 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006072/0.2797, allocations: 289 kB / 439 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.665e-05/0.2797, allocations: 25.03 kB / 439 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.39e-05/0.2798, allocations: 28.38 kB / 439 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006535/0.2804, allocations: 397.6 kB / 439.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.2804, allocations: 0 / 439.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.616e-05/0.2805, allocations: 16 kB / 439.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.2805, allocations: 8 kB / 439.4 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004557/0.281, allocations: 238.5 kB / 439.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001928/0.2829, allocations: 1.102 MB / 440.8 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004097/0.2833, allocations: 162.6 kB / 440.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002704/0.2836, allocations: 124.7 kB / 441 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.964e-05/0.2836, allocations: 3.984 kB / 441 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.392e-05/0.2836, allocations: 38.5 kB / 441.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.703e-06/0.2836, allocations: 0 / 441.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005164/0.2842, allocations: 232.8 kB / 441.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.767e-05/0.2842, allocations: 51.41 kB / 441.4 MB, free: 13.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003796/0.2846, allocations: 301.8 kB / 441.7 MB, free: 13.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.502e-05/0.2846, allocations: 33.7 kB / 441.7 MB, free: 13.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001633/0.2848, allocations: 216.3 kB / 441.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.532e-05/0.2848, allocations: 55.48 kB / 442 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.407e-05/0.2849, allocations: 53.7 kB / 442 MB, free: 12.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.2851, allocations: 330.8 kB / 442.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000147/0.2853, allocations: 75.91 kB / 442.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001866/0.2854, allocations: 136.3 kB / 442.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002498/0.2857, allocations: 166 kB / 442.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.253e-06/0.2857, allocations: 7.984 kB / 442.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004144/0.2861, allocations: 237.2 kB / 442.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.444e-05/0.2861, allocations: 8 kB / 442.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.2861, allocations: 0 / 442.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.618e-05/0.2862, allocations: 4 kB / 442.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002523/0.2864, allocations: 48.16 kB / 443 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.2864, allocations: 8 kB / 443 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005157/0.287, allocations: 63.78 kB / 443.1 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.734e-05/0.287, allocations: 15.98 kB / 443.1 MB, free: 11.55 MB / 350.1 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.0001699/0.2872, allocations: 149.7 kB / 443.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.016e-05/0.2872, allocations: 27.8 kB / 443.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004513/0.2877, allocations: 195.7 kB / 443.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.835e-06/0.2877, allocations: 11.94 kB / 443.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.2877, allocations: 0 / 443.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.2877, allocations: 0 / 443.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008907/0.2886, allocations: 0.5067 MB / 444 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.2886, allocations: 3.938 kB / 444 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001632/0.2888, allocations: 31.98 kB / 444 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.2888, allocations: 0 / 444 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.092e-05/0.2888, allocations: 4 kB / 444 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.2888, allocations: 4 kB / 444 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2888, allocations: 0 / 444 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000554/0.2893, allocations: 390.1 kB / 444.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.08e-05/0.2894, allocations: 35.81 kB / 444.4 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.134e-05/0.2895, allocations: 4 kB / 444.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004022/0.2899, allocations: 51.92 kB / 444.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001782/0.29, allocations: 75.86 kB / 444.6 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-05/0.2901, allocations: 12 kB / 444.6 MB, free: 9.988 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002472/0.2903, allocations: 221.3 kB / 444.8 MB, free: 9.773 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2903, allocations: 0 / 444.8 MB, free: 9.773 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003872/0.2907, allocations: 83.78 kB / 444.9 MB, free: 9.691 MB / 350.1 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.0001707/0.2909, allocations: 107.2 kB / 445 MB, free: 9.578 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003681/0.2912, allocations: 171.7 kB / 445.1 MB, free: 9.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.2912, allocations: 0 / 445.1 MB, free: 9.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000181/0.2914, allocations: 100.4 kB / 445.2 MB, free: 9.312 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003926/0.2918, allocations: 52.36 kB / 445.3 MB, free: 9.262 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001578/0.2934, allocations: 0.7567 MB / 446 MB, free: 8.469 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001897/0.2936, allocations: 164.8 kB / 446.2 MB, free: 8.289 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001071/0.2937, allocations: 31.42 kB / 446.2 MB, free: 8.258 MB / 350.1 MB Notification: Performance of SimCode: time 6.52e-07/0.2937, allocations: 4 kB / 446.2 MB, free: 8.254 MB / 350.1 MB Notification: Performance of Templates: time 0.008135/0.3018, allocations: 4.283 MB / 450.5 MB, free: 3.992 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.345963971223682]