Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009661/0.0009661, allocations: 85.05 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008984/0.0008984, allocations: 145.7 kB / 24.89 MB, free: 8.727 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9173/0.9173, allocations: 173.4 MB / 201.5 MB, free: 8.758 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.243e-06/1.243e-06, allocations: 0 / 268.4 MB, free: 6.051 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.775e-05/1.9e-05, allocations: 2.312 kB / 268.5 MB, free: 6.047 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003615/0.003634, allocations: 2.955 MB / 271.4 MB, free: 3.074 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001316/0.004951, allocations: 0.728 MB / 272.1 MB, free: 2.34 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000188/0.005138, allocations: 11.94 kB / 272.1 MB, free: 2.328 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001807/0.005319, allocations: 55.44 kB / 272.2 MB, free: 2.273 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002675/0.005587, allocations: 123 kB / 272.3 MB, free: 2.152 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003053/0.005892, allocations: 107.8 kB / 272.4 MB, free: 2.047 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003936/0.006286, allocations: 430 kB / 272.8 MB, free: 1.625 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000221/0.006507, allocations: 138.3 kB / 273 MB, free: 1.484 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00025/0.006757, allocations: 247.5 kB / 273.2 MB, free: 1.242 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002353/0.006992, allocations: 151.6 kB / 273.4 MB, free: 1.094 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.099e-05/0.007043, allocations: 40 kB / 273.4 MB, free: 1.055 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001068/0.00715, allocations: 59.88 kB / 273.5 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001252/0.007275, allocations: 115.6 kB / 273.6 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001323/0.007407, allocations: 143.7 kB / 273.7 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003596/0.007767, allocations: 306.9 kB / 274 MB, free: 452 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.007769, allocations: 0 / 274 MB, free: 452 kB / 250.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.00777, allocations: 0 / 274 MB, free: 452 kB / 250.7 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.007775, allocations: 0 / 274 MB, free: 452 kB / 250.7 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.001053/0.008828, allocations: 0.6673 MB / 274.7 MB, free: 15.75 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.189e-05/0.00886, allocations: 8.031 kB / 274.7 MB, free: 15.74 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.352e-05/0.008943, allocations: 52.91 kB / 274.7 MB, free: 15.69 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002926/0.009236, allocations: 216.7 kB / 275 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.923e-05/0.009255, allocations: 21.03 kB / 275 MB, free: 15.43 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.708e-05/0.009302, allocations: 36.36 kB / 275 MB, free: 15.4 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003144/0.009617, allocations: 309.3 kB / 275.3 MB, free: 15.06 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.009628, allocations: 4.125 kB / 275.3 MB, free: 15.06 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.484e-05/0.009653, allocations: 20.38 kB / 275.3 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.009663, allocations: 11.94 kB / 275.4 MB, free: 15.03 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001355/0.009798, allocations: 71.39 kB / 275.4 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.01086, allocations: 0.8912 MB / 276.3 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002054/0.01106, allocations: 154.3 kB / 276.5 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001098/0.01117, allocations: 56.84 kB / 276.5 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.39e-05/0.01119, allocations: 7.984 kB / 276.5 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.028e-05/0.01121, allocations: 34.56 kB / 276.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.673e-06/0.01122, allocations: 0 / 276.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002071/0.01142, allocations: 97.88 kB / 276.7 MB, free: 13.65 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.277e-05/0.01146, allocations: 59.34 kB / 276.7 MB, free: 13.58 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001814/0.01164, allocations: 256.8 kB / 277 MB, free: 13.32 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.777e-05/0.01166, allocations: 37.7 kB / 277 MB, free: 13.27 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.147e-05/0.01174, allocations: 188.8 kB / 277.2 MB, free: 13.08 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.836e-05/0.01178, allocations: 59.47 kB / 277.2 MB, free: 13.02 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.447e-05/0.01184, allocations: 45.69 kB / 277.3 MB, free: 12.97 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.266e-05/0.01192, allocations: 338.8 kB / 277.6 MB, free: 12.63 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.409e-05/0.01197, allocations: 18.83 kB / 277.6 MB, free: 12.61 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.643e-05/0.01204, allocations: 87.67 kB / 277.7 MB, free: 12.5 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000115/0.01216, allocations: 118.5 kB / 277.8 MB, free: 12.36 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.01216, allocations: 0 / 277.8 MB, free: 12.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001896/0.01235, allocations: 140.3 kB / 278 MB, free: 12.21 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.01236, allocations: 4.25 kB / 278 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.01237, allocations: 8 kB / 278 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.01238, allocations: 7.984 kB / 278 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.01251, allocations: 43.91 kB / 278 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.76e-06/0.01251, allocations: 7.938 kB / 278 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001604/0.01267, allocations: 51.75 kB / 278.1 MB, free: 12.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.89e-05/0.01269, allocations: 8 kB / 278.1 MB, free: 12.09 MB / 266.7 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 (energy.local_reset,pulseSeries.on2,pulseSeries.on1) * 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 8.906e-05/0.01278, allocations: 124.6 kB / 278.2 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.209e-05/0.01282, allocations: 23.91 kB / 278.3 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001872/0.01301, allocations: 123.7 kB / 278.4 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.01301, allocations: 0 / 278.4 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.043e-06/0.01301, allocations: 3.938 kB / 278.4 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.01302, allocations: 0 / 278.4 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004109/0.01343, allocations: 391 kB / 278.8 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.01343, allocations: 0 / 278.8 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000103/0.01353, allocations: 27.98 kB / 278.8 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.01353, allocations: 0 / 278.8 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.01355, allocations: 0 / 278.8 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.01355, allocations: 7.938 kB / 278.8 MB, free: 11.35 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.01355, allocations: 7.969 kB / 278.8 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002212/0.01377, allocations: 267.5 kB / 279.1 MB, free: 11.06 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.569e-05/0.01381, allocations: 27.84 kB / 279.1 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.833e-05/0.01384, allocations: 4 kB / 279.1 MB, free: 11.03 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000171/0.01401, allocations: 39.91 kB / 279.1 MB, free: 10.99 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.165e-05/0.01409, allocations: 39.92 kB / 279.2 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.298e-05/0.0141, allocations: 8 kB / 279.2 MB, free: 10.95 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.092e-05/0.01419, allocations: 94.8 kB / 279.3 MB, free: 10.85 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01419, allocations: 4 kB / 279.3 MB, free: 10.84 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002908/0.01449, allocations: 87.73 kB / 279.4 MB, free: 10.76 MB / 266.7 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.0001102/0.0146, allocations: 92.3 kB / 279.5 MB, free: 10.66 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001584/0.01475, allocations: 88.59 kB / 279.5 MB, free: 10.57 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.01476, allocations: 4 kB / 279.5 MB, free: 10.57 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.544e-05/0.01483, allocations: 40.11 kB / 279.6 MB, free: 10.52 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002519/0.01508, allocations: 51.12 kB / 279.6 MB, free: 10.48 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009383/0.01602, allocations: 0.5968 MB / 280.2 MB, free: 9.848 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.949e-05/0.01608, allocations: 96.3 kB / 280.3 MB, free: 9.734 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001017/0.01618, allocations: 22.3 kB / 280.3 MB, free: 9.711 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001551/0.01633, allocations: 107.3 kB / 280.4 MB, free: 9.605 MB / 266.7 MB Notification: Performance of SimCode: time 5.81e-07/0.01633, allocations: 0 / 280.4 MB, free: 9.605 MB / 266.7 MB Notification: Performance of Templates: time 0.006749/0.02308, allocations: 3.973 MB / 284.4 MB, free: 5.684 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8862187690101564]