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.001337/0.001337, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.001522/0.001522, allocations: 213.9 kB / 24.54 MB, free: 4.016 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.611/1.611, allocations: 230.3 MB / 258 MB, free: 8.262 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.002224/0.002224, allocations: 60.08 kB / 378.7 MB, free: 2.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2921, allocations: 53.37 MB / 432.1 MB, free: 7.113 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.008023/0.3001, allocations: 5.903 MB / 438 MB, free: 1.191 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005296/0.3054, allocations: 2.765 MB / 440.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007323/0.3062, allocations: 31.81 kB / 440.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001921/0.3081, allocations: 0.7696 MB / 441.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001463/0.3096, allocations: 0.5594 MB / 442.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001253/0.3108, allocations: 0.5253 MB / 442.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002266/0.3131, allocations: 1.594 MB / 444.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007271/0.3138, allocations: 415 kB / 444.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001012/0.3148, allocations: 0.6307 MB / 445.3 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009977/0.3158, allocations: 0.7666 MB / 446.1 MB, free: 9.094 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002022/0.316, allocations: 140 kB / 446.2 MB, free: 8.957 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004433/0.3165, allocations: 215.9 kB / 446.4 MB, free: 8.746 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006116/0.3171, allocations: 0.6388 MB / 447 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009683/0.318, allocations: 0.9282 MB / 448 MB, free: 7.172 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00298/0.321, allocations: 2.511 MB / 450.5 MB, free: 4.652 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.321, allocations: 0 / 450.5 MB, free: 4.652 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.321, allocations: 0 / 450.5 MB, free: 4.652 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.716e-05/0.3211, allocations: 0 / 450.5 MB, free: 4.652 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.005329/0.3264, allocations: 2.577 MB / 453.1 MB, free: 2.031 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.3264, allocations: 8.031 kB / 453.1 MB, free: 2.023 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004288/0.3269, allocations: 235.5 kB / 453.3 MB, free: 1.793 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00294/0.3298, allocations: 1.502 MB / 454.8 MB, free: 240 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001513/0.3299, allocations: 100.3 kB / 454.9 MB, free: 136 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001498/0.3301, allocations: 88.38 kB / 455 MB, free: 48 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002229/0.3323, allocations: 1.111 MB / 456.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.222e-05/0.3323, allocations: 3.938 kB / 456.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001863/0.3325, allocations: 43.98 kB / 456.1 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.349e-05/0.3326, allocations: 20 kB / 456.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001463/0.334, allocations: 0.7221 MB / 456.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008221/0.3422, allocations: 4.53 MB / 461.4 MB, free: 9.371 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001438/0.3437, allocations: 0.5241 MB / 461.9 MB, free: 8.84 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008275/0.3445, allocations: 357 kB / 462.3 MB, free: 8.488 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.94e-05/0.3446, allocations: 8 kB / 462.3 MB, free: 8.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.658e-05/0.3446, allocations: 50.55 kB / 462.3 MB, free: 8.422 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.314e-06/0.3446, allocations: 0 / 462.3 MB, free: 8.422 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.00207/0.3467, allocations: 0.8287 MB / 463.2 MB, free: 7.586 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003027/0.347, allocations: 423.2 kB / 463.6 MB, free: 7.074 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004275/0.3513, allocations: 2.756 MB / 466.3 MB, free: 4.277 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.651e-05/0.3514, allocations: 41.7 kB / 466.4 MB, free: 4.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009511/0.3523, allocations: 0.903 MB / 467.3 MB, free: 3.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001652/0.3525, allocations: 162.6 kB / 467.4 MB, free: 3.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002671/0.3527, allocations: 122.2 kB / 467.6 MB, free: 3.035 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.3529, allocations: 337.9 kB / 467.9 MB, free: 2.699 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006537/0.3536, allocations: 253.1 kB / 468.1 MB, free: 2.453 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008647/0.3544, allocations: 0.5363 MB / 468.7 MB, free: 1.797 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001159/0.3556, allocations: 0.621 MB / 469.3 MB, free: 1.098 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/0.3556, allocations: 4 kB / 469.3 MB, free: 1.094 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002039/0.3577, allocations: 0.8505 MB / 470.2 MB, free: 240 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.3577, allocations: 12 kB / 470.2 MB, free: 228 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.3577, allocations: 4 kB / 470.2 MB, free: 224 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.337e-05/0.3577, allocations: 12 kB / 470.2 MB, free: 212 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006619/0.3584, allocations: 159.7 kB / 470.3 MB, free: 52 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.444e-05/0.3584, allocations: 12 kB / 470.4 MB, free: 40 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001162/0.3596, allocations: 163.3 kB / 470.5 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.089e-05/0.3596, allocations: 28 kB / 470.5 MB, free: 15.85 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.0009273/0.3605, allocations: 0.556 MB / 471.1 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003361/0.3609, allocations: 190.8 kB / 471.3 MB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001581/0.3625, allocations: 0.7002 MB / 472 MB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.361e-06/0.3625, allocations: 4 kB / 472 MB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.3625, allocations: 4 kB / 472 MB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.3625, allocations: 3.938 kB / 472 MB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004072/0.3665, allocations: 2.097 MB / 474.1 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.3666, allocations: 0 / 474.1 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005247/0.3671, allocations: 112 kB / 474.2 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.127e-06/0.3671, allocations: 4 kB / 474.2 MB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.045e-05/0.3671, allocations: 12 kB / 474.2 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.488e-06/0.3671, allocations: 7.984 kB / 474.2 MB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.3671, allocations: 3.938 kB / 474.2 MB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002061/0.3692, allocations: 1.052 MB / 475.3 MB, free: 11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009257/0.3701, allocations: 346.6 kB / 475.6 MB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000207/0.3703, allocations: 12 kB / 475.6 MB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/0.3714, allocations: 143.8 kB / 475.8 MB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003586/0.3718, allocations: 155.7 kB / 475.9 MB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.276e-05/0.3718, allocations: 12 kB / 475.9 MB, free: 10.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003269/0.3751, allocations: 1.971 MB / 477.9 MB, free: 8.348 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3751, allocations: 0 / 477.9 MB, free: 8.348 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001054/0.3762, allocations: 315.4 kB / 478.2 MB, free: 8.039 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.001781/0.3779, allocations: 473.6 kB / 478.7 MB, free: 7.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001397/0.3793, allocations: 0.5803 MB / 479.3 MB, free: 7.148 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/0.3793, allocations: 0 / 479.3 MB, free: 7.148 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007431/0.3801, allocations: 336.7 kB / 479.6 MB, free: 6.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001779/0.3819, allocations: 317.5 kB / 479.9 MB, free: 6.512 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006634/0.3885, allocations: 3.549 MB / 483.4 MB, free: 2.914 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001496/0.39, allocations: 1.437 MB / 484.9 MB, free: 1.445 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001376/0.3914, allocations: 291.1 kB / 485.2 MB, free: 1.156 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004554/0.3918, allocations: 103.4 kB / 485.3 MB, free: 1.055 MB / 382.1 MB Notification: Performance of SimCode: time 1.663e-06/0.3918, allocations: 0 / 485.3 MB, free: 1.055 MB / 382.1 MB Notification: Performance of Templates: time 0.04304/0.4349, allocations: 21.83 MB / 0.4952 GB, free: 11.38 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.888505696319044]