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.001286/0.001286, allocations: 112.2 kB / 21.19 MB, free: 0.7812 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.001395/0.001395, allocations: 214.5 kB / 24.49 MB, free: 4.18 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.408/1.408, allocations: 230.6 MB / 258.3 MB, free: 8.012 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.00146/0.00146, allocations: 47.92 kB / 379 MB, free: 2.664 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2439/0.2454, allocations: 53.37 MB / 432.4 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004379/0.2498, allocations: 3.016 MB / 435.4 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00138/0.2512, allocations: 0.7556 MB / 436.2 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001632/0.2513, allocations: 7.938 kB / 436.2 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002125/0.2515, allocations: 63.44 kB / 436.2 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002744/0.2518, allocations: 107.1 kB / 436.3 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003327/0.2521, allocations: 111.8 kB / 436.4 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004496/0.2526, allocations: 410.3 kB / 436.8 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002737/0.2529, allocations: 150.4 kB / 437 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001701/0.253, allocations: 159.4 kB / 437.1 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002827/0.2533, allocations: 187.2 kB / 437.3 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.583e-05/0.2534, allocations: 44 kB / 437.4 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001272/0.2535, allocations: 59.98 kB / 437.4 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001484/0.2537, allocations: 107.7 kB / 437.5 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001905/0.2538, allocations: 203 kB / 437.7 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005615/0.2544, allocations: 0.4954 MB / 438.2 MB, free: 1.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.2544, allocations: 0 / 438.2 MB, free: 1.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2544, allocations: 0 / 438.2 MB, free: 1.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.2544, allocations: 4 kB / 438.2 MB, free: 1.086 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.001562/0.256, allocations: 0.7233 MB / 439 MB, free: 336 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.256, allocations: 8.031 kB / 439 MB, free: 328 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.463e-05/0.2561, allocations: 52.69 kB / 439 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005094/0.2566, allocations: 289 kB / 439.3 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.572e-05/0.2566, allocations: 21.03 kB / 439.3 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.112e-05/0.2567, allocations: 32.38 kB / 439.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005701/0.2573, allocations: 342.2 kB / 439.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.2573, allocations: 4 kB / 439.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.375e-05/0.2573, allocations: 11.98 kB / 439.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.26e-05/0.2573, allocations: 12 kB / 439.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004296/0.2578, allocations: 242.4 kB / 439.9 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001859/0.2596, allocations: 1.253 MB / 441.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003663/0.26, allocations: 162.6 kB / 441.4 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002533/0.2602, allocations: 121 kB / 441.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.222e-05/0.2603, allocations: 0 / 441.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.021e-05/0.2603, allocations: 42.5 kB / 441.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.112e-06/0.2603, allocations: 0 / 441.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004692/0.2608, allocations: 235.6 kB / 441.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.775e-05/0.2608, allocations: 55.41 kB / 441.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003738/0.2612, allocations: 324.1 kB / 442.1 MB, free: 13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.425e-05/0.2612, allocations: 25.7 kB / 442.1 MB, free: 12.97 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001507/0.2614, allocations: 212.4 kB / 442.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.601e-05/0.2614, allocations: 55.58 kB / 442.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.587e-05/0.2615, allocations: 53.66 kB / 442.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.2617, allocations: 334.8 kB / 442.8 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001383/0.2618, allocations: 75.89 kB / 442.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001791/0.262, allocations: 131.6 kB / 443 MB, free: 12.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002447/0.2622, allocations: 178.5 kB / 443.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2622, allocations: 0 / 443.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003945/0.2626, allocations: 241.2 kB / 443.4 MB, free: 11.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.2626, allocations: 8 kB / 443.4 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.2626, allocations: 0 / 443.4 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.2627, allocations: 7.984 kB / 443.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000182/0.2628, allocations: 44.17 kB / 443.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.2628, allocations: 8 kB / 443.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003558/0.2632, allocations: 63.77 kB / 443.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.629e-05/0.2632, allocations: 8 kB / 443.5 MB, free: 11.5 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.0001809/0.2634, allocations: 157.8 kB / 443.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.214e-05/0.2635, allocations: 31.78 kB / 443.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004105/0.2639, allocations: 199.7 kB / 443.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.2639, allocations: 4 kB / 443.9 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.2639, allocations: 11.92 kB / 443.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.2639, allocations: 0 / 443.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008139/0.2647, allocations: 0.5921 MB / 444.5 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.2647, allocations: 0 / 444.5 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001554/0.2649, allocations: 35.92 kB / 444.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2649, allocations: 0 / 444.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.693e-05/0.2649, allocations: 3.984 kB / 444.6 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.2649, allocations: 8.031 kB / 444.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2649, allocations: 0 / 444.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005085/0.2654, allocations: 379.4 kB / 444.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.191e-05/0.2655, allocations: 39.77 kB / 445 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.222e-05/0.2655, allocations: 3.984 kB / 445 MB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003856/0.2659, allocations: 63.92 kB / 445 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001745/0.2661, allocations: 75.88 kB / 445.1 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.941e-05/0.2661, allocations: 7.984 kB / 445.1 MB, free: 9.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002649/0.2663, allocations: 235 kB / 445.4 MB, free: 9.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2663, allocations: 0 / 445.4 MB, free: 9.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003395/0.2667, allocations: 83.78 kB / 445.4 MB, free: 9.508 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.2668, allocations: 111.2 kB / 445.5 MB, free: 9.387 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003659/0.2672, allocations: 174.5 kB / 445.7 MB, free: 9.219 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2672, allocations: 0 / 445.7 MB, free: 9.219 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001812/0.2674, allocations: 107.9 kB / 445.8 MB, free: 9.113 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004607/0.2678, allocations: 53.5 kB / 445.9 MB, free: 9.059 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001391/0.2692, allocations: 0.7567 MB / 446.6 MB, free: 8.266 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004047/0.2696, allocations: 0.7753 MB / 447.4 MB, free: 7.465 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.2697, allocations: 27.44 kB / 447.4 MB, free: 7.438 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2697, allocations: 0 / 447.4 MB, free: 7.438 MB / 350.1 MB Notification: Performance of Templates: time 0.006728/0.2765, allocations: 4.349 MB / 451.8 MB, free: 3.113 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.075035699876025]