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.001315/0.001315, allocations: 110.8 kB / 21.19 MB, free: 0.6641 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.001467/0.001467, allocations: 205.3 kB / 24.49 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.443/1.443, allocations: 230.6 MB / 258.3 MB, free: 7.805 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.001573/0.001573, allocations: 51.92 kB / 379 MB, free: 2.508 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2239/0.2254, allocations: 53.37 MB / 432.3 MB, free: 6.758 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004368/0.2298, allocations: 2.786 MB / 435.1 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001316/0.2311, allocations: 0.7244 MB / 435.8 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001511/0.2313, allocations: 7.938 kB / 435.9 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002018/0.2315, allocations: 67.36 kB / 435.9 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002742/0.2318, allocations: 103.1 kB / 436 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003189/0.2321, allocations: 103.8 kB / 436.1 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004594/0.2325, allocations: 418.3 kB / 436.5 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002602/0.2328, allocations: 138.4 kB / 436.7 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001795/0.233, allocations: 171.4 kB / 436.8 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002621/0.2332, allocations: 183.2 kB / 437 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.083e-05/0.2333, allocations: 40 kB / 437 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001315/0.2334, allocations: 63.92 kB / 437.1 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000159/0.2336, allocations: 107.7 kB / 437.2 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001668/0.2338, allocations: 167.2 kB / 437.4 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005715/0.2343, allocations: 0.4978 MB / 437.9 MB, free: 1.199 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.2343, allocations: 3.984 kB / 437.9 MB, free: 1.195 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2343, allocations: 0 / 437.9 MB, free: 1.195 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.2343, allocations: 4 kB / 437.9 MB, free: 1.191 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.001677/0.236, allocations: 0.7195 MB / 438.6 MB, free: 448 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.2361, allocations: 12.03 kB / 438.6 MB, free: 436 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.041e-05/0.2361, allocations: 44.7 kB / 438.7 MB, free: 392 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004991/0.2366, allocations: 284.9 kB / 438.9 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.468e-05/0.2367, allocations: 25.03 kB / 439 MB, free: 60 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.1e-05/0.2367, allocations: 28.38 kB / 439 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006602/0.2374, allocations: 397.6 kB / 439.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.2374, allocations: 0 / 439.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.527e-05/0.2375, allocations: 16 kB / 439.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.759e-06/0.2375, allocations: 8 kB / 439.4 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004492/0.2379, allocations: 238.4 kB / 439.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001804/0.2397, allocations: 1.11 MB / 440.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003752/0.2401, allocations: 158.6 kB / 440.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002711/0.2404, allocations: 120.8 kB / 441 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.342e-05/0.2404, allocations: 4 kB / 441 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.07e-05/0.2404, allocations: 38.5 kB / 441.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.403e-06/0.2404, allocations: 0 / 441.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004926/0.2409, allocations: 243.8 kB / 441.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.142e-05/0.241, allocations: 55.41 kB / 441.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003786/0.2413, allocations: 301.8 kB / 441.6 MB, free: 13.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.711e-05/0.2414, allocations: 25.7 kB / 441.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001577/0.2415, allocations: 212.4 kB / 441.9 MB, free: 12.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.028e-05/0.2416, allocations: 67.45 kB / 441.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.029e-05/0.2417, allocations: 45.72 kB / 442 MB, free: 12.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.2418, allocations: 334.8 kB / 442.3 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001437/0.242, allocations: 71.95 kB / 442.4 MB, free: 12.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001955/0.2422, allocations: 135.6 kB / 442.5 MB, free: 12.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002516/0.2424, allocations: 163.6 kB / 442.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.2424, allocations: 0 / 442.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004208/0.2429, allocations: 244.3 kB / 442.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.2429, allocations: 7.938 kB / 442.9 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.802e-06/0.2429, allocations: 4 kB / 442.9 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.2429, allocations: 4 kB / 442.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/0.2431, allocations: 40.17 kB / 443 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.2431, allocations: 8 kB / 443 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003884/0.2435, allocations: 71.77 kB / 443 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.77e-05/0.2435, allocations: 8 kB / 443.1 MB, free: 11.74 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.0001708/0.2437, allocations: 157.7 kB / 443.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.298e-05/0.2437, allocations: 23.8 kB / 443.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000427/0.2442, allocations: 199.7 kB / 443.4 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.2442, allocations: 4 kB / 443.4 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2442, allocations: 0 / 443.4 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.906e-05/0.2443, allocations: 35.77 kB / 443.5 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.18e-05/0.2443, allocations: 0 / 443.5 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004208/0.2447, allocations: 55.92 kB / 443.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001747/0.2449, allocations: 71.88 kB / 443.6 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007041/0.2456, allocations: 300.7 kB / 443.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005691/0.2462, allocations: 449.2 kB / 444.3 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001547/0.2463, allocations: 91.91 kB / 444.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002362/0.2466, allocations: 213.2 kB / 444.6 MB, free: 10.13 MB / 350.1 MB Notification: Performance of Backend: time 2.2e-07/0.2466, allocations: 0 / 444.6 MB, free: 10.13 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005753/0.2471, allocations: 204.9 kB / 444.8 MB, free: 9.93 MB / 350.1 MB Notification: Performance of SimCode: time 0.001353/0.2485, allocations: 1.097 MB / 445.9 MB, free: 8.785 MB / 350.1 MB Notification: Performance of Templates: time 0.0104/0.2589, allocations: 5.67 MB / 451.6 MB, free: 3.164 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: 4.715195712000423]