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.001254/0.001254, allocations: 111 kB / 21.18 MB, free: 0.6758 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.001378/0.001378, allocations: 206.8 kB / 24.48 MB, free: 3.977 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.45/1.45, allocations: 230.6 MB / 258.2 MB, free: 7.809 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.001604/0.001604, allocations: 43.92 kB / 379 MB, free: 2.496 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2356/0.2372, allocations: 53.37 MB / 432.3 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.00451/0.2417, allocations: 2.792 MB / 435.1 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001416/0.2432, allocations: 0.7205 MB / 435.8 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001783/0.2433, allocations: 7.938 kB / 435.8 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000229/0.2436, allocations: 59.44 kB / 435.9 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002809/0.2438, allocations: 115 kB / 436 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003387/0.2442, allocations: 103.9 kB / 436.1 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004638/0.2446, allocations: 410.3 kB / 436.5 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002902/0.2449, allocations: 154.3 kB / 436.7 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001877/0.2451, allocations: 155.5 kB / 436.8 MB, free: 2.227 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002683/0.2454, allocations: 191.2 kB / 437 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.374e-05/0.2455, allocations: 40 kB / 437 MB, free: 2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000128/0.2456, allocations: 56 kB / 437.1 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001572/0.2457, allocations: 111.6 kB / 437.2 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001716/0.2459, allocations: 167.3 kB / 437.4 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006088/0.2465, allocations: 0.5055 MB / 437.9 MB, free: 1.168 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.2465, allocations: 0 / 437.9 MB, free: 1.168 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2465, allocations: 0 / 437.9 MB, free: 1.168 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.575e-06/0.2465, 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.00178/0.2483, allocations: 0.7272 MB / 438.6 MB, free: 412 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.2484, allocations: 8.031 kB / 438.6 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.2485, allocations: 40.7 kB / 438.7 MB, free: 364 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005632/0.249, allocations: 288.9 kB / 438.9 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.85e-05/0.249, allocations: 21.03 kB / 439 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.219e-05/0.2491, allocations: 32.38 kB / 439 MB, free: 0 / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006803/0.2498, allocations: 401.6 kB / 439.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.2498, allocations: 0 / 439.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.021e-05/0.2498, allocations: 20 kB / 439.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.2499, allocations: 8 kB / 439.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004694/0.2503, allocations: 234.5 kB / 439.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001865/0.2522, allocations: 1.094 MB / 440.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004046/0.2526, allocations: 166.5 kB / 440.9 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002738/0.2529, allocations: 120.8 kB / 441 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.473e-05/0.2529, allocations: 3.984 kB / 441 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.118e-05/0.2529, allocations: 42.5 kB / 441.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.593e-06/0.2529, allocations: 0 / 441.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005087/0.2535, allocations: 233.5 kB / 441.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.472e-05/0.2535, allocations: 51.41 kB / 441.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003803/0.2539, allocations: 309.8 kB / 441.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.639e-05/0.2539, allocations: 29.7 kB / 441.7 MB, free: 13.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001592/0.2541, allocations: 220.3 kB / 441.9 MB, free: 12.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.395e-05/0.2541, allocations: 55.48 kB / 441.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.2542, allocations: 41.7 kB / 442 MB, free: 12.85 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.2544, allocations: 338.8 kB / 442.3 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001459/0.2545, allocations: 75.95 kB / 442.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001911/0.2547, allocations: 123.7 kB / 442.5 MB, free: 12.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002478/0.255, allocations: 167.6 kB / 442.7 MB, free: 12.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.255, allocations: 0 / 442.7 MB, free: 12.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004199/0.2554, allocations: 244 kB / 442.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.2554, allocations: 8 kB / 442.9 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.2554, allocations: 256 / 442.9 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.2554, allocations: 8 kB / 442.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000203/0.2556, allocations: 47.91 kB / 443 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.2556, allocations: 4 kB / 443 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00038/0.256, allocations: 63.77 kB / 443 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.349e-05/0.2561, allocations: 16 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.0001615/0.2562, allocations: 149.7 kB / 443.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.181e-05/0.2563, allocations: 31.8 kB / 443.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000426/0.2567, allocations: 198.8 kB / 443.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.2567, allocations: 4 kB / 443.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.2567, allocations: 0 / 443.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.2567, allocations: 3.984 kB / 443.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000773/0.2575, allocations: 0.5067 MB / 443.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2575, allocations: 0 / 443.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001649/0.2577, allocations: 27.98 kB / 444 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.2577, allocations: 3.984 kB / 444 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.24e-05/0.2577, allocations: 12 kB / 444 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.2577, allocations: 4.031 kB / 444 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.2577, allocations: 3.938 kB / 444 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005459/0.2582, allocations: 376.5 kB / 444.4 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.778e-05/0.2583, allocations: 27.83 kB / 444.4 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.004e-05/0.2583, allocations: 11.98 kB / 444.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004105/0.2588, allocations: 55.86 kB / 444.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001775/0.2589, allocations: 75.94 kB / 444.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.979e-05/0.259, allocations: 7.984 kB / 444.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002452/0.2592, allocations: 221.2 kB / 444.7 MB, free: 9.938 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2592, allocations: 0 / 444.7 MB, free: 9.938 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003795/0.2596, allocations: 91.72 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.0001552/0.2597, allocations: 103.2 kB / 444.9 MB, free: 9.738 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003554/0.2601, allocations: 176.1 kB / 445.1 MB, free: 9.566 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2601, allocations: 4.125 kB / 445.1 MB, free: 9.562 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001854/0.2603, allocations: 106.8 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.000406/0.2607, allocations: 43 kB / 445.3 MB, free: 9.422 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001495/0.2622, allocations: 0.7199 MB / 446 MB, free: 8.672 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001808/0.2624, allocations: 172.8 kB / 446.1 MB, free: 8.484 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001385/0.2625, allocations: 34.3 kB / 446.2 MB, free: 8.449 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.152e-05/0.2626, allocations: 23.44 kB / 446.2 MB, free: 8.426 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2626, allocations: 0 / 446.2 MB, free: 8.426 MB / 350.1 MB Notification: Performance of Templates: time 0.009518/0.2721, allocations: 4.707 MB / 450.9 MB, free: 3.766 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 -s gbode -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: 4.743136375996983]