Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001268/0.001268, allocations: 114.3 kB / 21.18 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001355/0.001355, allocations: 210.9 kB / 24.48 MB, free: 4.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.401/1.401, allocations: 230.4 MB / 258.1 MB, free: 8.152 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 71.83 kB / 378.7 MB, free: 2.938 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2205/0.2224, allocations: 53.31 MB / 432 MB, free: 7.406 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.00451/0.2269, allocations: 3.027 MB / 435.1 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001425/0.2283, allocations: 0.7517 MB / 435.8 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001992/0.2285, allocations: 8 kB / 435.8 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002265/0.2288, allocations: 59.38 kB / 435.9 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002847/0.229, allocations: 115.1 kB / 436 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003306/0.2294, allocations: 99.89 kB / 436.1 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004641/0.2298, allocations: 422.2 kB / 436.5 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002669/0.2301, allocations: 143.8 kB / 436.6 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001746/0.2303, allocations: 159.4 kB / 436.8 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002664/0.2305, allocations: 183.2 kB / 437 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.616e-05/0.2306, allocations: 40 kB / 437 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001178/0.2307, allocations: 63.92 kB / 437.1 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001619/0.2309, allocations: 107.7 kB / 437.2 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002005/0.2311, allocations: 207 kB / 437.4 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005845/0.2317, allocations: 0.4941 MB / 437.9 MB, free: 1.539 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.2317, allocations: 4 kB / 437.9 MB, free: 1.535 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2317, allocations: 0 / 437.9 MB, free: 1.535 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.2317, allocations: 0 / 437.9 MB, free: 1.535 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.001731/0.2334, allocations: 0.7987 MB / 438.7 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.2335, allocations: 8.031 kB / 438.7 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.035e-05/0.2335, allocations: 40.7 kB / 438.7 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005088/0.2341, allocations: 354.7 kB / 439.1 MB, free: 264 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.466e-05/0.2341, allocations: 21.03 kB / 439.1 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.486e-05/0.2341, allocations: 32.38 kB / 439.1 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005955/0.2347, allocations: 342.2 kB / 439.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.2347, allocations: 0 / 439.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.604e-05/0.2348, allocations: 16 kB / 439.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.2348, allocations: 8 kB / 439.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004417/0.2352, allocations: 234.5 kB / 439.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001904/0.2371, allocations: 1.304 MB / 441 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003695/0.2375, allocations: 170.5 kB / 441.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002496/0.2378, allocations: 116.7 kB / 441.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.813e-05/0.2378, allocations: 7.984 kB / 441.3 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.762e-05/0.2378, allocations: 38.56 kB / 441.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.462e-06/0.2378, allocations: 0 / 441.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004873/0.2383, allocations: 233.6 kB / 441.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.822e-05/0.2383, allocations: 51.41 kB / 441.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003834/0.2387, allocations: 323 kB / 441.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.772e-05/0.2388, allocations: 25.7 kB / 442 MB, free: 13.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001612/0.2389, allocations: 216.3 kB / 442.2 MB, free: 13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.39e-05/0.239, allocations: 59.52 kB / 442.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.452e-05/0.2391, allocations: 49.66 kB / 442.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.2392, allocations: 338.8 kB / 442.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001402/0.2394, allocations: 67.97 kB / 442.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001917/0.2396, allocations: 135.7 kB / 442.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002531/0.2398, allocations: 170.6 kB / 443 MB, free: 12.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2398, allocations: 0 / 443 MB, free: 12.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004171/0.2402, allocations: 245.2 kB / 443.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.2402, allocations: 4 kB / 443.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.2402, allocations: 4 kB / 443.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.2403, allocations: 7.938 kB / 443.2 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001938/0.2405, allocations: 51.91 kB / 443.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.2405, allocations: 0 / 443.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004076/0.2409, allocations: 75.95 kB / 443.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.257e-05/0.2409, allocations: 11.94 kB / 443.4 MB, free: 11.73 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.0001534/0.2411, allocations: 149.8 kB / 443.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.406e-05/0.2411, allocations: 27.8 kB / 443.5 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000407/0.2415, allocations: 206.7 kB / 443.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.2415, allocations: 0 / 443.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.2415, allocations: 4 kB / 443.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.829e-05/0.2416, allocations: 109 kB / 443.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.307e-05/0.2417, allocations: 0 / 443.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004371/0.2421, allocations: 59.91 kB / 443.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001558/0.2423, allocations: 67.89 kB / 444 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00071/0.243, allocations: 300.7 kB / 444.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005686/0.2435, allocations: 458.4 kB / 444.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001519/0.2437, allocations: 82.92 kB / 444.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000265/0.244, allocations: 234 kB / 445 MB, free: 10.02 MB / 350.1 MB Notification: Performance of Backend: time 2.11e-07/0.244, allocations: 0 / 445 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005726/0.2445, allocations: 194.2 kB / 445.2 MB, free: 9.82 MB / 350.1 MB Notification: Performance of SimCode: time 0.00136/0.2459, allocations: 1.126 MB / 446.3 MB, free: 8.641 MB / 350.1 MB Notification: Performance of Templates: time 0.009979/0.2559, allocations: 5.394 MB / 451.7 MB, free: 3.289 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.780776354018599]