Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 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.001745/0.001745, allocations: 167.9 kB / 25.61 MB, free: 8.582 MB / 18.57 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 0.9726/0.9726, allocations: 177.1 MB / 206 MB, free: 4.492 MB / 186.7 MB " [Timeout remaining time 179] 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.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=36000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.[0-9,]+..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=36000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.[0-9,]+..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.132e-06/1.132e-06, allocations: 0 / 274.2 MB, free: 4.426 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.258e-05/1.372e-05, allocations: 2.312 kB / 274.2 MB, free: 4.422 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.005223/0.005236, allocations: 5.592 MB / 279.8 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003598/0.008834, allocations: 2.681 MB / 282.5 MB, free: 12.13 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004422/0.009276, allocations: 27.81 kB / 282.5 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001185/0.01046, allocations: 0.754 MB / 283.2 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000827/0.01129, allocations: 0.5824 MB / 283.8 MB, free: 10.76 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007543/0.01204, allocations: 0.5068 MB / 284.3 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001346/0.01339, allocations: 1.648 MB / 286 MB, free: 8.594 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000467/0.01386, allocations: 383 kB / 286.3 MB, free: 8.191 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008522/0.01471, allocations: 0.8965 MB / 287.2 MB, free: 7.293 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006515/0.01536, allocations: 0.6429 MB / 287.9 MB, free: 6.648 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001496/0.01551, allocations: 132 kB / 288 MB, free: 6.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002636/0.01577, allocations: 215.8 kB / 288.2 MB, free: 6.309 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003727/0.01614, allocations: 0.6583 MB / 288.9 MB, free: 5.648 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004688/0.01661, allocations: 0.5725 MB / 289.5 MB, free: 5.074 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001483/0.0181, allocations: 1.522 MB / 291 MB, free: 3.547 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.0181, allocations: 3.984 kB / 291 MB, free: 3.543 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.0181, allocations: 0 / 291 MB, free: 3.543 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.83e-05/0.01814, allocations: 0 / 291 MB, free: 3.543 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.002681/0.02082, allocations: 2.648 MB / 293.6 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.047e-05/0.02085, allocations: 15.98 kB / 293.6 MB, free: 0.8281 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002959/0.02115, allocations: 299.5 kB / 293.9 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001082/0.02223, allocations: 1.097 MB / 295 MB, free: 15.38 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.07e-05/0.02232, allocations: 147.7 kB / 295.2 MB, free: 15.21 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.083e-05/0.02241, allocations: 96.38 kB / 295.3 MB, free: 15.12 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001153/0.02356, allocations: 1.389 MB / 296.7 MB, free: 13.48 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.69e-05/0.02358, allocations: 4 kB / 296.7 MB, free: 13.48 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.54e-05/0.02364, allocations: 36 kB / 296.7 MB, free: 13.44 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.555e-05/0.02365, allocations: 24 kB / 296.7 MB, free: 13.42 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003225/0.02397, allocations: 241.6 kB / 297 MB, free: 13.18 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003473/0.02745, allocations: 4.194 MB / 301.2 MB, free: 8.82 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004472/0.02789, allocations: 313.8 kB / 301.5 MB, free: 8.5 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002479/0.02814, allocations: 172.1 kB / 301.6 MB, free: 8.328 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.697e-05/0.02818, allocations: 8 kB / 301.6 MB, free: 8.32 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.896e-05/0.02821, allocations: 45.39 kB / 301.7 MB, free: 8.266 MB / 282.7 MB Notification: Performance of pre-optimization done (n=44): time 2.325e-06/0.02821, allocations: 4 kB / 301.7 MB, free: 8.262 MB / 282.7 MB Notification: Performance of matching and sorting (n=44): time 0.0005741/0.02878, allocations: 446 kB / 302.1 MB, free: 7.82 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001298/0.02891, allocations: 423.2 kB / 302.5 MB, free: 7.309 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00184/0.03075, allocations: 1.953 MB / 304.5 MB, free: 5.301 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.988e-05/0.03079, allocations: 37.7 kB / 304.5 MB, free: 5.258 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006477/0.03144, allocations: 1.08 MB / 305.6 MB, free: 4.168 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.697e-05/0.03154, allocations: 166.6 kB / 305.8 MB, free: 4.004 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001473/0.03169, allocations: 139.8 kB / 305.9 MB, free: 3.859 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.03182, allocations: 0.5004 MB / 306.4 MB, free: 3.352 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/0.03193, allocations: 61.25 kB / 306.5 MB, free: 3.293 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004012/0.03233, allocations: 0.7886 MB / 307.3 MB, free: 2.25 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003493/0.03268, allocations: 431.7 kB / 307.7 MB, free: 1.727 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.03268, allocations: 0 / 307.7 MB, free: 1.727 MB / 282.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.000614/0.03329, allocations: 0.5506 MB / 308.2 MB, free: 1.164 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.03331, allocations: 11.94 kB / 308.2 MB, free: 1.152 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.03332, allocations: 4.75 kB / 308.2 MB, free: 1.148 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.03334, allocations: 12 kB / 308.3 MB, free: 1.137 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003161/0.03365, allocations: 151.7 kB / 308.4 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.03366, allocations: 8 kB / 308.4 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004035/0.03406, allocations: 123.4 kB / 308.5 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.631e-05/0.0341, allocations: 20 kB / 308.5 MB, free: 0.8398 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (pulseSeries.on2,pulseSeries.on1,energy2.local_reset,battery2.limIntegrator.local_reset,energy1.local_reset,battery1.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * 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.0002257/0.03433, allocations: 210.7 kB / 308.8 MB, free: 0.625 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001699/0.0345, allocations: 198.8 kB / 308.9 MB, free: 440 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004906/0.03499, allocations: 395.7 kB / 309.3 MB, free: 36 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.03499, allocations: 4 kB / 309.3 MB, free: 32 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.786e-06/0.03499, allocations: 3.984 kB / 309.3 MB, free: 28 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.035, allocations: 3.984 kB / 309.3 MB, free: 24 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00205/0.03705, allocations: 1.364 MB / 310.7 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.03705, allocations: 0 / 310.7 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003363/0.03739, allocations: 99.89 kB / 310.8 MB, free: 14.51 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.03739, allocations: 0 / 310.8 MB, free: 14.51 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.532e-05/0.03743, allocations: 15.98 kB / 310.8 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.431e-06/0.03743, allocations: 4 kB / 310.8 MB, free: 14.49 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.03744, allocations: 0 / 310.8 MB, free: 14.49 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008008/0.03824, allocations: 0.6536 MB / 311.5 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004523/0.03869, allocations: 278.6 kB / 311.8 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001552/0.03885, allocations: 15.98 kB / 311.8 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005414/0.03939, allocations: 95.91 kB / 311.9 MB, free: 13.42 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002154/0.0396, allocations: 87.86 kB / 311.9 MB, free: 13.33 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.65e-05/0.03964, allocations: 23.88 kB / 312 MB, free: 13.31 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001143/0.04078, allocations: 1.04 MB / 313 MB, free: 12.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.04078, allocations: 0 / 313 MB, free: 12.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007343/0.04152, allocations: 323.3 kB / 313.3 MB, free: 11.93 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (battery1.limIntegrator.y,energy1.y,battery2.limIntegrator.y,battery2.capacitor[1].v,battery2.capacitor[2].v,energy2.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 (44): * Single equations (assignments): 44 * 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.001166/0.04268, allocations: 471.2 kB / 313.8 MB, free: 11.63 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004509/0.04313, allocations: 275.2 kB / 314.1 MB, free: 11.36 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.04314, allocations: 0 / 314.1 MB, free: 11.36 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001946/0.04333, allocations: 125.7 kB / 314.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009939/0.04433, allocations: 301.5 kB / 314.5 MB, free: 10.94 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003915/0.04824, allocations: 2.811 MB / 317.3 MB, free: 8.066 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003646/0.04861, allocations: 375.1 kB / 317.6 MB, free: 7.676 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.00049/0.0491, allocations: 178.5 kB / 317.8 MB, free: 7.496 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001038/0.05013, allocations: 422 kB / 318.2 MB, free: 7.082 MB / 298.7 MB Notification: Performance of SimCode: time 1.092e-06/0.05014, allocations: 0 / 318.2 MB, free: 7.082 MB / 298.7 MB Notification: Performance of Templates: time 0.03619/0.08632, allocations: 23.25 MB / 341.5 MB, free: 80 kB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.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: 3.568669189698994]