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.001602/0.001602, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001475/0.001475, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.442/1.442, allocations: 230.6 MB / 254.1 MB, free: 15.1 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 55.92 kB / 373 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1096, allocations: 53.34 MB / 426.3 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.224/0.3336, allocations: 5.855 MB / 432.2 MB, free: 7.734 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004349/0.3379, allocations: 2.762 MB / 434.9 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006114/0.3385, allocations: 29.44 kB / 435 MB, free: 7.414 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001551/0.3401, allocations: 0.7666 MB / 435.7 MB, free: 7.184 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001581/0.3417, allocations: 0.5599 MB / 436.3 MB, free: 6.953 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00162/0.3433, allocations: 0.5118 MB / 436.8 MB, free: 6.887 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002714/0.346, allocations: 1.595 MB / 438.4 MB, free: 6.281 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006909/0.3467, allocations: 439.3 kB / 438.8 MB, free: 6.023 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001116/0.3478, allocations: 0.6322 MB / 439.5 MB, free: 5.738 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001237/0.3491, allocations: 0.7724 MB / 440.2 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002592/0.3493, allocations: 132.8 kB / 440.4 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006234/0.3499, allocations: 204.5 kB / 440.6 MB, free: 5.391 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005883/0.3505, allocations: 0.6523 MB / 441.2 MB, free: 5.094 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008012/0.3513, allocations: 0.9204 MB / 442.1 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003379/0.3547, allocations: 2.506 MB / 444.6 MB, free: 3.496 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3547, allocations: 1.438 kB / 444.6 MB, free: 3.496 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3547, allocations: 4 kB / 444.6 MB, free: 3.492 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.073e-05/0.3548, allocations: 0 / 444.6 MB, free: 3.492 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.006081/0.3609, allocations: 2.65 MB / 447.3 MB, free: 1.902 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.3609, allocations: 8.75 kB / 447.3 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001768/0.3611, allocations: 138.7 kB / 447.4 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004605/0.3615, allocations: 231.8 kB / 447.7 MB, free: 1.688 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00257/0.3641, allocations: 1.571 MB / 449.2 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001053/0.3642, allocations: 105 kB / 449.3 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001326/0.3644, allocations: 86.39 kB / 449.4 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001844/0.3662, allocations: 1.101 MB / 450.5 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/0.3662, allocations: 1.156 kB / 450.5 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.407e-05/0.3663, allocations: 42.78 kB / 450.6 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.483e-05/0.3663, allocations: 24.25 kB / 450.6 MB, free: 112 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001409/0.3677, allocations: 0.7204 MB / 451.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008062/0.3758, allocations: 4.591 MB / 455.9 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001422/0.3772, allocations: 0.9005 MB / 456.8 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007929/0.378, allocations: 355.6 kB / 457.1 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.234e-05/0.3781, allocations: 9.703 kB / 457.2 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.322e-05/0.3781, allocations: 48.16 kB / 457.2 MB, free: 11.8 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.274e-06/0.3781, allocations: 0 / 457.2 MB, free: 11.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002153/0.3803, allocations: 0.825 MB / 458 MB, free: 11.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002583/0.3805, allocations: 433.7 kB / 458.4 MB, free: 10.87 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004401/0.3849, allocations: 2.763 MB / 461.2 MB, free: 9.578 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000105/0.385, allocations: 34.17 kB / 461.2 MB, free: 9.543 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008586/0.3859, allocations: 0.8963 MB / 462.1 MB, free: 8.766 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001639/0.3861, allocations: 157.8 kB / 462.3 MB, free: 8.629 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002325/0.3863, allocations: 131.9 kB / 462.4 MB, free: 8.547 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.3865, allocations: 328.6 kB / 462.7 MB, free: 8.227 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005797/0.387, allocations: 254.5 kB / 463 MB, free: 8.105 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008095/0.3878, allocations: 0.5347 MB / 463.5 MB, free: 7.629 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/0.3889, allocations: 0.6222 MB / 464.1 MB, free: 7.172 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/0.389, allocations: 2.375 kB / 464.2 MB, free: 7.172 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002064/0.391, allocations: 0.868 MB / 465 MB, free: 6.727 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.391, allocations: 7.094 kB / 465 MB, free: 6.727 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.3911, allocations: 6 kB / 465 MB, free: 6.727 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.702e-05/0.3911, allocations: 9.781 kB / 465 MB, free: 6.727 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000609/0.3917, allocations: 162.9 kB / 465.2 MB, free: 6.684 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.17e-05/0.3917, allocations: 15.8 kB / 465.2 MB, free: 6.676 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001358/0.3931, allocations: 157.3 kB / 465.4 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.987e-05/0.3931, allocations: 29.56 kB / 465.4 MB, free: 6.586 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.001121/0.3942, allocations: 0.558 MB / 466 MB, free: 6.262 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004045/0.3947, allocations: 189.8 kB / 466.1 MB, free: 6.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001511/0.3962, allocations: 0.6975 MB / 466.8 MB, free: 5.793 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/0.3962, allocations: 8.219 kB / 466.8 MB, free: 5.789 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.3962, allocations: 2.031 kB / 466.8 MB, free: 5.789 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.3962, allocations: 3.984 kB / 466.9 MB, free: 5.785 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003731/0.3999, allocations: 2.13 MB / 469 MB, free: 4.355 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.3999, allocations: 1.781 kB / 469 MB, free: 4.355 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004961/0.4004, allocations: 108.9 kB / 469.1 MB, free: 4.328 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.363e-06/0.4004, allocations: 2.625 kB / 469.1 MB, free: 4.328 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.129e-05/0.4005, allocations: 16.58 kB / 469.1 MB, free: 4.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.4005, allocations: 2.375 kB / 469.1 MB, free: 4.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.4005, allocations: 2.125 kB / 469.1 MB, free: 4.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002005/0.4025, allocations: 1.057 MB / 470.2 MB, free: 3.699 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008362/0.4033, allocations: 416.9 kB / 470.6 MB, free: 3.398 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002113/0.4035, allocations: 17.77 kB / 470.6 MB, free: 3.387 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001097/0.4046, allocations: 139.9 kB / 470.7 MB, free: 3.328 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003276/0.405, allocations: 155.6 kB / 470.9 MB, free: 3.242 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.906e-05/0.405, allocations: 16.62 kB / 470.9 MB, free: 3.238 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003224/0.4082, allocations: 1.962 MB / 472.9 MB, free: 1.426 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4082, allocations: 0 / 472.9 MB, free: 1.426 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00122/0.4094, allocations: 315.4 kB / 473.2 MB, free: 1.117 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.004248/0.4137, allocations: 1.996 MB / 475.2 MB, free: 15.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001376/0.4151, allocations: 0.5609 MB / 475.7 MB, free: 14.74 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/0.4151, allocations: 5.125 kB / 475.7 MB, free: 14.74 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006857/0.4158, allocations: 339.6 kB / 476.1 MB, free: 14.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001702/0.4175, allocations: 311.9 kB / 476.4 MB, free: 14.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02726/0.4447, allocations: 17.25 MB / 493.6 MB, free: 12.46 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001232/0.446, allocations: 1.441 MB / 495.1 MB, free: 10.99 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008978/0.4469, allocations: 295.1 kB / 495.4 MB, free: 10.7 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009645/0.4478, allocations: 0.6984 MB / 496 MB, free: 10 MB / 398.1 MB Notification: Performance of SimCode: time 1.263e-06/0.4478, allocations: 0 / 496 MB, free: 10 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08616/0.534, allocations: 39.13 MB / 0.5226 GB, free: 3.141 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.92, allocations: 0 / 0.5226 GB, free: 3.141 MB / 430.1 MB " [Timeout remaining time 648] (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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 18.132901864824817]