Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 103.6 kB / 21.18 MB, free: 0.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001501/0.001501, allocations: 209.1 kB / 24.48 MB, free: 3.965 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.465/1.465, allocations: 230.6 MB / 258.3 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002567/0.002567, allocations: 43.92 kB / 378.9 MB, free: 2.488 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2534/0.256, allocations: 53.37 MB / 432.3 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004295/0.2603, allocations: 2.797 MB / 435.1 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001364/0.2617, allocations: 0.7206 MB / 435.8 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001664/0.2618, allocations: 7.938 kB / 435.8 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002296/0.2621, allocations: 63.38 kB / 435.9 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002818/0.2623, allocations: 111.1 kB / 436 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003134/0.2626, allocations: 99.89 kB / 436.1 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004606/0.2631, allocations: 418.3 kB / 436.5 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002728/0.2634, allocations: 146.4 kB / 436.7 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001789/0.2636, allocations: 167.4 kB / 436.8 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002782/0.2638, allocations: 175.3 kB / 437 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.743e-05/0.2639, allocations: 40 kB / 437 MB, free: 2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001217/0.264, allocations: 59.98 kB / 437.1 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001664/0.2642, allocations: 115.6 kB / 437.2 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001819/0.2644, allocations: 171.2 kB / 437.4 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005995/0.265, allocations: 0.4939 MB / 437.9 MB, free: 1.168 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.265, allocations: 0 / 437.9 MB, free: 1.168 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.265, allocations: 0 / 437.9 MB, free: 1.168 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.642e-06/0.265, allocations: 4 kB / 437.9 MB, free: 1.164 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.001641/0.2666, allocations: 0.7234 MB / 438.6 MB, free: 416 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.2667, allocations: 12.02 kB / 438.6 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.098e-05/0.2667, allocations: 40.7 kB / 438.6 MB, free: 364 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005321/0.2673, allocations: 284.9 kB / 438.9 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.169e-05/0.2673, allocations: 25.03 kB / 439 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.37e-05/0.2674, allocations: 32.38 kB / 439 MB, free: 0 / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000665/0.268, allocations: 401.6 kB / 439.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.268, allocations: 0 / 439.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.661e-05/0.2681, allocations: 16 kB / 439.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.2681, allocations: 8 kB / 439.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004434/0.2685, allocations: 234.5 kB / 439.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001811/0.2703, allocations: 1.106 MB / 440.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003819/0.2707, allocations: 166.5 kB / 440.9 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002682/0.271, allocations: 120.8 kB / 441 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.844e-05/0.271, allocations: 0 / 441 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.525e-05/0.2711, allocations: 42.48 kB / 441.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 9.92e-07/0.2711, allocations: 0 / 441.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004929/0.2715, allocations: 233.6 kB / 441.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.758e-05/0.2716, allocations: 51.41 kB / 441.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003634/0.272, allocations: 309.7 kB / 441.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.887e-05/0.272, allocations: 29.7 kB / 441.7 MB, free: 13.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000155/0.2721, allocations: 212.4 kB / 441.9 MB, free: 12.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.668e-05/0.2722, allocations: 59.47 kB / 441.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.92e-05/0.2723, allocations: 49.7 kB / 442 MB, free: 12.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.2725, allocations: 330.8 kB / 442.3 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001484/0.2726, allocations: 75.95 kB / 442.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000191/0.2728, allocations: 127.7 kB / 442.5 MB, free: 12.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002506/0.273, allocations: 166.4 kB / 442.7 MB, free: 12.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.273, allocations: 4 kB / 442.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004122/0.2735, allocations: 241.2 kB / 442.9 MB, free: 11.85 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.2735, allocations: 8 kB / 442.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.2735, allocations: 0 / 442.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.2735, allocations: 4 kB / 442.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002032/0.2737, allocations: 47.91 kB / 443 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.2737, allocations: 11.92 kB / 443 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003986/0.2741, allocations: 71.98 kB / 443 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.256e-05/0.2741, allocations: 12 kB / 443.1 MB, free: 11.7 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.0001542/0.2743, allocations: 145.8 kB / 443.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.31e-05/0.2744, allocations: 27.8 kB / 443.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000422/0.2748, allocations: 202 kB / 443.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.2748, allocations: 4 kB / 443.4 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.2748, allocations: 0 / 443.4 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.2748, allocations: 0 / 443.4 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007885/0.2756, allocations: 0.5067 MB / 443.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.2756, allocations: 7.969 kB / 443.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001727/0.2758, allocations: 31.98 kB / 444 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.2758, allocations: 0 / 444 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.595e-05/0.2758, allocations: 11.98 kB / 444 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.2758, allocations: 3.938 kB / 444 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.2758, allocations: 0 / 444 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000543/0.2763, allocations: 372.5 kB / 444.4 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.435e-05/0.2764, allocations: 35.81 kB / 444.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.418e-05/0.2764, allocations: 4 kB / 444.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000426/0.2769, allocations: 59.97 kB / 444.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001745/0.277, allocations: 71.88 kB / 444.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.133e-05/0.2771, allocations: 8 kB / 444.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002492/0.2773, allocations: 221.2 kB / 444.7 MB, free: 9.934 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2773, allocations: 0 / 444.7 MB, free: 9.934 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003859/0.2777, allocations: 87.78 kB / 444.8 MB, free: 9.848 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.0001482/0.2778, allocations: 111.2 kB / 444.9 MB, free: 9.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003626/0.2782, allocations: 183 kB / 445.1 MB, free: 9.555 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2782, allocations: 0 / 445.1 MB, free: 9.555 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001777/0.2784, allocations: 95.89 kB / 445.2 MB, free: 9.461 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003892/0.2788, allocations: 44.41 kB / 445.3 MB, free: 9.418 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001487/0.2803, allocations: 0.7495 MB / 446 MB, free: 8.633 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000178/0.2804, allocations: 168.8 kB / 446.2 MB, free: 8.449 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.2806, allocations: 31.44 kB / 446.2 MB, free: 8.418 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2806, allocations: 0 / 446.2 MB, free: 8.418 MB / 350.1 MB Notification: Performance of Templates: time 0.007127/0.2877, allocations: 4.289 MB / 450.5 MB, free: 4.148 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.397212699986994]