Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.001122/0.001122, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001567/0.002689, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.001023/0.001023, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000994/0.002017, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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 1.028/1.028, allocations: 173.4 MB / 185.8 MB, free: 8.969 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08824/1.117, allocations: 52.5 MB / 238.3 MB, free: 4.41 MB / 234.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.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.0.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.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.313e-06/1.313e-06, allocations: 0 / 239.5 MB, free: 3.168 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2e-05/2.131e-05, allocations: 2.312 kB / 239.5 MB, free: 3.164 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.005138/0.005159, allocations: 5.636 MB / 245.2 MB, free: 13.5 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003648/0.008806, allocations: 2.621 MB / 247.8 MB, free: 10.87 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000457/0.009263, allocations: 31.81 kB / 247.8 MB, free: 10.84 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001232/0.0105, allocations: 0.7775 MB / 248.6 MB, free: 10.06 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007769/0.01127, allocations: 0.5397 MB / 249.1 MB, free: 9.516 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008098/0.01208, allocations: 0.5146 MB / 249.7 MB, free: 9 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00154/0.01362, allocations: 1.629 MB / 251.3 MB, free: 7.363 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004863/0.01411, allocations: 390.9 kB / 251.7 MB, free: 6.949 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001056/0.01516, allocations: 1.065 MB / 252.7 MB, free: 5.871 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006272/0.01579, allocations: 0.6196 MB / 253.4 MB, free: 5.25 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001403/0.01593, allocations: 135.9 kB / 253.5 MB, free: 5.117 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003088/0.01624, allocations: 211.8 kB / 253.7 MB, free: 4.91 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003317/0.01657, allocations: 0.5688 MB / 254.3 MB, free: 4.34 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003783/0.01695, allocations: 458.8 kB / 254.7 MB, free: 3.891 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001043/0.01799, allocations: 1.444 MB / 256.2 MB, free: 2.441 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.739e-06/0.018, allocations: 0 / 256.2 MB, free: 2.441 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.018, allocations: 0 / 256.2 MB, free: 2.441 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.713e-05/0.01804, allocations: 4 kB / 256.2 MB, free: 2.438 MB / 250.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.00273/0.02077, allocations: 2.684 MB / 258.8 MB, free: 15.71 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.971e-05/0.0208, allocations: 8.031 kB / 258.9 MB, free: 15.71 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002482/0.02105, allocations: 204.7 kB / 259.1 MB, free: 15.51 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009894/0.02204, allocations: 0.91 MB / 260 MB, free: 14.57 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.119e-05/0.02213, allocations: 143.7 kB / 260.1 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.863e-05/0.02222, allocations: 92.38 kB / 260.2 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008926/0.02311, allocations: 1.354 MB / 261.5 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.02313, allocations: 4 kB / 261.6 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.838e-05/0.02317, allocations: 40 kB / 261.6 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/0.02319, allocations: 20 kB / 261.6 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002933/0.02348, allocations: 220.6 kB / 261.8 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002891/0.02637, allocations: 3.106 MB / 264.9 MB, free: 9.203 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004035/0.02677, allocations: 345.4 kB / 265.3 MB, free: 8.855 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00021/0.02698, allocations: 157.3 kB / 265.4 MB, free: 8.695 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.344e-05/0.02703, allocations: 8 kB / 265.4 MB, free: 8.688 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.64e-05/0.02705, allocations: 42.56 kB / 265.5 MB, free: 8.637 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 1.393e-06/0.02706, allocations: 4 kB / 265.5 MB, free: 8.633 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.0004066/0.02746, allocations: 302 kB / 265.8 MB, free: 8.332 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.389e-05/0.0275, allocations: 63.34 kB / 265.8 MB, free: 8.258 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001299/0.0288, allocations: 1.71 MB / 267.5 MB, free: 6.496 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.543e-05/0.02883, allocations: 37.7 kB / 267.6 MB, free: 6.453 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002996/0.02913, allocations: 0.5546 MB / 268.1 MB, free: 5.891 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.036e-05/0.02921, allocations: 158.7 kB / 268.3 MB, free: 5.734 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001161/0.02933, allocations: 122.2 kB / 268.4 MB, free: 5.609 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.131e-05/0.02942, allocations: 337.8 kB / 268.7 MB, free: 5.273 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.173e-05/0.02951, allocations: 60.11 kB / 268.8 MB, free: 5.211 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003207/0.02983, allocations: 0.6809 MB / 269.5 MB, free: 4.324 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000267/0.0301, allocations: 355.8 kB / 269.8 MB, free: 3.902 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.0301, allocations: 0 / 269.8 MB, free: 3.902 MB / 266.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0004217/0.03052, allocations: 413 kB / 270.2 MB, free: 3.488 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.03054, allocations: 8 kB / 270.2 MB, free: 3.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.03054, allocations: 4 kB / 270.2 MB, free: 3.477 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.03056, allocations: 8 kB / 270.2 MB, free: 3.469 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004026/0.03096, allocations: 188.2 kB / 270.4 MB, free: 3.285 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.03096, allocations: 8 kB / 270.4 MB, free: 3.277 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003287/0.03129, allocations: 115.5 kB / 270.6 MB, free: 3.164 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.002e-05/0.03132, allocations: 20 kB / 270.6 MB, free: 3.145 MB / 266.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.0002019/0.03153, allocations: 172.3 kB / 270.7 MB, free: 2.965 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001143/0.03164, allocations: 111.9 kB / 270.8 MB, free: 2.855 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003813/0.03202, allocations: 352.8 kB / 271.2 MB, free: 2.504 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.03203, allocations: 8 kB / 271.2 MB, free: 2.496 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.03203, allocations: 0 / 271.2 MB, free: 2.496 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.03203, allocations: 3.984 kB / 271.2 MB, free: 2.492 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00122/0.03325, allocations: 1.16 MB / 272.4 MB, free: 1.293 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.03326, allocations: 4 kB / 272.4 MB, free: 1.289 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003059/0.03356, allocations: 123.8 kB / 272.5 MB, free: 1.168 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003006/0.03386, allocations: 226.6 kB / 272.7 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/0.03387, allocations: 0 / 272.7 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.662e-05/0.0339, allocations: 12 kB / 272.7 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.079e-06/0.0339, allocations: 8.094 kB / 272.7 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.03391, allocations: 3.984 kB / 272.7 MB, free: 0.9219 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006756/0.03458, allocations: 0.509 MB / 273.2 MB, free: 392 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001088/0.03469, allocations: 16 kB / 273.3 MB, free: 376 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003453/0.03504, allocations: 99.84 kB / 273.4 MB, free: 276 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001305/0.03517, allocations: 87.86 kB / 273.4 MB, free: 188 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.255e-05/0.03519, allocations: 15.98 kB / 273.5 MB, free: 172 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000748/0.03594, allocations: 0.8958 MB / 274.4 MB, free: 15.24 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.03594, allocations: 0 / 274.4 MB, free: 15.24 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004792/0.03642, allocations: 315.3 kB / 274.7 MB, free: 14.93 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.001518/0.03793, allocations: 0.65 MB / 275.3 MB, free: 14.6 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003245/0.03826, allocations: 248.4 kB / 275.6 MB, free: 14.35 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.794e-05/0.03829, allocations: 31.98 kB / 275.6 MB, free: 14.32 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001365/0.03842, allocations: 113.8 kB / 275.7 MB, free: 14.21 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006815/0.0391, allocations: 400.4 kB / 276.1 MB, free: 13.82 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007113/0.04622, allocations: 2.785 MB / 278.9 MB, free: 10.98 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002961/0.04651, allocations: 371.1 kB / 279.2 MB, free: 10.59 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003834/0.0469, allocations: 178.5 kB / 279.4 MB, free: 10.41 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005832/0.04748, allocations: 373.1 kB / 279.8 MB, free: 10.04 MB / 282.7 MB Notification: Performance of SimCode: time 1.122e-06/0.04748, allocations: 0 / 279.8 MB, free: 10.04 MB / 282.7 MB Notification: Performance of Templates: time 0.1253/0.1727, allocations: 22.87 MB / 302.6 MB, free: 35.32 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.3837687224149704]