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.001308/0.001308, allocations: 117 kB / 18.49 MB, free: 4.566 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.001419/0.001419, allocations: 216.7 kB / 21.46 MB, free: 1.613 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.458/1.458, allocations: 230.4 MB / 254.7 MB, free: 15.04 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002827/0.002827, allocations: 59.89 kB / 373.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1088, allocations: 53.38 MB / 427.1 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.2086/0.3174, allocations: 5.871 MB / 432.9 MB, free: 7.727 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005264/0.3227, allocations: 2.752 MB / 435.7 MB, free: 7.191 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009782/0.3236, allocations: 30.59 kB / 435.7 MB, free: 7.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002028/0.3257, allocations: 0.7693 MB / 436.5 MB, free: 6.945 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001698/0.3274, allocations: 0.5571 MB / 437 MB, free: 6.719 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001582/0.3289, allocations: 0.5085 MB / 437.5 MB, free: 6.656 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002324/0.3313, allocations: 1.597 MB / 439.1 MB, free: 6.047 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007346/0.332, allocations: 439.5 kB / 439.6 MB, free: 5.789 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001075/0.3331, allocations: 0.629 MB / 440.2 MB, free: 5.508 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001058/0.3341, allocations: 0.7679 MB / 441 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002034/0.3343, allocations: 137.8 kB / 441.1 MB, free: 5.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005079/0.3348, allocations: 211 kB / 441.3 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006279/0.3355, allocations: 0.6445 MB / 442 MB, free: 4.863 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007991/0.3363, allocations: 0.9241 MB / 442.9 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003278/0.3395, allocations: 2.507 MB / 445.4 MB, free: 3.262 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3396, allocations: 0.6562 kB / 445.4 MB, free: 3.262 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3396, allocations: 0 / 445.4 MB, free: 3.262 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.654e-05/0.3396, allocations: 1.469 kB / 445.4 MB, free: 3.262 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.005827/0.3455, allocations: 2.652 MB / 448 MB, free: 1.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.3455, allocations: 9.969 kB / 448 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.994e-05/0.3455, allocations: 22.66 kB / 448.1 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001576/0.3457, allocations: 139.4 kB / 448.2 MB, free: 1.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004382/0.3461, allocations: 232.2 kB / 448.4 MB, free: 1.449 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002451/0.3486, allocations: 1.57 MB / 450 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.952e-05/0.3487, allocations: 98.52 kB / 450.1 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001266/0.3488, allocations: 89.3 kB / 450.2 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001916/0.3507, allocations: 1.102 MB / 451.3 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.074e-05/0.3508, allocations: 1.188 kB / 451.3 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001087/0.3509, allocations: 38.78 kB / 451.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.266e-05/0.3509, allocations: 22.55 kB / 451.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001476/0.3524, allocations: 0.7223 MB / 452.1 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008494/0.3609, allocations: 4.596 MB / 456.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001529/0.3624, allocations: 0.8975 MB / 457.6 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007832/0.3632, allocations: 359.7 kB / 457.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.343e-05/0.3632, allocations: 5.562 kB / 457.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.883e-05/0.3633, allocations: 51.78 kB / 458 MB, free: 11.53 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.184e-06/0.3633, allocations: 3.938 kB / 458 MB, free: 11.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002184/0.3655, allocations: 0.821 MB / 458.8 MB, free: 11.12 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002977/0.3658, allocations: 430.1 kB / 459.2 MB, free: 10.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004466/0.3702, allocations: 2.762 MB / 462 MB, free: 9.316 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001176/0.3703, allocations: 34.83 kB / 462 MB, free: 9.281 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000882/0.3712, allocations: 0.8997 MB / 462.9 MB, free: 8.5 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001834/0.3714, allocations: 167 kB / 463.1 MB, free: 8.355 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002366/0.3717, allocations: 127.5 kB / 463.2 MB, free: 8.277 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.3718, allocations: 327.6 kB / 463.5 MB, free: 7.957 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005845/0.3724, allocations: 259.2 kB / 463.8 MB, free: 7.832 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008409/0.3732, allocations: 0.5387 MB / 464.3 MB, free: 7.352 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/0.3744, allocations: 0.6196 MB / 464.9 MB, free: 6.895 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.693e-06/0.3744, allocations: 1.156 kB / 464.9 MB, free: 6.895 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002158/0.3765, allocations: 0.8568 MB / 465.8 MB, free: 6.461 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.3766, allocations: 7.938 kB / 465.8 MB, free: 6.461 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/0.3766, allocations: 11.56 kB / 465.8 MB, free: 6.457 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.04e-05/0.3766, allocations: 9.969 kB / 465.8 MB, free: 6.457 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006298/0.3773, allocations: 158.4 kB / 466 MB, free: 6.418 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.974e-05/0.3773, allocations: 13.19 kB / 466 MB, free: 6.414 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001467/0.3787, allocations: 160.4 kB / 466.1 MB, free: 6.328 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.765e-05/0.3788, allocations: 29.55 kB / 466.2 MB, free: 6.32 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.001084/0.3799, allocations: 0.5556 MB / 466.7 MB, free: 5.996 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004129/0.3803, allocations: 193 kB / 466.9 MB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001555/0.3819, allocations: 0.6977 MB / 467.6 MB, free: 5.52 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.3819, allocations: 5.562 kB / 467.6 MB, free: 5.52 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.3819, allocations: 3.938 kB / 467.6 MB, free: 5.516 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.857e-06/0.3819, allocations: 11.92 kB / 467.6 MB, free: 5.504 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003598/0.3855, allocations: 2.118 MB / 469.8 MB, free: 4.086 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.3855, allocations: 1.375 kB / 469.8 MB, free: 4.086 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005137/0.386, allocations: 109 kB / 469.9 MB, free: 4.059 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.063e-06/0.386, allocations: 6.844 kB / 469.9 MB, free: 4.055 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.794e-05/0.386, allocations: 8.125 kB / 469.9 MB, free: 4.051 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.06e-06/0.386, allocations: 6.688 kB / 469.9 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.552e-06/0.3861, allocations: 9.297 kB / 469.9 MB, free: 4.039 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00199/0.388, allocations: 1.047 MB / 470.9 MB, free: 3.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009166/0.389, allocations: 421.1 kB / 471.3 MB, free: 3.125 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002066/0.3892, allocations: 13.48 kB / 471.4 MB, free: 3.117 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001082/0.3902, allocations: 139.6 kB / 471.5 MB, free: 3.059 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003248/0.3906, allocations: 156.4 kB / 471.6 MB, free: 2.973 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.93e-05/0.3906, allocations: 12.38 kB / 471.7 MB, free: 2.973 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003247/0.3939, allocations: 1.973 MB / 473.6 MB, free: 1.102 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3939, allocations: 4 kB / 473.6 MB, free: 1.098 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0013/0.3952, allocations: 311.4 kB / 473.9 MB, free: 0.793 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.004307/0.3995, allocations: 1.985 MB / 475.9 MB, free: 14.97 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001419/0.4009, allocations: 0.5695 MB / 476.5 MB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.368e-06/0.4009, allocations: 7.938 kB / 476.5 MB, free: 14.39 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006831/0.4016, allocations: 328.3 kB / 476.8 MB, free: 14.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001926/0.4035, allocations: 315.3 kB / 477.1 MB, free: 13.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.031/0.4345, allocations: 17.27 MB / 494.4 MB, free: 12.11 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001349/0.4358, allocations: 1.437 MB / 495.8 MB, free: 10.64 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001/0.4368, allocations: 295.1 kB / 496.1 MB, free: 10.35 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00105/0.4379, allocations: 0.6984 MB / 496.8 MB, free: 9.652 MB / 398.1 MB Notification: Performance of SimCode: time 8.81e-07/0.4379, allocations: 0 / 496.8 MB, free: 9.652 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08163/0.5195, allocations: 39.16 MB / 0.5234 GB, free: 2.73 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.21, allocations: 8.062 kB / 0.5234 GB, free: 2.723 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/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_trunk_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: 22.010767495026812]