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.001686/0.001686, allocations: 105.4 kB / 19.81 MB, free: 2.516 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.002204/0.002204, allocations: 215.8 kB / 23 MB, free: 5.609 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.448/1.448, allocations: 230.2 MB / 256.2 MB, free: 8.547 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.001884/0.001884, allocations: 63.89 kB / 376.5 MB, free: 3.613 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.307/0.3088, allocations: 53.33 MB / 429.8 MB, free: 7.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.008129/0.317, allocations: 5.899 MB / 435.7 MB, free: 1.605 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00627/0.3232, allocations: 2.761 MB / 438.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001018/0.3243, allocations: 19.94 kB / 438.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002116/0.3264, allocations: 0.7674 MB / 439.2 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002072/0.3284, allocations: 0.5672 MB / 439.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001526/0.33, allocations: 0.5097 MB / 440.3 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002335/0.3323, allocations: 1.594 MB / 441.9 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007311/0.333, allocations: 410.6 kB / 442.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009538/0.334, allocations: 0.6112 MB / 442.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009926/0.335, allocations: 0.7705 MB / 443.7 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001969/0.3352, allocations: 132 kB / 443.8 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004451/0.3356, allocations: 215.9 kB / 444 MB, free: 9.215 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006498/0.3363, allocations: 0.6543 MB / 444.7 MB, free: 8.559 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009692/0.3372, allocations: 0.9166 MB / 445.6 MB, free: 7.637 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002846/0.3401, allocations: 2.509 MB / 448.1 MB, free: 5.105 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3401, allocations: 0 / 448.1 MB, free: 5.105 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3401, allocations: 4 kB / 448.1 MB, free: 5.102 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.195e-05/0.3401, allocations: 0 / 448.1 MB, free: 5.102 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.005437/0.3456, allocations: 2.648 MB / 450.8 MB, free: 2.391 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.3456, allocations: 11.97 kB / 450.8 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003902/0.346, allocations: 239.4 kB / 451 MB, free: 2.145 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002564/0.3486, allocations: 1.572 MB / 452.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001157/0.3487, allocations: 92.27 kB / 452.7 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001417/0.3488, allocations: 88.31 kB / 452.8 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002062/0.3509, allocations: 1.108 MB / 453.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.368e-05/0.3509, allocations: 3.938 kB / 453.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.485e-05/0.351, allocations: 40 kB / 453.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.948e-05/0.351, allocations: 20 kB / 453.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001548/0.3526, allocations: 0.7221 MB / 454.7 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008049/0.3606, allocations: 4.604 MB / 459.3 MB, free: 9.574 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001437/0.3621, allocations: 0.8911 MB / 460.1 MB, free: 8.582 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008132/0.3629, allocations: 358 kB / 460.5 MB, free: 8.23 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.142e-05/0.3629, allocations: 11.97 kB / 460.5 MB, free: 8.219 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.14e-05/0.363, allocations: 46.56 kB / 460.6 MB, free: 8.164 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.334e-06/0.363, allocations: 0 / 460.6 MB, free: 8.164 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001966/0.365, allocations: 0.8249 MB / 461.4 MB, free: 7.332 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002586/0.3652, allocations: 419.2 kB / 461.8 MB, free: 6.824 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004354/0.3696, allocations: 2.771 MB / 464.6 MB, free: 4.012 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001466/0.3697, allocations: 33.7 kB / 464.6 MB, free: 3.973 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001015/0.3707, allocations: 0.8953 MB / 465.5 MB, free: 3.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002133/0.3709, allocations: 162.6 kB / 465.6 MB, free: 2.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003097/0.3713, allocations: 122.3 kB / 465.8 MB, free: 2.785 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001983/0.3715, allocations: 341.8 kB / 466.1 MB, free: 2.445 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006195/0.3721, allocations: 257.1 kB / 466.3 MB, free: 2.191 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008602/0.3729, allocations: 0.5285 MB / 466.9 MB, free: 1.547 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001081/0.374, allocations: 0.621 MB / 467.5 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.374, allocations: 0 / 467.5 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001973/0.376, allocations: 0.8621 MB / 468.4 MB, free: 15.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.578e-05/0.376, allocations: 8 kB / 468.4 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.376, allocations: 4 kB / 468.4 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.067e-05/0.3761, allocations: 12 kB / 468.4 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006347/0.3767, allocations: 156 kB / 468.5 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.073e-05/0.3767, allocations: 12 kB / 468.5 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001183/0.3779, allocations: 163.3 kB / 468.7 MB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.212e-05/0.378, allocations: 27.98 kB / 468.7 MB, free: 15.6 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.0009403/0.3789, allocations: 0.5599 MB / 469.3 MB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003534/0.3793, allocations: 194.7 kB / 469.5 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001486/0.3807, allocations: 0.6886 MB / 470.2 MB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.3807, allocations: 4 kB / 470.2 MB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.3808, allocations: 8 kB / 470.2 MB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.318e-06/0.3808, allocations: 7.922 kB / 470.2 MB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003967/0.3847, allocations: 2.129 MB / 472.3 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.3847, allocations: 4.094 kB / 472.3 MB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005073/0.3852, allocations: 107.9 kB / 472.4 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.3853, allocations: 0 / 472.4 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.546e-05/0.3853, allocations: 15.94 kB / 472.4 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.743e-06/0.3853, allocations: 4 kB / 472.5 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3853, allocations: 0 / 472.5 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002229/0.3875, allocations: 1.06 MB / 473.5 MB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007804/0.3883, allocations: 423.7 kB / 473.9 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001806/0.3885, allocations: 11.98 kB / 473.9 MB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.3895, allocations: 139.8 kB / 474.1 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003546/0.3899, allocations: 159.8 kB / 474.2 MB, free: 9.969 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.179e-05/0.3899, allocations: 12 kB / 474.2 MB, free: 9.957 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003663/0.3936, allocations: 1.967 MB / 476.2 MB, free: 7.973 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3936, allocations: 0 / 476.2 MB, free: 7.973 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001712/0.3953, allocations: 315.4 kB / 476.5 MB, free: 7.664 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.001975/0.3972, allocations: 483.3 kB / 477 MB, free: 7.344 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001499/0.3987, allocations: 0.5693 MB / 477.6 MB, free: 6.773 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.15e-05/0.3988, allocations: 0 / 477.6 MB, free: 6.773 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007293/0.3995, allocations: 332.1 kB / 477.9 MB, free: 6.449 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001923/0.4014, allocations: 324.5 kB / 478.2 MB, free: 6.133 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006373/0.4078, allocations: 3.544 MB / 481.7 MB, free: 2.539 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001329/0.4091, allocations: 1.441 MB / 483.2 MB, free: 1.07 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009906/0.4101, allocations: 295.1 kB / 483.5 MB, free: 0.7773 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003181/0.4104, allocations: 103.4 kB / 483.6 MB, free: 0.6758 MB / 382.1 MB Notification: Performance of SimCode: time 1.202e-06/0.4104, allocations: 0 / 483.6 MB, free: 0.6758 MB / 382.1 MB Notification: Performance of Templates: time 0.03993/0.4504, allocations: 21.67 MB / 0.4934 GB, free: 11.17 MB / 414.1 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=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.78273290861398]