Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001585/0.001585, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001685/0.001685, allocations: 214 kB / 24.52 MB, free: 3.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.416/1.416, allocations: 230.6 MB / 258.3 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 51.92 kB / 378.5 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.2796, allocations: 53.36 MB / 431.9 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007331/0.2869, allocations: 5.21 MB / 437.1 MB, free: 1.422 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004694/0.2916, allocations: 2.601 MB / 439.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007438/0.2924, allocations: 27.81 kB / 439.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001829/0.2942, allocations: 0.7388 MB / 440.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001477/0.2957, allocations: 0.5672 MB / 441 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001187/0.2969, allocations: 0.5168 MB / 441.5 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001955/0.2988, allocations: 1.61 MB / 443.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006218/0.2994, allocations: 403.1 kB / 443.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007111/0.3002, allocations: 0.6345 MB / 444.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009025/0.3011, allocations: 0.7744 MB / 444.9 MB, free: 9.508 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000198/0.3013, allocations: 132 kB / 445.1 MB, free: 9.379 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000419/0.3017, allocations: 208 kB / 445.3 MB, free: 9.176 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000596/0.3023, allocations: 0.6582 MB / 445.9 MB, free: 8.516 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007214/0.303, allocations: 0.7069 MB / 446.6 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002535/0.3055, allocations: 2.533 MB / 449.2 MB, free: 5.262 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.3055, allocations: 4 kB / 449.2 MB, free: 5.258 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3055, allocations: 0 / 449.2 MB, free: 5.258 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.187e-05/0.3056, allocations: 0 / 449.2 MB, free: 5.258 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.004841/0.3104, allocations: 2.577 MB / 451.7 MB, free: 2.637 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/0.3105, allocations: 12.03 kB / 451.7 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.724e-05/0.3105, allocations: 22.19 kB / 451.8 MB, free: 2.602 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001779/0.3107, allocations: 139.5 kB / 451.9 MB, free: 2.457 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003864/0.3111, allocations: 235.4 kB / 452.1 MB, free: 2.227 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002445/0.3135, allocations: 1.502 MB / 453.6 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001613/0.3137, allocations: 151.2 kB / 453.8 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001352/0.3138, allocations: 84 kB / 453.9 MB, free: 432 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002166/0.316, allocations: 1.714 MB / 455.6 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.906e-05/0.316, allocations: 0 / 455.6 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-05/0.3161, allocations: 40 kB / 455.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.878e-05/0.3161, allocations: 20 kB / 455.6 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001323/0.3174, allocations: 0.7182 MB / 456.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006666/0.3241, allocations: 4.176 MB / 460.5 MB, free: 9.363 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001155/0.3252, allocations: 0.5182 MB / 461.1 MB, free: 8.832 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007416/0.326, allocations: 365.8 kB / 461.4 MB, free: 8.473 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.862e-05/0.326, allocations: 8 kB / 461.4 MB, free: 8.465 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.07e-05/0.3261, allocations: 42.56 kB / 461.5 MB, free: 8.414 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.435e-06/0.3261, allocations: 0 / 461.5 MB, free: 8.414 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001771/0.3279, allocations: 0.8249 MB / 462.3 MB, free: 7.582 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002242/0.3281, allocations: 427.2 kB / 462.7 MB, free: 7.066 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003565/0.3316, allocations: 2.771 MB / 465.5 MB, free: 4.254 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.174e-05/0.3317, allocations: 37.7 kB / 465.5 MB, free: 4.211 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007942/0.3325, allocations: 0.8914 MB / 466.4 MB, free: 3.312 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001416/0.3326, allocations: 166.6 kB / 466.6 MB, free: 3.148 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002278/0.3329, allocations: 122.3 kB / 466.7 MB, free: 3.023 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.333, allocations: 330 kB / 467 MB, free: 2.695 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005279/0.3335, allocations: 257.1 kB / 467.3 MB, free: 2.445 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009499/0.3345, allocations: 0.8839 MB / 468.1 MB, free: 1.355 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00105/0.3355, allocations: 0.6211 MB / 468.8 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.3356, allocations: 0 / 468.8 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001598/0.3371, allocations: 0.8582 MB / 469.6 MB, free: 15.79 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.3372, allocations: 12.06 kB / 469.6 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.3372, allocations: 8 kB / 469.6 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.57e-05/0.3372, allocations: 11.94 kB / 469.6 MB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005784/0.3378, allocations: 155.8 kB / 469.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.876e-05/0.3378, allocations: 11.94 kB / 469.8 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009267/0.3387, allocations: 159.4 kB / 470 MB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.965e-05/0.3388, allocations: 31.98 kB / 470 MB, free: 15.41 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.0007405/0.3395, allocations: 0.5522 MB / 470.6 MB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002523/0.3398, allocations: 186.8 kB / 470.7 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001369/0.3412, allocations: 0.7157 MB / 471.5 MB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.006e-05/0.3412, allocations: 7.938 kB / 471.5 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.3412, allocations: 0 / 471.5 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.3412, allocations: 3.984 kB / 471.5 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003204/0.3444, allocations: 1.887 MB / 473.3 MB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.3444, allocations: 0 / 473.3 MB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004931/0.3449, allocations: 115.8 kB / 473.5 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.3449, allocations: 0 / 473.5 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.183e-05/0.3449, allocations: 15.94 kB / 473.5 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.511e-06/0.3449, allocations: 7.984 kB / 473.5 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3449, allocations: 4.094 kB / 473.5 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001828/0.3468, allocations: 1.052 MB / 474.5 MB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007051/0.3475, allocations: 338.6 kB / 474.9 MB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001904/0.3477, allocations: 19.94 kB / 474.9 MB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000968/0.3486, allocations: 139.8 kB / 475 MB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003604/0.349, allocations: 155.7 kB / 475.2 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.535e-05/0.349, allocations: 20 kB / 475.2 MB, free: 10.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002689/0.3517, allocations: 1.964 MB / 477.2 MB, free: 8.102 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3517, allocations: 4 kB / 477.2 MB, free: 8.098 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008858/0.3526, allocations: 315.3 kB / 477.5 MB, free: 7.789 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.003939/0.3565, allocations: 2.006 MB / 479.5 MB, free: 5.961 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001231/0.3578, allocations: 0.5731 MB / 480.1 MB, free: 5.391 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.3578, allocations: 0 / 480.1 MB, free: 5.391 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006406/0.3584, allocations: 340.5 kB / 480.4 MB, free: 5.059 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001527/0.3599, allocations: 333 kB / 480.7 MB, free: 4.742 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02612/0.3861, allocations: 17.25 MB / 498 MB, free: 3.109 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001043/0.3871, allocations: 0.8573 MB / 498.8 MB, free: 2.211 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009079/0.388, allocations: 291.1 kB / 499.1 MB, free: 1.922 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009696/0.389, allocations: 0.7023 MB / 499.8 MB, free: 1.219 MB / 398.1 MB Notification: Performance of SimCode: time 1.132e-06/0.389, allocations: 0 / 499.8 MB, free: 1.219 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08029/0.4693, allocations: 41.18 MB / 0.5283 GB, free: 8.336 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.44/14.91, allocations: 3.859 kB / 0.5283 GB, free: 8.332 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 656] Reference file matches [Calling sys.exit(0), Time elapsed: 24.524935663910583]