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.001437/0.001437, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.001723/0.001723, allocations: 211.4 kB / 24.48 MB, free: 3.941 MB / 14.72 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 2.092/2.092, allocations: 230.6 MB / 258.2 MB, free: 7.785 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+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.1..v|battery2.capacitor.2..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.1..v|battery2.capacitor.2..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 0.002234/0.002234, allocations: 47.92 kB / 379 MB, free: 2.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.371/0.3732, allocations: 53.36 MB / 432.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.01442/0.3876, allocations: 5.222 MB / 437.5 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009503/0.3971, allocations: 2.598 MB / 440.1 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00105/0.3982, allocations: 27.81 kB / 440.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003254/0.4014, allocations: 0.7428 MB / 440.9 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003046/0.4045, allocations: 0.5594 MB / 441.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002682/0.4072, allocations: 0.5103 MB / 442 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004326/0.4115, allocations: 1.616 MB / 443.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001253/0.4127, allocations: 402.2 kB / 444 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001494/0.4142, allocations: 0.6307 MB / 444.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001708/0.416, allocations: 0.7705 MB / 445.4 MB, free: 9.582 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003578/0.4163, allocations: 132 kB / 445.5 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007331/0.417, allocations: 211.9 kB / 445.7 MB, free: 9.246 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001022/0.4181, allocations: 0.6582 MB / 446.4 MB, free: 8.586 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001267/0.4193, allocations: 0.7108 MB / 447.1 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02147/0.4408, allocations: 2.533 MB / 449.6 MB, free: 5.328 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.4408, allocations: 4 kB / 449.6 MB, free: 5.324 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.644e-06/0.4408, allocations: 0 / 449.6 MB, free: 5.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.164e-05/0.4409, allocations: 0 / 449.6 MB, free: 5.324 MB / 350.1 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.009842/0.4507, allocations: 2.579 MB / 452.2 MB, free: 2.703 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.441e-05/0.4508, allocations: 12.03 kB / 452.2 MB, free: 2.691 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006566/0.4514, allocations: 235.4 kB / 452.5 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01714/0.4686, allocations: 1.495 MB / 453.9 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003829/0.469, allocations: 147.7 kB / 454.1 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000376/0.4693, allocations: 87.94 kB / 454.2 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003636/0.473, allocations: 1.71 MB / 455.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.347e-05/0.473, allocations: 4 kB / 455.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001824/0.4732, allocations: 40 kB / 455.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.711e-05/0.4732, allocations: 20 kB / 455.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002095/0.4753, allocations: 0.7143 MB / 456.7 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02788/0.5032, allocations: 4.056 MB / 460.7 MB, free: 9.742 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007938/0.5111, allocations: 0.5164 MB / 461.2 MB, free: 9.215 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00109/0.5122, allocations: 357.9 kB / 461.6 MB, free: 8.863 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.039e-05/0.5123, allocations: 11.94 kB / 461.6 MB, free: 8.852 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.019e-05/0.5124, allocations: 42.55 kB / 461.6 MB, free: 8.801 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 3.015e-06/0.5124, allocations: 0 / 461.6 MB, free: 8.801 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002574/0.5149, allocations: 0.8171 MB / 462.5 MB, free: 7.977 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002908/0.5152, allocations: 427.2 kB / 462.9 MB, free: 7.461 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01542/0.5306, allocations: 2.727 MB / 465.6 MB, free: 4.688 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001692/0.5308, allocations: 37.7 kB / 465.6 MB, free: 4.645 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001153/0.532, allocations: 0.9066 MB / 466.5 MB, free: 3.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002305/0.5322, allocations: 162.7 kB / 466.7 MB, free: 3.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002995/0.5325, allocations: 126.3 kB / 466.8 MB, free: 3.441 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.5327, allocations: 326 kB / 467.1 MB, free: 3.117 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007667/0.5334, allocations: 261.1 kB / 467.4 MB, free: 2.863 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001245/0.5347, allocations: 0.8839 MB / 468.3 MB, free: 1.773 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001474/0.5361, allocations: 0.6172 MB / 468.9 MB, free: 1.078 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.5362, allocations: 0 / 468.9 MB, free: 1.078 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002433/0.5386, allocations: 0.8539 MB / 469.8 MB, free: 220 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.413e-05/0.5386, allocations: 8.562 kB / 469.8 MB, free: 212 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.496e-05/0.5386, allocations: 8 kB / 469.8 MB, free: 204 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.758e-05/0.5387, allocations: 16 kB / 469.8 MB, free: 188 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008281/0.5395, allocations: 159.7 kB / 469.9 MB, free: 28 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.218e-05/0.5395, allocations: 15.98 kB / 470 MB, free: 12 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01246/0.552, allocations: 163.5 kB / 470.1 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001289/0.5521, allocations: 24 kB / 470.1 MB, free: 15.82 MB / 382.1 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.001134/0.5532, allocations: 0.5638 MB / 470.7 MB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004371/0.5537, allocations: 190.8 kB / 470.9 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001942/0.5556, allocations: 0.688 MB / 471.6 MB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.5556, allocations: 4 kB / 471.6 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.5556, allocations: 3.938 kB / 471.6 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.5556, allocations: 7.922 kB / 471.6 MB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004491/0.5601, allocations: 1.784 MB / 473.4 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.501e-06/0.5601, allocations: 4 kB / 473.4 MB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006979/0.5608, allocations: 107.9 kB / 473.5 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.01e-05/0.5608, allocations: 4 kB / 473.5 MB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.154e-05/0.5609, allocations: 12 kB / 473.5 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.5609, allocations: 0 / 473.5 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.5609, allocations: 7.938 kB / 473.5 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002486/0.5634, allocations: 1.048 MB / 474.6 MB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001145/0.5645, allocations: 338.6 kB / 474.9 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002539/0.5648, allocations: 16 kB / 474.9 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001318/0.5661, allocations: 135.8 kB / 475 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004375/0.5665, allocations: 159.7 kB / 475.2 MB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.423e-05/0.5666, allocations: 16 kB / 475.2 MB, free: 10.65 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003735/0.5703, allocations: 1.923 MB / 477.1 MB, free: 8.707 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5703, allocations: 0 / 477.1 MB, free: 8.707 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001372/0.5717, allocations: 319.3 kB / 477.4 MB, free: 8.395 MB / 382.1 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.002248/0.5739, allocations: 0.5095 MB / 478 MB, free: 8.094 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001759/0.5757, allocations: 0.5806 MB / 478.5 MB, free: 7.512 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/0.5757, allocations: 0 / 478.5 MB, free: 7.512 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009083/0.5766, allocations: 331.6 kB / 478.9 MB, free: 7.188 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001948/0.5786, allocations: 287.2 kB / 479.1 MB, free: 6.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007423/0.586, allocations: 3.53 MB / 482.7 MB, free: 3.332 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001351/0.5873, allocations: 0.8532 MB / 483.5 MB, free: 2.438 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001086/0.5884, allocations: 282.4 kB / 483.8 MB, free: 2.156 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004483/0.5889, allocations: 103.4 kB / 483.9 MB, free: 2.055 MB / 382.1 MB Notification: Performance of SimCode: time 1.403e-06/0.5889, allocations: 0 / 483.9 MB, free: 2.055 MB / 382.1 MB Notification: Performance of Templates: time 0.05601/0.6449, allocations: 23.39 MB / 0.4954 GB, free: 10.93 MB / 414.1 MB " [Timeout remaining time 659] 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=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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: 8.607328427999164]