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.001911/0.001911, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.002813/0.002813, allocations: 208.3 kB / 20.75 MB, free: 2.316 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 1.595/1.595, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.001892/0.001892, allocations: 43.94 kB / 373.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1278, allocations: 53.35 MB / 426.8 MB, free: 4.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.2518/0.3796, allocations: 5.863 MB / 432.7 MB, free: 8.164 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004308/0.3839, allocations: 2.757 MB / 435.4 MB, free: 7.301 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005903/0.3845, allocations: 29.81 kB / 435.4 MB, free: 7.289 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001727/0.3863, allocations: 0.7632 MB / 436.2 MB, free: 7.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001309/0.3876, allocations: 0.5607 MB / 436.8 MB, free: 6.832 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001266/0.3888, allocations: 0.5033 MB / 437.3 MB, free: 6.766 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002066/0.3909, allocations: 1.602 MB / 438.9 MB, free: 6.109 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006747/0.3916, allocations: 435.6 kB / 439.3 MB, free: 5.855 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009131/0.3925, allocations: 0.6329 MB / 439.9 MB, free: 5.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009657/0.3935, allocations: 0.7717 MB / 440.7 MB, free: 5.242 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002016/0.3937, allocations: 137.2 kB / 440.8 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004404/0.3941, allocations: 209.5 kB / 441 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005825/0.3947, allocations: 0.6461 MB / 441.7 MB, free: 4.922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008905/0.3956, allocations: 0.9204 MB / 442.6 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003395/0.399, allocations: 2.507 MB / 445.1 MB, free: 3.324 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.399, allocations: 1.094 kB / 445.1 MB, free: 3.324 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.399, allocations: 0 / 445.1 MB, free: 3.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001183/0.3991, allocations: 0.6094 kB / 445.1 MB, free: 3.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.007858/0.4069, allocations: 2.65 MB / 447.8 MB, free: 1.734 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.584e-05/0.407, allocations: 8.25 kB / 447.8 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006235/0.4076, allocations: 233.6 kB / 448 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003226/0.4109, allocations: 1.57 MB / 449.6 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00015/0.411, allocations: 95.31 kB / 449.7 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001571/0.4112, allocations: 87.94 kB / 449.8 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002191/0.4134, allocations: 1.108 MB / 450.9 MB, free: 68 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.367e-05/0.4134, allocations: 3.328 kB / 450.9 MB, free: 68 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.026e-05/0.4135, allocations: 38.45 kB / 450.9 MB, free: 40 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.453e-05/0.4135, allocations: 21.59 kB / 450.9 MB, free: 40 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00154/0.415, allocations: 0.718 MB / 451.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009734/0.4248, allocations: 4.6 MB / 456.2 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001585/0.4264, allocations: 0.899 MB / 457.1 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009189/0.4273, allocations: 355.3 kB / 457.5 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.875e-05/0.4274, allocations: 14.28 kB / 457.5 MB, free: 11.74 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.082e-05/0.4274, allocations: 39.78 kB / 457.5 MB, free: 11.7 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 3.397e-06/0.4274, allocations: 7.938 kB / 457.5 MB, free: 11.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.003491/0.4309, allocations: 0.8204 MB / 458.4 MB, free: 11.28 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004448/0.4314, allocations: 433.9 kB / 458.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005784/0.4372, allocations: 2.76 MB / 461.6 MB, free: 9.477 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001337/0.4373, allocations: 41.55 kB / 461.6 MB, free: 9.434 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009795/0.4383, allocations: 0.8932 MB / 462.5 MB, free: 8.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001945/0.4385, allocations: 165.7 kB / 462.6 MB, free: 8.516 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002743/0.4387, allocations: 123.8 kB / 462.8 MB, free: 8.441 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.4389, allocations: 333 kB / 463.1 MB, free: 8.117 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006143/0.4395, allocations: 255.2 kB / 463.3 MB, free: 7.996 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001002/0.4405, allocations: 0.531 MB / 463.9 MB, free: 7.523 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001266/0.4418, allocations: 0.6194 MB / 464.5 MB, free: 7.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.4418, allocations: 1.531 kB / 464.5 MB, free: 7.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002091/0.4439, allocations: 0.8605 MB / 465.4 MB, free: 6.633 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/0.4439, allocations: 9.188 kB / 465.4 MB, free: 6.633 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.4439, allocations: 11.5 kB / 465.4 MB, free: 6.629 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.456e-05/0.444, allocations: 13.31 kB / 465.4 MB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006449/0.4446, allocations: 154.3 kB / 465.5 MB, free: 6.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.138e-05/0.4446, allocations: 20.41 kB / 465.6 MB, free: 6.578 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00136/0.446, allocations: 160.9 kB / 465.7 MB, free: 6.492 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.02e-05/0.446, allocations: 26.7 kB / 465.7 MB, free: 6.488 MB / 366.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.001151/0.4472, allocations: 0.5553 MB / 466.3 MB, free: 6.164 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003514/0.4476, allocations: 189.6 kB / 466.5 MB, free: 6.062 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001592/0.4491, allocations: 0.7007 MB / 467.2 MB, free: 5.691 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.4492, allocations: 5.062 kB / 467.2 MB, free: 5.691 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.4492, allocations: 3.938 kB / 467.2 MB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.4492, allocations: 6.266 kB / 467.2 MB, free: 5.684 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004056/0.4532, allocations: 2.127 MB / 469.3 MB, free: 4.258 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.7e-06/0.4532, allocations: 1.719 kB / 469.3 MB, free: 4.258 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005331/0.4538, allocations: 107.4 kB / 469.4 MB, free: 4.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.642e-06/0.4538, allocations: 2.75 kB / 469.4 MB, free: 4.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.446e-05/0.4538, allocations: 14.47 kB / 469.4 MB, free: 4.223 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.4538, allocations: 9.25 kB / 469.5 MB, free: 4.215 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4538, allocations: 1.375 kB / 469.5 MB, free: 4.215 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002405/0.4562, allocations: 1.05 MB / 470.5 MB, free: 3.598 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001004/0.4572, allocations: 426.5 kB / 470.9 MB, free: 3.289 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002762/0.4575, allocations: 15.98 kB / 470.9 MB, free: 3.277 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001188/0.4587, allocations: 144.2 kB / 471.1 MB, free: 3.219 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003541/0.4591, allocations: 152.1 kB / 471.2 MB, free: 3.137 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.726e-05/0.4591, allocations: 20.28 kB / 471.3 MB, free: 3.129 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.004201/0.4633, allocations: 1.968 MB / 473.2 MB, free: 1.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4633, allocations: 0 / 473.2 MB, free: 1.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001549/0.4649, allocations: 307.4 kB / 473.5 MB, free: 0.8789 MB / 366.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.001989/0.4668, allocations: 492.1 kB / 474 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001743/0.4686, allocations: 0.5688 MB / 474.6 MB, free: 48 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.4686, allocations: 3.938 kB / 474.6 MB, free: 44 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007788/0.4694, allocations: 336.5 kB / 474.9 MB, free: 15.71 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002402/0.4718, allocations: 324.1 kB / 475.2 MB, free: 15.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008616/0.4804, allocations: 3.538 MB / 478.8 MB, free: 11.81 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001398/0.4818, allocations: 1.433 MB / 480.2 MB, free: 10.35 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001267/0.4831, allocations: 295.1 kB / 480.5 MB, free: 10.06 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003824/0.4834, allocations: 103.4 kB / 480.6 MB, free: 9.961 MB / 382.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4834, allocations: 0 / 480.6 MB, free: 9.961 MB / 382.1 MB Notification: Performance of Templates: time 0.04467/0.5281, allocations: 21.55 MB / 0.4904 GB, free: 4.582 MB / 398.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins/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: 6.173575013875961]