Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001747/0.001747, allocations: 118.6 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002024/0.002024, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 230.2 MB / 254.5 MB, free: 15.26 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001807/0.001807, allocations: 67.89 kB / 373.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1084, allocations: 53.33 MB / 426.7 MB, free: 5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.2277/0.3362, allocations: 5.865 MB / 432.5 MB, free: 7.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004276/0.3405, allocations: 2.751 MB / 435.3 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006426/0.3411, allocations: 28.12 kB / 435.3 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001682/0.3428, allocations: 0.7643 MB / 436.1 MB, free: 7.371 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001328/0.3441, allocations: 0.5605 MB / 436.6 MB, free: 7.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001243/0.3454, allocations: 0.504 MB / 437.1 MB, free: 7.113 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001959/0.3473, allocations: 1.595 MB / 438.7 MB, free: 6.531 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006102/0.3479, allocations: 441.7 kB / 439.2 MB, free: 6.273 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008591/0.3488, allocations: 0.6246 MB / 439.8 MB, free: 5.984 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009602/0.3498, allocations: 0.7713 MB / 440.6 MB, free: 5.656 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002026/0.35, allocations: 133.5 kB / 440.7 MB, free: 5.656 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004722/0.3504, allocations: 208.1 kB / 440.9 MB, free: 5.633 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006155/0.351, allocations: 0.643 MB / 441.5 MB, free: 5.344 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007618/0.3518, allocations: 0.9246 MB / 442.5 MB, free: 4.707 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003106/0.3549, allocations: 2.502 MB / 445 MB, free: 3.746 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.3549, allocations: 0.5625 kB / 445 MB, free: 3.746 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3549, allocations: 5.062 kB / 445 MB, free: 3.742 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.811e-05/0.355, allocations: 0 / 445 MB, free: 3.742 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.005752/0.3607, allocations: 2.655 MB / 447.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/0.3608, allocations: 10.69 kB / 447.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000176/0.361, allocations: 139.7 kB / 447.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004627/0.3614, allocations: 232.2 kB / 448 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002797/0.3642, allocations: 1.577 MB / 449.6 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.3643, allocations: 93.06 kB / 449.7 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001279/0.3644, allocations: 84.73 kB / 449.7 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001837/0.3663, allocations: 1.104 MB / 450.9 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.323e-05/0.3663, allocations: 1.188 kB / 450.9 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.998e-05/0.3664, allocations: 38.22 kB / 450.9 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.247e-05/0.3664, allocations: 26.56 kB / 450.9 MB, free: 368 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/0.3677, allocations: 0.717 MB / 451.6 MB, free: 120 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00805/0.3758, allocations: 4.596 MB / 456.2 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001375/0.3771, allocations: 0.9064 MB / 457.1 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007716/0.3779, allocations: 355.2 kB / 457.5 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.096e-05/0.378, allocations: 5.656 kB / 457.5 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.951e-05/0.378, allocations: 55.8 kB / 457.5 MB, free: 12.05 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.765e-06/0.378, allocations: 0 / 457.5 MB, free: 12.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002346/0.3804, allocations: 0.8243 MB / 458.4 MB, free: 11.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003109/0.3807, allocations: 426.3 kB / 458.8 MB, free: 11.13 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004983/0.3857, allocations: 2.763 MB / 461.5 MB, free: 9.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001488/0.3858, allocations: 38.36 kB / 461.6 MB, free: 9.801 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009682/0.3868, allocations: 0.8961 MB / 462.5 MB, free: 9.023 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002084/0.387, allocations: 162 kB / 462.6 MB, free: 8.883 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002677/0.3873, allocations: 124.3 kB / 462.8 MB, free: 8.809 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.3874, allocations: 331.8 kB / 463.1 MB, free: 8.484 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005782/0.388, allocations: 259.9 kB / 463.3 MB, free: 8.359 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000797/0.3888, allocations: 0.5333 MB / 463.9 MB, free: 7.883 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00107/0.3899, allocations: 0.6188 MB / 464.5 MB, free: 7.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.173e-06/0.3899, allocations: 2.781 kB / 464.5 MB, free: 7.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002034/0.3919, allocations: 0.8655 MB / 465.4 MB, free: 6.988 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.3919, allocations: 7.688 kB / 465.4 MB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.3919, allocations: 9.125 kB / 465.4 MB, free: 6.984 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.267e-05/0.392, allocations: 8.25 kB / 465.4 MB, free: 6.984 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005923/0.3926, allocations: 159.7 kB / 465.5 MB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.75e-05/0.3926, allocations: 12.44 kB / 465.5 MB, free: 6.941 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001335/0.3939, allocations: 164.5 kB / 465.7 MB, free: 6.852 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.459e-05/0.394, allocations: 25.69 kB / 465.7 MB, free: 6.848 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.001254/0.3952, allocations: 0.556 MB / 466.3 MB, free: 6.523 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000435/0.3957, allocations: 189.4 kB / 466.5 MB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001555/0.3972, allocations: 0.6959 MB / 467.2 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.236e-06/0.3972, allocations: 6.969 kB / 467.2 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.3972, allocations: 0 / 467.2 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.944e-06/0.3972, allocations: 3.938 kB / 467.2 MB, free: 6.051 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003857/0.4011, allocations: 2.141 MB / 469.3 MB, free: 4.613 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.87e-06/0.4011, allocations: 1.125 kB / 469.3 MB, free: 4.613 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004847/0.4016, allocations: 108 kB / 469.4 MB, free: 4.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.066e-06/0.4016, allocations: 3.375 kB / 469.4 MB, free: 4.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.78e-05/0.4016, allocations: 15.81 kB / 469.4 MB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.531e-06/0.4016, allocations: 3.25 kB / 469.5 MB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.4016, allocations: 1.281 kB / 469.5 MB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001867/0.4035, allocations: 1.054 MB / 470.5 MB, free: 3.957 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009418/0.4044, allocations: 424.9 kB / 470.9 MB, free: 3.648 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001905/0.4046, allocations: 9.5 kB / 470.9 MB, free: 3.645 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009568/0.4056, allocations: 147.6 kB / 471.1 MB, free: 3.578 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003188/0.4059, allocations: 148.5 kB / 471.2 MB, free: 3.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.138e-05/0.406, allocations: 16.17 kB / 471.2 MB, free: 3.496 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003206/0.4092, allocations: 1.968 MB / 473.2 MB, free: 1.703 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4092, allocations: 0 / 473.2 MB, free: 1.703 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001147/0.4103, allocations: 315.3 kB / 473.5 MB, free: 1.395 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.003827/0.4141, allocations: 1.979 MB / 475.5 MB, free: 15.59 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001325/0.4155, allocations: 0.5685 MB / 476.1 MB, free: 15.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/0.4155, allocations: 5.25 kB / 476.1 MB, free: 15.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007138/0.4162, allocations: 335.6 kB / 476.4 MB, free: 14.69 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002002/0.4182, allocations: 304 kB / 476.7 MB, free: 14.39 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0337/0.4519, allocations: 17.26 MB / 493.9 MB, free: 12.75 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001725/0.4536, allocations: 1.441 MB / 495.4 MB, free: 11.28 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001283/0.4549, allocations: 299.1 kB / 495.7 MB, free: 10.98 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001426/0.4563, allocations: 0.7023 MB / 496.4 MB, free: 10.28 MB / 398.1 MB Notification: Performance of SimCode: time 2.103e-06/0.4563, allocations: 0 / 496.4 MB, free: 10.28 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09355/0.5499, allocations: 39.11 MB / 0.5229 GB, free: 3.387 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/12.11, allocations: 14.08 kB / 0.523 GB, free: 3.379 MB / 430.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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.873802427202463]