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.001748/0.001748, allocations: 112.8 kB / 19.17 MB, free: 3.871 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.002208/0.002208, allocations: 210.5 kB / 22.13 MB, free: 0.918 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.489/1.489, allocations: 230.2 MB / 255.1 MB, free: 15.23 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.001852/0.001852, allocations: 59.89 kB / 374.5 MB, free: 9.906 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09391/0.09576, allocations: 53.32 MB / 427.8 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.2017/0.2974, allocations: 5.859 MB / 433.7 MB, free: 8.789 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003879/0.3013, allocations: 2.758 MB / 436.4 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000524/0.3018, allocations: 26.12 kB / 436.5 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001545/0.3034, allocations: 0.7666 MB / 437.2 MB, free: 7.891 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00114/0.3045, allocations: 0.5598 MB / 437.8 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001147/0.3057, allocations: 0.5089 MB / 438.3 MB, free: 7.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001813/0.3075, allocations: 1.603 MB / 439.9 MB, free: 6.656 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005825/0.3081, allocations: 431.9 kB / 440.3 MB, free: 6.406 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007924/0.3089, allocations: 0.6242 MB / 441 MB, free: 6.117 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009188/0.3098, allocations: 0.7667 MB / 441.7 MB, free: 5.793 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001981/0.31, allocations: 137.9 kB / 441.9 MB, free: 5.789 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004203/0.3104, allocations: 208.4 kB / 442.1 MB, free: 5.766 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000549/0.3109, allocations: 0.6476 MB / 442.7 MB, free: 5.473 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007763/0.3117, allocations: 0.9202 MB / 443.6 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002882/0.3146, allocations: 2.507 MB / 446.1 MB, free: 3.871 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.3146, allocations: 1.938 kB / 446.1 MB, free: 3.871 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.572e-06/0.3146, allocations: 3.938 kB / 446.1 MB, free: 3.867 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.875e-05/0.3147, allocations: 0 / 446.1 MB, free: 3.867 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.00518/0.3198, allocations: 2.645 MB / 448.8 MB, free: 2.281 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.3199, allocations: 10.08 kB / 448.8 MB, free: 2.281 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004179/0.3203, allocations: 232.4 kB / 449 MB, free: 2.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002426/0.3227, allocations: 1.578 MB / 450.6 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/0.3228, allocations: 94.08 kB / 450.7 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001258/0.323, allocations: 85.11 kB / 450.8 MB, free: 1.188 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001841/0.3248, allocations: 1.105 MB / 451.9 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.184e-05/0.3248, allocations: 0 / 451.9 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.675e-05/0.3249, allocations: 44.59 kB / 451.9 MB, free: 0.582 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.89e-05/0.3249, allocations: 20.53 kB / 451.9 MB, free: 0.582 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001273/0.3262, allocations: 0.7165 MB / 452.7 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007616/0.3338, allocations: 4.601 MB / 457.3 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001414/0.3352, allocations: 0.8959 MB / 458.2 MB, free: 12.44 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007583/0.336, allocations: 347.6 kB / 458.5 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.035e-05/0.336, allocations: 14.39 kB / 458.5 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.061e-05/0.3361, allocations: 48.22 kB / 458.6 MB, free: 12.22 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.565e-06/0.3361, allocations: 0 / 458.6 MB, free: 12.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002095/0.3382, allocations: 0.8238 MB / 459.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002427/0.3384, allocations: 426 kB / 459.8 MB, free: 11.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005211/0.3436, allocations: 2.763 MB / 462.6 MB, free: 10.01 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001674/0.3438, allocations: 33.55 kB / 462.6 MB, free: 9.977 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009085/0.3447, allocations: 0.9043 MB / 463.5 MB, free: 9.191 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000209/0.3449, allocations: 162.2 kB / 463.7 MB, free: 9.051 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002453/0.3452, allocations: 125 kB / 463.8 MB, free: 8.977 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.3453, allocations: 335.1 kB / 464.1 MB, free: 8.648 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005947/0.3459, allocations: 255.6 kB / 464.4 MB, free: 8.527 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000837/0.3468, allocations: 0.5382 MB / 464.9 MB, free: 8.047 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001151/0.3479, allocations: 0.6231 MB / 465.5 MB, free: 7.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.122e-06/0.3479, allocations: 1.438 kB / 465.5 MB, free: 7.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00225/0.3502, allocations: 0.8568 MB / 466.4 MB, free: 7.152 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.3502, allocations: 11.41 kB / 466.4 MB, free: 7.148 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.3502, allocations: 6.188 kB / 466.4 MB, free: 7.148 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.163e-05/0.3503, allocations: 12.97 kB / 466.4 MB, free: 7.145 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00065/0.3509, allocations: 154.3 kB / 466.6 MB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.787e-05/0.3509, allocations: 12.91 kB / 466.6 MB, free: 7.105 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00151/0.3524, allocations: 164.6 kB / 466.7 MB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.822e-05/0.3525, allocations: 33.11 kB / 466.8 MB, free: 7.008 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.001104/0.3536, allocations: 0.5584 MB / 467.3 MB, free: 6.684 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004886/0.3541, allocations: 193.2 kB / 467.5 MB, free: 6.578 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001587/0.3557, allocations: 0.6926 MB / 468.2 MB, free: 6.215 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.3557, allocations: 9.406 kB / 468.2 MB, free: 6.211 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.3557, allocations: 0 / 468.2 MB, free: 6.211 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.3557, allocations: 7.922 kB / 468.2 MB, free: 6.203 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003981/0.3597, allocations: 2.128 MB / 470.3 MB, free: 4.777 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.3597, allocations: 0 / 470.3 MB, free: 4.777 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005368/0.3602, allocations: 109.1 kB / 470.5 MB, free: 4.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.634e-06/0.3602, allocations: 2.75 kB / 470.5 MB, free: 4.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.232e-05/0.3603, allocations: 13.5 kB / 470.5 MB, free: 4.742 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.011e-06/0.3603, allocations: 2.25 kB / 470.5 MB, free: 4.742 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.3603, allocations: 1.375 kB / 470.5 MB, free: 4.742 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002272/0.3626, allocations: 1.054 MB / 471.5 MB, free: 4.125 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009533/0.3635, allocations: 423.9 kB / 471.9 MB, free: 3.816 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002454/0.3638, allocations: 14.86 kB / 472 MB, free: 3.809 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/0.3649, allocations: 143.5 kB / 472.1 MB, free: 3.746 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003492/0.3652, allocations: 154.9 kB / 472.2 MB, free: 3.664 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.644e-05/0.3653, allocations: 12.69 kB / 472.3 MB, free: 3.664 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003461/0.3687, allocations: 1.97 MB / 474.2 MB, free: 1.703 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3687, allocations: 0 / 474.2 MB, free: 1.703 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001372/0.3701, allocations: 315.4 kB / 474.5 MB, free: 1.395 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.00183/0.3719, allocations: 478.5 kB / 475 MB, free: 1.125 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001435/0.3734, allocations: 0.5725 MB / 475.6 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.654e-06/0.3734, allocations: 4 kB / 475.6 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007159/0.3741, allocations: 328.8 kB / 475.9 MB, free: 232 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001923/0.376, allocations: 317.1 kB / 476.2 MB, free: 15.92 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006929/0.3829, allocations: 3.627 MB / 479.8 MB, free: 12.24 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001271/0.3842, allocations: 1.425 MB / 481.3 MB, free: 10.78 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006775/0.3849, allocations: 111.4 kB / 481.4 MB, free: 10.68 MB / 382.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3849, allocations: 4 kB / 481.4 MB, free: 10.67 MB / 382.1 MB Notification: Performance of Templates: time 0.04007/0.425, allocations: 23.24 MB / 0.4928 GB, free: 3.488 MB / 398.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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 10.353225592058152]