Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 82.28 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001657/0.001657, allocations: 145.2 kB / 25.59 MB, free: 8.918 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9622/0.9622, allocations: 173.4 MB / 202.2 MB, free: 8.281 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.[0-9,]+..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_4.0.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.[0-9,]+..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.092e-06/1.092e-06, allocations: 0 / 269.2 MB, free: 9.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.503e-05/1.612e-05, allocations: 5.266 kB / 269.2 MB, free: 9.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.006559/0.006576, allocations: 5.544 MB / 274.7 MB, free: 4.242 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003659/0.01023, allocations: 2.531 MB / 277.3 MB, free: 1.715 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003578/0.01059, allocations: 27.81 kB / 277.3 MB, free: 1.688 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001307/0.0119, allocations: 0.7462 MB / 278 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007808/0.01268, allocations: 0.5357 MB / 278.6 MB, free: 408 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000809/0.01349, allocations: 0.5068 MB / 279.1 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001432/0.01492, allocations: 1.629 MB / 280.7 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005623/0.01548, allocations: 383 kB / 281.1 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008906/0.01637, allocations: 0.9004 MB / 282 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007072/0.01708, allocations: 0.643 MB / 282.6 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001532/0.01723, allocations: 132 kB / 282.7 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002845/0.01752, allocations: 203.8 kB / 282.9 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004514/0.01797, allocations: 0.6543 MB / 283.6 MB, free: 11.32 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004911/0.01846, allocations: 0.5765 MB / 284.2 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001314/0.01978, allocations: 1.51 MB / 285.7 MB, free: 9.23 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.01978, allocations: 3.938 kB / 285.7 MB, free: 9.227 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.01978, allocations: 0 / 285.7 MB, free: 9.227 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.162e-05/0.01979, allocations: 4 kB / 285.7 MB, free: 9.223 MB / 266.7 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.00322/0.02301, allocations: 2.64 MB / 288.3 MB, free: 6.535 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.926e-05/0.02304, allocations: 8.031 kB / 288.3 MB, free: 6.527 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003305/0.02337, allocations: 307.4 kB / 288.6 MB, free: 6.227 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001268/0.02464, allocations: 1.087 MB / 289.7 MB, free: 5.105 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001091/0.02475, allocations: 143.7 kB / 289.9 MB, free: 4.949 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001155/0.02486, allocations: 96.33 kB / 290 MB, free: 4.855 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001114/0.02598, allocations: 1.388 MB / 291.4 MB, free: 3.215 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.107e-05/0.026, allocations: 7.938 kB / 291.4 MB, free: 3.207 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.654e-05/0.02607, allocations: 40 kB / 291.4 MB, free: 3.168 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.948e-05/0.02609, allocations: 20 kB / 291.4 MB, free: 3.148 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004518/0.02655, allocations: 241.7 kB / 291.7 MB, free: 2.914 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007795/0.03434, allocations: 4.178 MB / 295.8 MB, free: 14.56 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003584/0.03792, allocations: 315 kB / 296.1 MB, free: 14.24 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003209/0.03825, allocations: 176.1 kB / 296.3 MB, free: 14.06 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.722e-05/0.03828, allocations: 8 kB / 296.3 MB, free: 14.05 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.269e-05/0.03832, allocations: 49.39 kB / 296.4 MB, free: 14 MB / 282.7 MB Notification: Performance of pre-optimization done (n=44): time 1.894e-06/0.03832, allocations: 4 kB / 296.4 MB, free: 13.99 MB / 282.7 MB Notification: Performance of matching and sorting (n=44): time 0.0007267/0.03904, allocations: 433 kB / 296.8 MB, free: 13.56 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001605/0.0392, allocations: 419.2 kB / 297.2 MB, free: 13.05 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002747/0.04195, allocations: 1.936 MB / 299.1 MB, free: 11.06 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.841e-05/0.04199, allocations: 41.64 kB / 299.2 MB, free: 11.02 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007434/0.04273, allocations: 1.06 MB / 300.2 MB, free: 9.945 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.04285, allocations: 170.6 kB / 300.4 MB, free: 9.777 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001743/0.04303, allocations: 135.8 kB / 300.5 MB, free: 9.637 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.04316, allocations: 0.5042 MB / 301 MB, free: 9.125 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001354/0.0433, allocations: 57.27 kB / 301.1 MB, free: 9.07 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004273/0.04372, allocations: 0.7964 MB / 301.9 MB, free: 8.023 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004088/0.04413, allocations: 427.8 kB / 302.3 MB, free: 7.508 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.04414, allocations: 4 kB / 302.3 MB, free: 7.504 MB / 282.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00074/0.04488, allocations: 0.5431 MB / 302.9 MB, free: 6.949 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.0449, allocations: 8 kB / 302.9 MB, free: 6.941 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.098e-05/0.04492, allocations: 8 kB / 302.9 MB, free: 6.934 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.04493, allocations: 8 kB / 302.9 MB, free: 6.926 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004125/0.04535, allocations: 148.2 kB / 303 MB, free: 6.781 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.04536, allocations: 15.98 kB / 303 MB, free: 6.766 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000502/0.04586, allocations: 115.5 kB / 303.2 MB, free: 6.652 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.257e-05/0.0459, allocations: 20 kB / 303.2 MB, free: 6.633 MB / 282.7 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.0002469/0.04615, allocations: 218.4 kB / 303.4 MB, free: 6.41 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00021/0.04636, allocations: 198.8 kB / 303.6 MB, free: 6.215 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005786/0.04694, allocations: 396.8 kB / 304 MB, free: 5.82 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.04694, allocations: 8 kB / 304 MB, free: 5.812 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-06/0.04694, allocations: 0 / 304 MB, free: 5.812 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.04695, allocations: 3.984 kB / 304 MB, free: 5.809 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001396/0.04834, allocations: 1.356 MB / 305.3 MB, free: 4.402 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.04835, allocations: 0 / 305.3 MB, free: 4.402 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000223/0.04857, allocations: 104 kB / 305.4 MB, free: 4.301 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.04857, allocations: 7.984 kB / 305.5 MB, free: 4.293 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.297e-05/0.0486, allocations: 11.94 kB / 305.5 MB, free: 4.281 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.0486, allocations: 0 / 305.5 MB, free: 4.281 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.0486, allocations: 4 kB / 305.5 MB, free: 4.277 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000536/0.04914, allocations: 0.6456 MB / 306.1 MB, free: 3.594 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00031/0.04945, allocations: 274.6 kB / 306.4 MB, free: 3.324 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.04955, allocations: 23.92 kB / 306.4 MB, free: 3.301 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003708/0.04992, allocations: 99.84 kB / 306.5 MB, free: 3.203 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.05004, allocations: 83.86 kB / 306.6 MB, free: 3.121 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.349e-05/0.05006, allocations: 16 kB / 306.6 MB, free: 3.105 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007565/0.05082, allocations: 1.039 MB / 307.6 MB, free: 2.043 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.05082, allocations: 4 kB / 307.6 MB, free: 2.039 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004564/0.05128, allocations: 315.3 kB / 307.9 MB, free: 1.73 MB / 282.7 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.000908/0.05219, allocations: 458.5 kB / 308.4 MB, free: 1.445 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003423/0.05253, allocations: 275.8 kB / 308.7 MB, free: 1.172 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.05253, allocations: 7.859 kB / 308.7 MB, free: 1.164 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001481/0.05268, allocations: 120.2 kB / 308.8 MB, free: 1.043 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006928/0.05337, allocations: 306.3 kB / 309.1 MB, free: 0.75 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002847/0.05622, allocations: 2.811 MB / 311.9 MB, free: 13.88 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002661/0.05649, allocations: 375.1 kB / 312.3 MB, free: 13.48 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003479/0.05683, allocations: 178.5 kB / 312.4 MB, free: 13.3 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000602/0.05744, allocations: 422 kB / 312.9 MB, free: 12.89 MB / 298.7 MB Notification: Performance of SimCode: time 1.012e-06/0.05744, allocations: 0 / 312.9 MB, free: 12.89 MB / 298.7 MB Notification: Performance of Templates: time 0.02676/0.0842, allocations: 23.24 MB / 336.1 MB, free: 5.895 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.7940221251919866]