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.0008172/0.0008172, allocations: 84 kB / 21.43 MB, free: 3.129 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.003242/0.003242, allocations: 143.4 kB / 24.68 MB, free: 8.906 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.8168/0.8168, allocations: 173.4 MB / 201.2 MB, free: 9.465 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.1..v|battery2.capacitor.2..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.1..v|battery2.capacitor.2..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.313e-06/1.313e-06, allocations: 3.938 kB / 319.7 MB, free: 5.887 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.657e-05/1.789e-05, allocations: 10.16 kB / 319.7 MB, free: 5.875 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.004273/0.004291, allocations: 5.156 MB / 324.8 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002161/0.006452, allocations: 2.454 MB / 327.3 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002552/0.006707, allocations: 27.81 kB / 327.3 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009575/0.007665, allocations: 0.7463 MB / 328.1 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000524/0.008189, allocations: 0.5396 MB / 328.6 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005677/0.008757, allocations: 0.5163 MB / 329.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000961/0.009717, allocations: 1.644 MB / 330.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003867/0.0101, allocations: 375 kB / 331.1 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008147/0.01092, allocations: 0.8849 MB / 332 MB, free: 9.465 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004814/0.0114, allocations: 0.6273 MB / 332.6 MB, free: 8.836 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000106/0.01151, allocations: 132 kB / 332.8 MB, free: 8.707 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002179/0.01172, allocations: 211.8 kB / 333 MB, free: 8.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000321/0.01205, allocations: 0.6543 MB / 333.6 MB, free: 7.844 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003302/0.01238, allocations: 0.5726 MB / 334.2 MB, free: 7.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001369/0.01374, allocations: 2.449 MB / 336.7 MB, free: 4.812 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.01375, allocations: 8 kB / 336.7 MB, free: 4.805 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.01375, allocations: 0 / 336.7 MB, free: 4.805 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.42e-05/0.01376, allocations: 0 / 336.7 MB, free: 4.805 MB / 298.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.002811/0.01657, allocations: 2.537 MB / 339.2 MB, free: 2.223 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.01661, allocations: 12.92 kB / 339.2 MB, free: 2.211 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000208/0.01682, allocations: 235.4 kB / 339.4 MB, free: 1.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001407/0.01822, allocations: 1.482 MB / 340.9 MB, free: 480 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.077e-05/0.01831, allocations: 143.7 kB / 341.1 MB, free: 316 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.992e-05/0.01839, allocations: 84.38 kB / 341.2 MB, free: 232 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001199/0.01959, allocations: 1.715 MB / 342.9 MB, free: 14.29 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.01961, allocations: 7.938 kB / 342.9 MB, free: 14.28 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.543e-05/0.01967, allocations: 40 kB / 342.9 MB, free: 14.24 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.01968, allocations: 20 kB / 342.9 MB, free: 14.22 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008011/0.02048, allocations: 0.7143 MB / 343.6 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003708/0.02419, allocations: 4.038 MB / 347.7 MB, free: 9.316 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006853/0.02487, allocations: 0.534 MB / 348.2 MB, free: 8.773 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004337/0.02531, allocations: 358 kB / 348.6 MB, free: 8.418 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.802e-05/0.02534, allocations: 8 kB / 348.6 MB, free: 8.41 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.349e-05/0.02537, allocations: 38.56 kB / 348.6 MB, free: 8.363 MB / 314.7 MB Notification: Performance of pre-optimization done (n=44): time 1.804e-06/0.02537, allocations: 0 / 348.6 MB, free: 8.363 MB / 314.7 MB Notification: Performance of matching and sorting (n=44): time 0.0009787/0.02635, allocations: 0.821 MB / 349.4 MB, free: 7.535 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/0.02647, allocations: 423.2 kB / 349.9 MB, free: 7.023 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00222/0.02869, allocations: 2.698 MB / 352.5 MB, free: 4.277 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.458e-05/0.02873, allocations: 37.7 kB / 352.6 MB, free: 4.234 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007296/0.02946, allocations: 0.887 MB / 353.5 MB, free: 3.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.609e-05/0.02954, allocations: 170.5 kB / 353.6 MB, free: 3.172 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000124/0.02967, allocations: 122.3 kB / 353.8 MB, free: 3.047 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.636e-05/0.02974, allocations: 333.9 kB / 354.1 MB, free: 2.715 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003025/0.03005, allocations: 253.1 kB / 354.3 MB, free: 2.469 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005145/0.03056, allocations: 0.8992 MB / 355.2 MB, free: 1.363 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005915/0.03115, allocations: 0.6103 MB / 355.8 MB, free: 0.6719 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.03116, allocations: 12 kB / 355.9 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008671/0.03202, allocations: 0.8476 MB / 356.7 MB, free: 15.8 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.03204, allocations: 12.53 kB / 356.7 MB, free: 15.79 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.03205, allocations: 8 kB / 356.7 MB, free: 15.79 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.03207, allocations: 12 kB / 356.7 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003018/0.03237, allocations: 155.8 kB / 356.9 MB, free: 15.62 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/0.03238, allocations: 15.92 kB / 356.9 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004598/0.03284, allocations: 159.4 kB / 357.1 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.564e-05/0.03288, allocations: 24 kB / 357.1 MB, free: 15.43 MB / 330.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.0004702/0.03335, allocations: 0.5638 MB / 357.6 MB, free: 14.85 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/0.03349, allocations: 182.8 kB / 357.8 MB, free: 14.67 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007705/0.03426, allocations: 0.6842 MB / 358.5 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.03427, allocations: 4 kB / 358.5 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.03427, allocations: 0 / 358.5 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.03428, allocations: 3.984 kB / 358.5 MB, free: 13.97 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002086/0.03636, allocations: 1.787 MB / 360.3 MB, free: 12.14 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.03637, allocations: 0 / 360.3 MB, free: 12.14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002462/0.03661, allocations: 103.9 kB / 360.4 MB, free: 12.04 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.03662, allocations: 7.938 kB / 360.4 MB, free: 12.03 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.484e-05/0.03664, allocations: 12 kB / 360.4 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.03665, allocations: 4 kB / 360.4 MB, free: 12.01 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.03665, allocations: 3.984 kB / 360.4 MB, free: 12.01 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009953/0.03765, allocations: 1.044 MB / 361.5 MB, free: 10.93 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003875/0.03803, allocations: 342.5 kB / 361.8 MB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.228e-05/0.03813, allocations: 12 kB / 361.8 MB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004588/0.03858, allocations: 139.8 kB / 362 MB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000188/0.03877, allocations: 151.8 kB / 362.1 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.339e-05/0.0388, allocations: 20 kB / 362.1 MB, free: 10.27 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00146/0.04025, allocations: 1.907 MB / 364 MB, free: 8.344 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.04025, allocations: 0 / 364 MB, free: 8.344 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000519/0.04077, allocations: 323.4 kB / 364.3 MB, free: 8.027 MB / 330.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.0007752/0.04155, allocations: 0.5019 MB / 364.8 MB, free: 7.73 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006904/0.04224, allocations: 0.5733 MB / 365.4 MB, free: 7.16 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.04224, allocations: 4 kB / 365.4 MB, free: 7.156 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003633/0.04261, allocations: 331.5 kB / 365.7 MB, free: 6.832 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007042/0.04331, allocations: 298.3 kB / 366 MB, free: 6.547 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003317/0.04663, allocations: 3.465 MB / 369.5 MB, free: 3.027 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005358/0.04716, allocations: 0.8373 MB / 370.3 MB, free: 2.16 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002258/0.04739, allocations: 108.5 kB / 370.4 MB, free: 2.055 MB / 330.7 MB Notification: Performance of SimCode: time 4.51e-07/0.04739, allocations: 0 / 370.4 MB, free: 2.055 MB / 330.7 MB Notification: Performance of Templates: time 0.01799/0.06537, allocations: 23.27 MB / 393.7 MB, free: 10.84 MB / 362.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 6.32313622161746]