Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.001134/0.001134, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001833/0.002967, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.001199/0.001199, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001495/0.002694, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9812/0.9812, allocations: 177.5 MB / 190 MB, free: 4.805 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0954/1.077, allocations: 53.86 MB / 243.9 MB, free: 14.87 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.512e-06/1.512e-06, allocations: 0 / 245.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.794e-05/1.946e-05, allocations: 2.312 kB / 245.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.004961/0.00498, allocations: 5.691 MB / 250.9 MB, free: 7.871 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003835/0.008815, allocations: 2.795 MB / 253.7 MB, free: 5.059 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005447/0.00936, allocations: 31.81 kB / 253.7 MB, free: 5.027 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001164/0.01052, allocations: 0.7814 MB / 254.5 MB, free: 4.242 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009076/0.01143, allocations: 0.5823 MB / 255.1 MB, free: 3.656 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007883/0.01222, allocations: 0.5146 MB / 255.6 MB, free: 3.141 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001399/0.01362, allocations: 1.633 MB / 257.2 MB, free: 1.504 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004586/0.01408, allocations: 391 kB / 257.6 MB, free: 1.094 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001043/0.01512, allocations: 1.081 MB / 258.7 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000692/0.01581, allocations: 0.6234 MB / 259.3 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002726/0.01608, allocations: 132 kB / 259.4 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003694/0.01645, allocations: 211.8 kB / 259.6 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003481/0.0168, allocations: 0.5844 MB / 260.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004199/0.01722, allocations: 458.8 kB / 260.7 MB, free: 14 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001202/0.01842, allocations: 1.452 MB / 262.1 MB, free: 12.54 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.01843, allocations: 0 / 262.1 MB, free: 12.54 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.01843, allocations: 0 / 262.1 MB, free: 12.54 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.18e-05/0.01846, allocations: 0 / 262.1 MB, free: 12.54 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.002691/0.02115, allocations: 2.7 MB / 264.8 MB, free: 9.801 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.959e-05/0.02118, allocations: 16.56 kB / 264.8 MB, free: 9.785 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002371/0.02142, allocations: 200.7 kB / 265 MB, free: 9.59 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009903/0.02241, allocations: 0.9221 MB / 266 MB, free: 8.609 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.795e-05/0.02251, allocations: 143.7 kB / 266.1 MB, free: 8.449 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.008e-05/0.0226, allocations: 92.38 kB / 266.2 MB, free: 8.359 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009033/0.0235, allocations: 1.35 MB / 267.5 MB, free: 6.785 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.02352, allocations: 4.172 kB / 267.5 MB, free: 6.781 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.668e-05/0.02356, allocations: 40.12 kB / 267.6 MB, free: 6.742 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.02358, allocations: 24 kB / 267.6 MB, free: 6.719 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002883/0.02386, allocations: 220.6 kB / 267.8 MB, free: 6.5 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002795/0.02666, allocations: 3.091 MB / 270.9 MB, free: 3.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003976/0.02706, allocations: 331.2 kB / 271.2 MB, free: 2.934 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000202/0.02726, allocations: 161.8 kB / 271.4 MB, free: 2.773 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.665e-05/0.02729, allocations: 15.94 kB / 271.4 MB, free: 2.758 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.674e-05/0.02732, allocations: 42.56 kB / 271.5 MB, free: 2.707 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 1.703e-06/0.02732, allocations: 0 / 271.5 MB, free: 2.707 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.000401/0.02772, allocations: 302 kB / 271.8 MB, free: 2.406 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.625e-05/0.02775, allocations: 59.41 kB / 271.8 MB, free: 2.336 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001277/0.02903, allocations: 1.727 MB / 273.5 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.579e-05/0.02906, allocations: 45.64 kB / 273.6 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002976/0.02936, allocations: 0.5627 MB / 274.1 MB, free: 15.93 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.424e-05/0.02944, allocations: 170.5 kB / 274.3 MB, free: 15.77 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/0.02956, allocations: 114.2 kB / 274.4 MB, free: 15.65 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.916e-05/0.02964, allocations: 333.8 kB / 274.7 MB, free: 15.32 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.072e-05/0.02973, allocations: 64.11 kB / 274.8 MB, free: 15.25 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003025/0.03003, allocations: 0.677 MB / 275.5 MB, free: 14.37 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002737/0.03031, allocations: 369.8 kB / 275.8 MB, free: 13.93 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.03031, allocations: 3.75 kB / 275.9 MB, free: 13.93 MB / 282.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0004344/0.03074, allocations: 417.3 kB / 276.3 MB, free: 13.51 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.03076, allocations: 12.12 kB / 276.3 MB, free: 13.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.03077, allocations: 4 kB / 276.3 MB, free: 13.5 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.03078, allocations: 8 kB / 276.3 MB, free: 13.49 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004083/0.03119, allocations: 175.8 kB / 276.5 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.0312, allocations: 15.92 kB / 276.5 MB, free: 13.3 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000368/0.03157, allocations: 123.5 kB / 276.6 MB, free: 13.18 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.289e-05/0.0316, allocations: 20 kB / 276.6 MB, free: 13.16 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.0002103/0.03181, allocations: 172.3 kB / 276.8 MB, free: 12.98 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.03193, allocations: 115.9 kB / 276.9 MB, free: 12.87 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003862/0.03231, allocations: 344.8 kB / 277.2 MB, free: 12.52 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.03232, allocations: 4 kB / 277.2 MB, free: 12.52 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/0.03232, allocations: 4 kB / 277.2 MB, free: 12.52 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.03232, allocations: 3.984 kB / 277.2 MB, free: 12.51 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001194/0.03352, allocations: 1.168 MB / 278.4 MB, free: 11.3 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.03352, allocations: 0 / 278.4 MB, free: 11.3 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003155/0.03384, allocations: 124.6 kB / 278.5 MB, free: 11.18 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002824/0.03412, allocations: 226.6 kB / 278.8 MB, free: 10.96 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/0.03412, allocations: 4 kB / 278.8 MB, free: 10.95 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.442e-05/0.03415, allocations: 8 kB / 278.8 MB, free: 10.95 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.03415, allocations: 0 / 278.8 MB, free: 10.95 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.03415, allocations: 4 kB / 278.8 MB, free: 10.94 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004825/0.03464, allocations: 0.5246 MB / 279.3 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001007/0.03474, allocations: 15.94 kB / 279.3 MB, free: 10.38 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003313/0.03507, allocations: 91.91 kB / 279.4 MB, free: 10.29 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.03519, allocations: 91.84 kB / 279.5 MB, free: 10.2 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.277e-05/0.03521, allocations: 16 kB / 279.5 MB, free: 10.18 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006986/0.03591, allocations: 0.9045 MB / 280.4 MB, free: 9.246 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.03591, allocations: 0 / 280.4 MB, free: 9.246 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005197/0.03643, allocations: 327.3 kB / 280.7 MB, free: 8.926 MB / 282.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.001333/0.03776, allocations: 0.6414 MB / 281.4 MB, free: 8.547 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003259/0.03809, allocations: 255.3 kB / 281.6 MB, free: 8.297 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-05/0.03811, allocations: 24.09 kB / 281.6 MB, free: 8.273 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001639/0.03828, allocations: 147.3 kB / 281.8 MB, free: 8.125 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001281/0.03956, allocations: 2.318 MB / 284.1 MB, free: 5.391 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007022/0.04658, allocations: 2.784 MB / 286.9 MB, free: 2.547 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002863/0.04687, allocations: 371 kB / 287.2 MB, free: 2.16 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004696/0.04734, allocations: 182.5 kB / 287.4 MB, free: 1.977 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006093/0.04794, allocations: 373.1 kB / 287.8 MB, free: 1.609 MB / 282.7 MB Notification: Performance of SimCode: time 1.834e-06/0.04795, allocations: 0 / 287.8 MB, free: 1.609 MB / 282.7 MB Notification: Performance of Templates: time 0.1398/0.1878, allocations: 22.92 MB / 310.7 MB, free: 21.46 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4543031686916947]