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.001486/0.001486, allocations: 118.4 kB / 18.49 MB, free: 4.535 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.001783/0.001783, allocations: 211.1 kB / 21.46 MB, free: 1.582 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.46/1.46, allocations: 230.6 MB / 254.8 MB, free: 15.08 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.001496/0.001496, allocations: 59.92 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1076, allocations: 53.32 MB / 427 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.2166/0.3242, allocations: 5.868 MB / 432.9 MB, free: 7.734 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003899/0.3281, allocations: 2.757 MB / 435.6 MB, free: 7.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005071/0.3286, allocations: 28.34 kB / 435.7 MB, free: 7.398 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001477/0.3301, allocations: 0.7692 MB / 436.4 MB, free: 7.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001173/0.3313, allocations: 0.5582 MB / 437 MB, free: 6.938 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001315/0.3326, allocations: 0.5078 MB / 437.5 MB, free: 6.867 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002065/0.3347, allocations: 1.59 MB / 439.1 MB, free: 6.266 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006247/0.3353, allocations: 442.9 kB / 439.5 MB, free: 6.004 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008784/0.3362, allocations: 0.6296 MB / 440.2 MB, free: 5.723 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008891/0.3371, allocations: 0.7717 MB / 440.9 MB, free: 5.395 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001937/0.3373, allocations: 132.5 kB / 441.1 MB, free: 5.395 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004419/0.3377, allocations: 217 kB / 441.3 MB, free: 5.363 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005169/0.3382, allocations: 0.6397 MB / 441.9 MB, free: 5.078 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000731/0.339, allocations: 0.9235 MB / 442.8 MB, free: 4.441 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003273/0.3422, allocations: 2.511 MB / 445.3 MB, free: 3.473 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3422, allocations: 1.406 kB / 445.3 MB, free: 3.473 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.3422, allocations: 5.875 kB / 445.3 MB, free: 3.469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.993e-05/0.3423, allocations: 0 / 445.3 MB, free: 3.469 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.005853/0.3481, allocations: 2.649 MB / 448 MB, free: 1.879 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.3482, allocations: 10.09 kB / 448 MB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.322e-05/0.3482, allocations: 22.91 kB / 448 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001543/0.3484, allocations: 143.5 kB / 448.2 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003761/0.3488, allocations: 231.9 kB / 448.4 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002398/0.3512, allocations: 1.565 MB / 450 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001088/0.3513, allocations: 97.23 kB / 450.1 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001281/0.3514, allocations: 83.28 kB / 450.1 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001881/0.3533, allocations: 1.1 MB / 451.2 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.351e-05/0.3533, allocations: 13.64 kB / 451.2 MB, free: 120 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.879e-05/0.3534, allocations: 42.75 kB / 451.3 MB, free: 88 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.418e-05/0.3534, allocations: 21.03 kB / 451.3 MB, free: 88 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001421/0.3548, allocations: 0.7198 MB / 452 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007592/0.3624, allocations: 4.599 MB / 456.6 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001429/0.3639, allocations: 0.8912 MB / 457.5 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008128/0.3647, allocations: 359.7 kB / 457.9 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.304e-05/0.3647, allocations: 5.469 kB / 457.9 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.474e-05/0.3648, allocations: 45.44 kB / 457.9 MB, free: 11.78 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 3.186e-06/0.3648, allocations: 5.062 kB / 457.9 MB, free: 11.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002138/0.3669, allocations: 0.8364 MB / 458.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002873/0.3672, allocations: 421.3 kB / 459.2 MB, free: 10.85 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004521/0.3717, allocations: 2.759 MB / 461.9 MB, free: 9.562 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001037/0.3718, allocations: 39.3 kB / 462 MB, free: 9.523 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009186/0.3727, allocations: 0.8917 MB / 462.9 MB, free: 8.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001725/0.3729, allocations: 166.2 kB / 463 MB, free: 8.605 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002452/0.3732, allocations: 124.1 kB / 463.1 MB, free: 8.531 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001731/0.3733, allocations: 336.4 kB / 463.5 MB, free: 8.203 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006057/0.3739, allocations: 254.8 kB / 463.7 MB, free: 8.082 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009001/0.3748, allocations: 0.5306 MB / 464.3 MB, free: 7.609 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001173/0.376, allocations: 0.619 MB / 464.9 MB, free: 7.156 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.376, allocations: 5.344 kB / 464.9 MB, free: 7.152 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002012/0.378, allocations: 0.8613 MB / 465.7 MB, free: 6.715 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.464e-05/0.3781, allocations: 12.83 kB / 465.8 MB, free: 6.711 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.3781, allocations: 5.531 kB / 465.8 MB, free: 6.711 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.953e-05/0.3781, allocations: 13.22 kB / 465.8 MB, free: 6.707 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006123/0.3787, allocations: 163.2 kB / 465.9 MB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.756e-05/0.3787, allocations: 10.67 kB / 465.9 MB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001348/0.3801, allocations: 164.2 kB / 466.1 MB, free: 6.574 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.427e-05/0.3801, allocations: 26.31 kB / 466.1 MB, free: 6.57 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.001186/0.3813, allocations: 0.5599 MB / 466.7 MB, free: 6.242 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004242/0.3817, allocations: 188.8 kB / 466.9 MB, free: 6.141 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001608/0.3834, allocations: 0.6911 MB / 467.6 MB, free: 5.773 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.105e-05/0.3834, allocations: 9.188 kB / 467.6 MB, free: 5.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.3834, allocations: 2.625 kB / 467.6 MB, free: 5.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.3834, allocations: 0 / 467.6 MB, free: 5.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003733/0.3871, allocations: 2.134 MB / 469.7 MB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.3871, allocations: 1.594 kB / 469.7 MB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005069/0.3876, allocations: 111.6 kB / 469.8 MB, free: 4.309 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.444e-06/0.3876, allocations: 1.781 kB / 469.8 MB, free: 4.309 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.997e-05/0.3877, allocations: 13.41 kB / 469.8 MB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.3877, allocations: 1.812 kB / 469.8 MB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.3877, allocations: 5.875 kB / 469.8 MB, free: 4.297 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001999/0.3897, allocations: 1.05 MB / 470.9 MB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007824/0.3905, allocations: 420.1 kB / 471.3 MB, free: 3.379 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001944/0.3907, allocations: 21.84 kB / 471.3 MB, free: 3.363 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001081/0.3917, allocations: 138.9 kB / 471.5 MB, free: 3.305 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003287/0.3921, allocations: 152.7 kB / 471.6 MB, free: 3.223 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.63e-05/0.3921, allocations: 23.88 kB / 471.6 MB, free: 3.215 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00307/0.3952, allocations: 1.968 MB / 473.6 MB, free: 1.359 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3952, allocations: 0 / 473.6 MB, free: 1.359 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001161/0.3963, allocations: 315.3 kB / 473.9 MB, free: 1.051 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.004099/0.4004, allocations: 1.979 MB / 475.9 MB, free: 15.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001363/0.4018, allocations: 0.5732 MB / 476.5 MB, free: 14.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.4018, allocations: 448 / 476.5 MB, free: 14.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006813/0.4025, allocations: 335.5 kB / 476.8 MB, free: 14.35 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001576/0.4041, allocations: 321.6 kB / 477.1 MB, free: 14.04 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02843/0.4325, allocations: 17.26 MB / 494.4 MB, free: 12.39 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001317/0.4338, allocations: 1.441 MB / 495.8 MB, free: 10.92 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009956/0.4348, allocations: 287.1 kB / 496.1 MB, free: 10.64 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001035/0.4358, allocations: 0.7101 MB / 496.8 MB, free: 9.926 MB / 398.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4358, allocations: 4 kB / 496.8 MB, free: 9.922 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.086/0.5218, allocations: 39.16 MB / 0.5234 GB, free: 3.035 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/12.06, allocations: 10.98 kB / 0.5234 GB, free: 3.027 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 656] Reference file matches [Calling sys.exit(0), Time elapsed: 21.780440343020018]