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.001309/0.001309, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.00146/0.00146, allocations: 209 kB / 24.48 MB, free: 3.938 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.47/1.47, allocations: 230.6 MB / 258.2 MB, free: 7.773 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.001445/0.001445, allocations: 55.92 kB / 379 MB, free: 2.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.2349, allocations: 53.36 MB / 432.3 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.00462/0.2395, allocations: 2.798 MB / 435.1 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001569/0.2411, allocations: 0.7206 MB / 435.8 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002583/0.2413, allocations: 7.938 kB / 435.8 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002679/0.2416, allocations: 63.42 kB / 435.9 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003341/0.2419, allocations: 107.1 kB / 436 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000373/0.2423, allocations: 107.8 kB / 436.1 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005675/0.2429, allocations: 414.3 kB / 436.5 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002985/0.2432, allocations: 138.4 kB / 436.7 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002389/0.2434, allocations: 167.4 kB / 436.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002997/0.2437, allocations: 159.2 kB / 437 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.725e-05/0.2438, allocations: 40 kB / 437 MB, free: 2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001447/0.2439, allocations: 59.98 kB / 437.1 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00016/0.2441, allocations: 107.6 kB / 437.2 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001912/0.2443, allocations: 167.2 kB / 437.3 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006254/0.2449, allocations: 0.4932 MB / 437.8 MB, free: 1.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2449, allocations: 0 / 437.8 MB, free: 1.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2449, allocations: 3.938 kB / 437.8 MB, free: 1.176 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.369e-05/0.2449, allocations: 4 kB / 437.8 MB, free: 1.172 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.001773/0.2467, allocations: 0.7272 MB / 438.6 MB, free: 420 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.2468, allocations: 8.031 kB / 438.6 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/0.2469, allocations: 44.7 kB / 438.6 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005678/0.2474, allocations: 292.9 kB / 438.9 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.506e-05/0.2475, allocations: 21.03 kB / 438.9 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.03e-05/0.2475, allocations: 32.38 kB / 439 MB, free: 0 / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006597/0.2482, allocations: 397.6 kB / 439.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.2482, allocations: 0 / 439.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.477e-05/0.2482, allocations: 12 kB / 439.4 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.2482, allocations: 8 kB / 439.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004529/0.2487, allocations: 238.5 kB / 439.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001889/0.2506, allocations: 1.098 MB / 440.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003937/0.251, allocations: 154.6 kB / 440.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002628/0.2512, allocations: 124.7 kB / 441 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.606e-05/0.2513, allocations: 7.984 kB / 441 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.17e-05/0.2513, allocations: 42.5 kB / 441 MB, free: 13.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.443e-06/0.2513, allocations: 0 / 441 MB, free: 13.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005082/0.2518, allocations: 225.7 kB / 441.2 MB, free: 13.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.471e-05/0.2519, allocations: 51.41 kB / 441.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003769/0.2522, allocations: 305.8 kB / 441.6 MB, free: 13.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.082e-05/0.2523, allocations: 29.69 kB / 441.6 MB, free: 13.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001602/0.2524, allocations: 216.3 kB / 441.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.801e-05/0.2525, allocations: 59.48 kB / 441.9 MB, free: 12.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.558e-05/0.2526, allocations: 45.7 kB / 441.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.2527, allocations: 338.8 kB / 442.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001452/0.2529, allocations: 71.91 kB / 442.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000187/0.2531, allocations: 131.7 kB / 442.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002703/0.2533, allocations: 171.6 kB / 442.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2533, allocations: 3.938 kB / 442.6 MB, free: 12.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004252/0.2538, allocations: 247.6 kB / 442.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.2538, allocations: 8 kB / 442.9 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.2538, allocations: 0 / 442.9 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.2538, allocations: 4 kB / 442.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001898/0.254, allocations: 48.16 kB / 442.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.254, allocations: 8 kB / 442.9 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003887/0.2544, allocations: 63.77 kB / 443 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.993e-05/0.2544, allocations: 12 kB / 443 MB, free: 11.71 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.0001677/0.2546, allocations: 153.7 kB / 443.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.605e-05/0.2547, allocations: 27.8 kB / 443.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004125/0.2551, allocations: 195.7 kB / 443.4 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.2551, allocations: 8 kB / 443.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.2551, allocations: 0 / 443.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.2551, allocations: 0 / 443.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007792/0.2559, allocations: 0.5138 MB / 443.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.2559, allocations: 0 / 443.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001593/0.256, allocations: 27.98 kB / 443.9 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.256, allocations: 0 / 443.9 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.058e-05/0.256, allocations: 8 kB / 443.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.256, allocations: 0 / 443.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.256, allocations: 3.984 kB / 443.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005257/0.2566, allocations: 380.5 kB / 444.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.071e-05/0.2566, allocations: 31.81 kB / 444.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.319e-05/0.2567, allocations: 4 kB / 444.4 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004212/0.2571, allocations: 55.92 kB / 444.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001713/0.2573, allocations: 75.86 kB / 444.5 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.832e-05/0.2573, allocations: 8 kB / 444.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002439/0.2575, allocations: 225.3 kB / 444.7 MB, free: 9.945 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2575, allocations: 0 / 444.7 MB, free: 9.945 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003985/0.2579, allocations: 91.77 kB / 444.8 MB, free: 9.855 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.0001474/0.2581, allocations: 99.25 kB / 444.9 MB, free: 9.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003679/0.2584, allocations: 171.7 kB / 445.1 MB, free: 9.582 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2584, allocations: 0 / 445.1 MB, free: 9.582 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001837/0.2586, allocations: 108.3 kB / 445.2 MB, free: 9.477 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003953/0.259, allocations: 52.41 kB / 445.2 MB, free: 9.426 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001516/0.2605, allocations: 0.7566 MB / 446 MB, free: 8.633 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001867/0.2607, allocations: 168.8 kB / 446.1 MB, free: 8.449 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.2608, allocations: 27.44 kB / 446.2 MB, free: 8.422 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2608, allocations: 4 kB / 446.2 MB, free: 8.418 MB / 350.1 MB Notification: Performance of Templates: time 0.007695/0.2685, allocations: 4.279 MB / 450.5 MB, free: 4.156 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.20568297430873]