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.001071/0.001071, allocations: 76.08 kB / 20.67 MB, free: 3.891 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.001113/0.001113, allocations: 153.1 kB / 23.93 MB, free: 0.6328 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.9413/0.9413, allocations: 173.4 MB / 200.4 MB, free: 9.426 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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 0 / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.789e-05/1.97e-05, allocations: 2.281 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.005322/0.005342, allocations: 5.159 MB / 323.6 MB, free: 1.16 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003256/0.008598, allocations: 2.45 MB / 326 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000442/0.00904, allocations: 31.81 kB / 326.1 MB, free: 14.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001496/0.01054, allocations: 0.7425 MB / 326.8 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007598/0.0113, allocations: 0.5357 MB / 327.3 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008414/0.01214, allocations: 0.5184 MB / 327.9 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001314/0.01345, allocations: 1.636 MB / 329.5 MB, free: 11.22 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004564/0.01391, allocations: 383 kB / 329.9 MB, free: 10.83 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007498/0.01466, allocations: 0.8887 MB / 330.8 MB, free: 9.938 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005553/0.01521, allocations: 0.6273 MB / 331.4 MB, free: 9.309 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001188/0.01533, allocations: 132 kB / 331.5 MB, free: 9.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002881/0.01562, allocations: 207.8 kB / 331.7 MB, free: 8.977 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003951/0.01601, allocations: 0.6504 MB / 332.4 MB, free: 8.324 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004126/0.01643, allocations: 0.5726 MB / 332.9 MB, free: 7.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001882/0.01831, allocations: 2.465 MB / 335.4 MB, free: 5.277 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.01831, allocations: 3.984 kB / 335.4 MB, free: 5.273 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.01832, allocations: 4 kB / 335.4 MB, free: 5.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.949e-05/0.01833, allocations: 0 / 335.4 MB, free: 5.27 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.002955/0.02129, allocations: 2.526 MB / 337.9 MB, free: 2.699 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.02133, allocations: 12.92 kB / 338 MB, free: 2.688 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001222/0.02145, allocations: 139.5 kB / 338.1 MB, free: 2.543 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002386/0.02169, allocations: 235.4 kB / 338.3 MB, free: 2.312 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001569/0.02326, allocations: 1.486 MB / 339.8 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001042/0.02337, allocations: 147.7 kB / 340 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.452e-05/0.02345, allocations: 88.33 kB / 340 MB, free: 0.5469 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001653/0.0251, allocations: 1.714 MB / 341.8 MB, free: 14.61 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.02512, allocations: 4 kB / 341.8 MB, free: 14.61 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.777e-05/0.02518, allocations: 40 kB / 341.8 MB, free: 14.57 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.339e-05/0.02519, allocations: 20 kB / 341.8 MB, free: 14.55 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009022/0.02609, allocations: 0.7182 MB / 342.5 MB, free: 13.82 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0045/0.03059, allocations: 4.162 MB / 346.7 MB, free: 9.496 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008449/0.03144, allocations: 0.53 MB / 347.2 MB, free: 8.957 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005288/0.03197, allocations: 354 kB / 347.6 MB, free: 8.605 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.606e-05/0.03202, allocations: 8 kB / 347.6 MB, free: 8.598 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.357e-05/0.03207, allocations: 46.5 kB / 347.6 MB, free: 8.543 MB / 314.7 MB Notification: Performance of pre-optimization done (n=44): time 3.046e-06/0.03207, allocations: 0 / 347.6 MB, free: 8.543 MB / 314.7 MB Notification: Performance of matching and sorting (n=44): time 0.001406/0.03348, allocations: 0.821 MB / 348.4 MB, free: 7.715 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001378/0.03361, allocations: 423.2 kB / 348.9 MB, free: 7.203 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002491/0.0361, allocations: 2.75 MB / 351.6 MB, free: 4.41 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.9e-05/0.03615, allocations: 41.64 kB / 351.6 MB, free: 4.363 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005133/0.03667, allocations: 0.8834 MB / 352.5 MB, free: 3.473 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001126/0.03678, allocations: 174.5 kB / 352.7 MB, free: 3.301 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000167/0.03695, allocations: 122.3 kB / 352.8 MB, free: 3.176 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.03707, allocations: 333.9 kB / 353.1 MB, free: 2.844 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004888/0.03756, allocations: 257.1 kB / 353.4 MB, free: 2.594 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000793/0.03835, allocations: 0.8917 MB / 354.3 MB, free: 1.492 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006695/0.03902, allocations: 0.6064 MB / 354.9 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.03902, allocations: 4 kB / 354.9 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001348/0.04037, allocations: 0.8671 MB / 355.8 MB, free: 15.93 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.434e-05/0.0404, allocations: 11.41 kB / 355.8 MB, free: 15.92 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.04041, allocations: 7.984 kB / 355.8 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.04043, allocations: 12 kB / 355.8 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003429/0.04077, allocations: 163.7 kB / 356 MB, free: 15.74 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/0.04078, allocations: 8 kB / 356 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005838/0.04137, allocations: 167.3 kB / 356.1 MB, free: 15.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.725e-05/0.04141, allocations: 24 kB / 356.2 MB, free: 15.54 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.0005887/0.04199, allocations: 0.5599 MB / 356.7 MB, free: 14.97 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001534/0.04215, allocations: 186.8 kB / 356.9 MB, free: 14.79 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008462/0.04299, allocations: 0.6923 MB / 357.6 MB, free: 14.09 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.043, allocations: 4 kB / 357.6 MB, free: 14.08 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.043, allocations: 0 / 357.6 MB, free: 14.08 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.04301, allocations: 0 / 357.6 MB, free: 14.08 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002153/0.04516, allocations: 1.898 MB / 359.5 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.04516, allocations: 4 kB / 359.5 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002743/0.04544, allocations: 99.88 kB / 359.6 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.04544, allocations: 0 / 359.6 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.818e-05/0.04547, allocations: 19.98 kB / 359.6 MB, free: 12 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.04547, allocations: 0 / 359.6 MB, free: 12 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.237e-06/0.04548, allocations: 4 kB / 359.6 MB, free: 12 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.04659, allocations: 1.06 MB / 360.7 MB, free: 10.9 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004532/0.04705, allocations: 334.7 kB / 361 MB, free: 10.57 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.04715, allocations: 12 kB / 361 MB, free: 10.56 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005189/0.04767, allocations: 139.8 kB / 361.1 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002178/0.04789, allocations: 163.6 kB / 361.3 MB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.737e-05/0.04792, allocations: 24.06 kB / 361.3 MB, free: 10.24 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002/0.04992, allocations: 1.947 MB / 363.3 MB, free: 8.273 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.04992, allocations: 0 / 363.3 MB, free: 8.273 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006293/0.05055, allocations: 315.4 kB / 363.6 MB, free: 7.965 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.002065/0.05261, allocations: 2.001 MB / 365.6 MB, free: 6.141 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008201/0.05343, allocations: 0.5697 MB / 366.2 MB, free: 5.574 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.05343, allocations: 4 kB / 366.2 MB, free: 5.57 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003963/0.05383, allocations: 328.8 kB / 366.5 MB, free: 5.25 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008468/0.05468, allocations: 312.8 kB / 366.8 MB, free: 4.945 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0225/0.07717, allocations: 17.3 MB / 384.1 MB, free: 3.258 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006514/0.07783, allocations: 0.8453 MB / 384.9 MB, free: 2.379 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0007107/0.07854, allocations: 291.1 kB / 385.2 MB, free: 2.09 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006604/0.0792, allocations: 0.6995 MB / 385.9 MB, free: 1.391 MB / 346.7 MB Notification: Performance of SimCode: time 2.394e-06/0.0792, allocations: 0 / 385.9 MB, free: 1.391 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05964/0.1388, allocations: 41.69 MB / 427.6 MB, free: 7.969 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.03/8.169, allocations: 6.453 kB / 427.6 MB, free: 7.969 MB / 394.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 52.5] 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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 12.314597426913679]