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.001828/0.001828, allocations: 122.5 kB / 18.5 MB, free: 4.52 MB / 14.72 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.002221/0.002221, allocations: 215.2 kB / 21.46 MB, free: 1.566 MB / 14.72 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 1.505/1.505, allocations: 230.2 MB / 254.5 MB, free: 15.24 MB / 206.1 MB " [Timeout remaining time 178] 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.1..v|battery2.capacitor.2..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.1..v|battery2.capacitor.2..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 0.001891/0.001891, allocations: 63.91 kB / 373.8 MB, free: 9.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1233, allocations: 53.32 MB / 427.1 MB, free: 4.469 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.254/0.3774, allocations: 5.863 MB / 433 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005091/0.3825, allocations: 2.758 MB / 435.8 MB, free: 7.598 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001059/0.3835, allocations: 22.44 kB / 435.8 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002058/0.3856, allocations: 0.7687 MB / 436.6 MB, free: 7.359 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001625/0.3872, allocations: 0.5594 MB / 437.1 MB, free: 7.133 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001546/0.3887, allocations: 0.5096 MB / 437.6 MB, free: 7.066 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002283/0.391, allocations: 1.595 MB / 439.2 MB, free: 6.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006524/0.3917, allocations: 434 kB / 439.6 MB, free: 6.176 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001025/0.3927, allocations: 0.6194 MB / 440.3 MB, free: 5.891 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001146/0.3938, allocations: 0.7719 MB / 441 MB, free: 5.562 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002475/0.3941, allocations: 137.5 kB / 441.2 MB, free: 5.559 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005317/0.3946, allocations: 208.2 kB / 441.4 MB, free: 5.535 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000624/0.3952, allocations: 0.6473 MB / 442 MB, free: 5.242 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009506/0.3962, allocations: 0.9206 MB / 442.9 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003278/0.3995, allocations: 2.507 MB / 445.4 MB, free: 3.645 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.3995, allocations: 1.969 kB / 445.5 MB, free: 3.645 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3995, allocations: 0 / 445.5 MB, free: 3.645 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.179e-05/0.3995, allocations: 0 / 445.5 MB, free: 3.645 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.005417/0.4049, allocations: 2.653 MB / 448.1 MB, free: 2.051 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/0.405, allocations: 9.375 kB / 448.1 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006587/0.4057, allocations: 236.8 kB / 448.3 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0031/0.4088, allocations: 1.566 MB / 449.9 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001104/0.4089, allocations: 95.14 kB / 450 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001382/0.409, allocations: 84.16 kB / 450.1 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001974/0.411, allocations: 1.108 MB / 451.2 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.277e-05/0.411, allocations: 0 / 451.2 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.568e-05/0.4111, allocations: 38.94 kB / 451.2 MB, free: 368 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.151e-05/0.4111, allocations: 20.94 kB / 451.3 MB, free: 368 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001316/0.4124, allocations: 0.7218 MB / 452 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007788/0.4202, allocations: 4.603 MB / 456.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001403/0.4216, allocations: 0.8923 MB / 457.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008391/0.4225, allocations: 355 kB / 457.8 MB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.796e-05/0.4225, allocations: 11.31 kB / 457.8 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.932e-05/0.4226, allocations: 44.28 kB / 457.9 MB, free: 12.03 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.294e-06/0.4226, allocations: 0 / 457.9 MB, free: 12.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.00231/0.4249, allocations: 0.8244 MB / 458.7 MB, free: 11.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002771/0.4252, allocations: 425.7 kB / 459.1 MB, free: 11.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004897/0.43, allocations: 2.763 MB / 461.9 MB, free: 9.816 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001293/0.4302, allocations: 33.67 kB / 461.9 MB, free: 9.781 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008786/0.4311, allocations: 0.9087 MB / 462.8 MB, free: 8.992 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00018/0.4312, allocations: 157.8 kB / 463 MB, free: 8.855 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002368/0.4315, allocations: 131.7 kB / 463.1 MB, free: 8.773 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.4316, allocations: 332.5 kB / 463.4 MB, free: 8.449 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006186/0.4323, allocations: 255.4 kB / 463.7 MB, free: 8.328 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008516/0.4331, allocations: 0.5383 MB / 464.2 MB, free: 7.848 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00117/0.4343, allocations: 0.6189 MB / 464.8 MB, free: 7.395 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.4343, allocations: 1.312 kB / 464.8 MB, free: 7.395 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002061/0.4364, allocations: 0.8613 MB / 465.7 MB, free: 6.953 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/0.4364, allocations: 6.781 kB / 465.7 MB, free: 6.953 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.4364, allocations: 7.469 kB / 465.7 MB, free: 6.953 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.777e-05/0.4364, allocations: 8.844 kB / 465.7 MB, free: 6.953 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006418/0.4371, allocations: 159.6 kB / 465.9 MB, free: 6.914 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.953e-05/0.4371, allocations: 12.16 kB / 465.9 MB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001426/0.4385, allocations: 165 kB / 466 MB, free: 6.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.931e-05/0.4386, allocations: 30.3 kB / 466.1 MB, free: 6.812 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.001476/0.44, allocations: 0.5569 MB / 466.6 MB, free: 6.488 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005351/0.4406, allocations: 197.4 kB / 466.8 MB, free: 6.379 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001762/0.4423, allocations: 0.6946 MB / 467.5 MB, free: 6.016 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.4424, allocations: 7.75 kB / 467.5 MB, free: 6.012 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.952e-06/0.4424, allocations: 1.281 kB / 467.5 MB, free: 6.012 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.228e-05/0.4424, allocations: 8.438 kB / 467.5 MB, free: 6.004 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004199/0.4466, allocations: 2.119 MB / 469.7 MB, free: 4.586 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.4466, allocations: 1.656 kB / 469.7 MB, free: 4.586 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005008/0.4471, allocations: 109.7 kB / 469.8 MB, free: 4.559 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.213e-06/0.4471, allocations: 2.75 kB / 469.8 MB, free: 4.559 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.55e-05/0.4471, allocations: 13.5 kB / 469.8 MB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.937e-06/0.4471, allocations: 9.297 kB / 469.8 MB, free: 4.543 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.4471, allocations: 1.375 kB / 469.8 MB, free: 4.543 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002215/0.4494, allocations: 1.054 MB / 470.8 MB, free: 3.926 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008013/0.4502, allocations: 421.6 kB / 471.3 MB, free: 3.621 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000212/0.4504, allocations: 13.45 kB / 471.3 MB, free: 3.613 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00112/0.4515, allocations: 140.3 kB / 471.4 MB, free: 3.555 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003702/0.4519, allocations: 156.2 kB / 471.6 MB, free: 3.469 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.697e-05/0.4519, allocations: 12.78 kB / 471.6 MB, free: 3.469 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003968/0.4559, allocations: 1.972 MB / 473.5 MB, free: 1.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4559, allocations: 0 / 473.5 MB, free: 1.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001383/0.4573, allocations: 311.4 kB / 473.8 MB, free: 1.195 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.001944/0.4592, allocations: 490.8 kB / 474.3 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001431/0.4606, allocations: 0.5647 MB / 474.9 MB, free: 352 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.4606, allocations: 4 kB / 474.9 MB, free: 348 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007152/0.4614, allocations: 336.7 kB / 475.2 MB, free: 12 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001727/0.4631, allocations: 313.7 kB / 475.5 MB, free: 15.71 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007577/0.4707, allocations: 3.537 MB / 479.1 MB, free: 12.12 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001299/0.472, allocations: 1.441 MB / 480.5 MB, free: 10.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001044/0.473, allocations: 299.1 kB / 480.8 MB, free: 10.35 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003687/0.4734, allocations: 103.4 kB / 480.9 MB, free: 10.25 MB / 382.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4734, allocations: 4 kB / 480.9 MB, free: 10.25 MB / 382.1 MB Notification: Performance of Templates: time 0.04096/0.5143, allocations: 21.55 MB / 0.4907 GB, free: 4.82 MB / 398.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 5.989085230045021]