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.001323/0.001323, allocations: 108.7 kB / 19.8 MB, free: 2.516 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.001409/0.001409, allocations: 213.7 kB / 23 MB, free: 5.629 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.461/1.461, allocations: 230.2 MB / 256.2 MB, free: 8.562 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.001966/0.001966, allocations: 63.89 kB / 376.5 MB, free: 3.645 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2613/0.2633, allocations: 53.32 MB / 429.8 MB, free: 7.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.00477/0.2681, allocations: 3.028 MB / 432.8 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001405/0.2695, allocations: 0.7401 MB / 433.5 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001591/0.2696, allocations: 11.94 kB / 433.6 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002575/0.2699, allocations: 55.44 kB / 433.6 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002613/0.2701, allocations: 119 kB / 433.7 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003662/0.2705, allocations: 99.88 kB / 433.8 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004994/0.271, allocations: 410.3 kB / 434.2 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003331/0.2713, allocations: 153.8 kB / 434.4 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002112/0.2715, allocations: 155.4 kB / 434.5 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002502/0.2718, allocations: 183.2 kB / 434.7 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.955e-05/0.2719, allocations: 40 kB / 434.7 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001161/0.272, allocations: 59.98 kB / 434.8 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000172/0.2721, allocations: 115.6 kB / 434.9 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002057/0.2724, allocations: 203.1 kB / 435.1 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006173/0.273, allocations: 0.4914 MB / 435.6 MB, free: 1.711 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.273, allocations: 0 / 435.6 MB, free: 1.711 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.273, allocations: 0 / 435.6 MB, free: 1.711 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.273, allocations: 4 kB / 435.6 MB, free: 1.707 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.00175/0.2747, allocations: 0.8064 MB / 436.4 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.2748, allocations: 8.031 kB / 436.4 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001011/0.2749, allocations: 44.7 kB / 436.5 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005955/0.2755, allocations: 354.6 kB / 436.8 MB, free: 428 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.222e-05/0.2755, allocations: 25.03 kB / 436.8 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.624e-05/0.2756, allocations: 32.38 kB / 436.9 MB, free: 372 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006269/0.2762, allocations: 346.2 kB / 437.2 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.2762, allocations: 4 kB / 437.2 MB, free: 8 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.469e-05/0.2762, allocations: 8 kB / 437.2 MB, free: 0 / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.862e-05/0.2763, allocations: 8.047 kB / 437.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004632/0.2767, allocations: 238.5 kB / 437.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002017/0.2787, allocations: 1.3 MB / 438.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003825/0.2791, allocations: 166.5 kB / 438.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002635/0.2794, allocations: 116.7 kB / 439 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.344e-05/0.2794, allocations: 0 / 439 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.63e-05/0.2795, allocations: 38.56 kB / 439.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 2.905e-06/0.2795, allocations: 7.922 kB / 439.1 MB, free: 14.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005082/0.28, allocations: 240.7 kB / 439.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.433e-05/0.28, allocations: 51.41 kB / 439.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003906/0.2804, allocations: 319 kB / 439.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.003e-05/0.2804, allocations: 29.7 kB / 439.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001635/0.2806, allocations: 216.3 kB / 439.9 MB, free: 13.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.344e-05/0.2807, allocations: 55.55 kB / 440 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.2808, allocations: 45.7 kB / 440 MB, free: 13.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.2809, allocations: 334.8 kB / 440.3 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001458/0.2811, allocations: 75.95 kB / 440.4 MB, free: 12.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001984/0.2813, allocations: 135.6 kB / 440.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002644/0.2815, allocations: 167.6 kB / 440.7 MB, free: 12.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.2815, allocations: 0 / 440.7 MB, free: 12.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004376/0.282, allocations: 247.6 kB / 441 MB, free: 12.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.282, allocations: 4 kB / 441 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.282, allocations: 4 kB / 441 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.374e-05/0.282, allocations: 4 kB / 441 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001947/0.2822, allocations: 47.92 kB / 441 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.2822, allocations: 0 / 441 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003883/0.2826, allocations: 75.95 kB / 441.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.129e-05/0.2827, allocations: 8 kB / 441.1 MB, free: 11.91 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.0001815/0.2828, allocations: 157.8 kB / 441.3 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.969e-05/0.2829, allocations: 31.75 kB / 441.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004281/0.2833, allocations: 199.7 kB / 441.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.87e-06/0.2833, allocations: 4 kB / 441.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.2833, allocations: 0 / 441.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.2833, allocations: 11.94 kB / 441.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000911/0.2843, allocations: 0.6281 MB / 442.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.2843, allocations: 0 / 442.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001614/0.2844, allocations: 27.98 kB / 442.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.2844, allocations: 0 / 442.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/0.2844, allocations: 4 kB / 442.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.431e-06/0.2844, allocations: 7.984 kB / 442.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.2844, allocations: 0 / 442.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005616/0.285, allocations: 386.6 kB / 442.5 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/0.2851, allocations: 108.9 kB / 442.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.913e-05/0.2852, allocations: 7.938 kB / 442.7 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003909/0.2855, allocations: 59.98 kB / 442.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001812/0.2857, allocations: 71.88 kB / 442.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.768e-05/0.2857, allocations: 4 kB / 442.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002895/0.286, allocations: 245.9 kB / 443 MB, free: 9.863 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.286, allocations: 0 / 443 MB, free: 9.863 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003821/0.2864, allocations: 83.78 kB / 443.1 MB, free: 9.781 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.0001711/0.2866, allocations: 111.1 kB / 443.2 MB, free: 9.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003794/0.287, allocations: 175.8 kB / 443.4 MB, free: 9.488 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.287, allocations: 0 / 443.4 MB, free: 9.488 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001792/0.2871, allocations: 99.88 kB / 443.5 MB, free: 9.391 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004197/0.2876, allocations: 52.81 kB / 443.5 MB, free: 9.336 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001596/0.2892, allocations: 0.7192 MB / 444.3 MB, free: 8.586 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005448/0.2897, allocations: 0.7792 MB / 445 MB, free: 7.781 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001599/0.2899, allocations: 38.28 kB / 445.1 MB, free: 7.742 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/0.29, allocations: 23.44 kB / 445.1 MB, free: 7.719 MB / 350.1 MB Notification: Performance of SimCode: time 7.82e-07/0.29, allocations: 0 / 445.1 MB, free: 7.719 MB / 350.1 MB Notification: Performance of Templates: time 0.01018/0.3002, allocations: 4.601 MB / 449.7 MB, free: 3.164 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins/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: 5.062154117040336]