Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.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.001552/0.001552, allocations: 116.8 kB / 17.17 MB, free: 5.977 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.001534/0.001534, allocations: 209.6 kB / 20.13 MB, free: 3.035 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.421/1.421, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002346/0.002346, allocations: 286.7 kB / 309.8 MB, free: 3.453 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.037/1.037, allocations: 180.6 MB / 0.5338 GB, free: 12.34 MB / 398.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) 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(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002884/0.002884, allocations: 105.5 kB / 0.7346 GB, free: 2.457 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5075/0.5103, allocations: 95.33 MB / 0.8277 GB, free: 3.02 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.002667/0.513, allocations: 1.98 MB / 0.8297 GB, free: 1.625 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001176/0.5142, allocations: 0.9161 MB / 0.8306 GB, free: 0.9805 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.236e-05/0.5143, allocations: 7.844 kB / 0.8306 GB, free: 0.9766 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000185/0.5145, allocations: 52.16 kB / 0.8306 GB, free: 0.9453 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 9.692e-05/0.5146, allocations: 59.19 kB / 0.8307 GB, free: 0.9023 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002565/0.5148, allocations: 91.05 kB / 0.8308 GB, free: 0.8555 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.000182/0.515, allocations: 194.8 kB / 0.831 GB, free: 0.7617 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 8.463e-05/0.5151, allocations: 13.88 kB / 0.831 GB, free: 0.7539 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001342/0.5152, allocations: 92.77 kB / 0.8311 GB, free: 0.7148 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001223/0.5153, allocations: 80.97 kB / 0.8311 GB, free: 0.6797 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.445e-05/0.5154, allocations: 10 kB / 0.8311 GB, free: 0.6797 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001234/0.5155, allocations: 64.94 kB / 0.8312 GB, free: 0.6641 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 3.323e-05/0.5155, allocations: 26.83 kB / 0.8312 GB, free: 0.6484 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 6.995e-05/0.5156, allocations: 81.56 kB / 0.8313 GB, free: 0.5977 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002568/0.5158, allocations: 180.7 kB / 0.8315 GB, free: 0.5312 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.5158, allocations: 5.469 kB / 0.8315 GB, free: 0.5273 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.673e-06/0.5159, allocations: 7.875 kB / 0.8315 GB, free: 0.5195 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.702e-06/0.5159, allocations: 0 / 0.8315 GB, free: 0.5195 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0008177/0.5167, allocations: 0.51 MB / 0.832 GB, free: 52 kB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.5167, allocations: 9.062 kB / 0.832 GB, free: 52 kB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.72e-05/0.5167, allocations: 2.719 kB / 0.832 GB, free: 52 kB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.855e-05/0.5168, allocations: 40.05 kB / 0.832 GB, free: 8 kB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002771/0.517, allocations: 37.3 kB / 0.8321 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002678/0.5173, allocations: 233.1 kB / 0.8323 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.553e-05/0.5173, allocations: 8.078 kB / 0.8323 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.585e-05/0.5174, allocations: 15.97 kB / 0.8323 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003036/0.5177, allocations: 128.8 kB / 0.8324 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.5177, allocations: 0 / 0.8324 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.819e-05/0.5177, allocations: 7.641 kB / 0.8325 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.5177, allocations: 0 / 0.8325 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003106/0.518, allocations: 99.3 kB / 0.8326 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006736/0.5187, allocations: 420.7 kB / 0.833 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003367/0.519, allocations: 124.3 kB / 0.8331 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001735/0.5192, allocations: 64.45 kB / 0.8331 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006604/0.5198, allocations: 453.6 kB / 0.8336 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003234/0.5202, allocations: 122.1 kB / 0.8337 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=16): time 1.502e-06/0.5202, allocations: 0 / 0.8337 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=16): time 0.000634/0.5208, allocations: 239.5 kB / 0.8339 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.014e-05/0.5209, allocations: 62.36 kB / 0.834 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001743/0.521, allocations: 181.7 kB / 0.8341 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.932e-05/0.5211, allocations: 32.52 kB / 0.8342 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.705e-05/0.5211, allocations: 110.9 kB / 0.8343 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.437e-05/0.5212, allocations: 52.83 kB / 0.8343 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.653e-05/0.5213, allocations: 46.12 kB / 0.8344 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.000154/0.5214, allocations: 331.7 kB / 0.8347 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002081/0.5216, allocations: 78.95 kB / 0.8348 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001909/0.5218, allocations: 88.56 kB / 0.8349 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.654/3.176, allocations: 378.8 MB / 1.205 GB, free: 272.4 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/3.176, allocations: 0 / 1.205 GB, free: 272.4 MB / 0.8731 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004761/3.177, allocations: 253.9 kB / 1.205 GB, free: 272.2 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/3.177, allocations: 33.7 kB / 1.205 GB, free: 272.2 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/3.177, allocations: 0 / 1.205 GB, free: 272.2 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/3.177, allocations: 7.984 kB / 1.205 GB, free: 272.2 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002202/3.177, allocations: 42.84 kB / 1.205 GB, free: 272.1 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/3.177, allocations: 4 kB / 1.205 GB, free: 272.1 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001863/3.177, allocations: 23.97 kB / 1.205 GB, free: 272.1 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/3.177, allocations: 4 kB / 1.205 GB, free: 272.1 MB / 0.8731 GB Warning: Assuming fixed start value for the following 4 variables: battery.E_charged:VARIABLE(start = 0.0 unit = \"J\" fixed = true ) \"Total energy charged to the battery\" type: Real battery.E_discharged:VARIABLE(start = 0.0 unit = \"J\" fixed = true ) \"Total energy taken from the battery\" type: Real battery.EAva:VARIABLE(start = 0.315 * battery.SOC_start * battery.E_nominal unit = \"J\" fixed = true ) \"Available charge of the battery\" type: Real battery.EBou:VARIABLE(start = 0.685 * battery.SOC_start * battery.E_nominal unit = \"J\" fixed = true ) \"Bound charge of the battery\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.gain.count,$PRE.gain.T_start,gain.count,gain.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * 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.0001813/3.177, allocations: 154.7 kB / 1.205 GB, free: 272 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.99e-05/3.177, allocations: 18.48 kB / 1.205 GB, free: 272 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005279/3.178, allocations: 246.9 kB / 1.205 GB, free: 271.8 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/3.178, allocations: 2.812 kB / 1.205 GB, free: 271.8 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/3.178, allocations: 0 / 1.205 GB, free: 271.8 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/3.178, allocations: 1.078 kB / 1.205 GB, free: 271.8 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001681/3.178, allocations: 253.9 kB / 1.206 GB, free: 271.5 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/3.178, allocations: 4 kB / 1.206 GB, free: 271.5 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002229/3.178, allocations: 35.97 kB / 1.206 GB, free: 271.4 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/3.178, allocations: 0 / 1.206 GB, free: 271.4 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/3.178, allocations: 11.94 kB / 1.206 GB, free: 271.4 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/3.178, allocations: 0 / 1.206 GB, free: 271.4 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/3.178, allocations: 5.328 kB / 1.206 GB, free: 271.4 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005648/3.179, allocations: 315.2 kB / 1.206 GB, free: 271.1 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.613e-05/3.179, allocations: 111 kB / 1.206 GB, free: 271 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.211e-05/3.179, allocations: 8 kB / 1.206 GB, free: 271 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/3.179, allocations: 11.98 kB / 1.206 GB, free: 271 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.771e-05/3.179, allocations: 22.97 kB / 1.206 GB, free: 270.9 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.547e-05/3.179, allocations: 8 kB / 1.206 GB, free: 270.9 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 7.052e-05/3.179, allocations: 135.2 kB / 1.206 GB, free: 270.8 MB / 0.8731 GB Notification: Performance of sort global known variables: time 8e-08/3.179, allocations: 0 / 1.206 GB, free: 270.8 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002674/3.18, allocations: 55.36 kB / 1.206 GB, free: 270.8 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (battery.EAva,battery.EBou,battery.E_charged,battery.E_discharged) * Number of discrete variables: 3 ($whenCondition1,gain.T_start,gain.count) * Number of discrete states: 1 (gain.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0007539/3.18, allocations: 0.8653 MB / 1.207 GB, free: 269.9 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004152/3.181, allocations: 213.4 kB / 1.207 GB, free: 269.6 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/3.181, allocations: 0 / 1.207 GB, free: 269.6 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001825/3.181, allocations: 83.83 kB / 1.208 GB, free: 269.6 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002609/3.181, allocations: 37.67 kB / 1.208 GB, free: 269.5 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002488/3.184, allocations: 2.313 MB / 1.21 GB, free: 267.2 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001636/3.184, allocations: 0.7242 MB / 1.211 GB, free: 266.4 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001354/3.184, allocations: 26.48 kB / 1.211 GB, free: 266.4 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/3.184, allocations: 59.41 kB / 1.211 GB, free: 266.3 MB / 0.8731 GB Notification: Performance of SimCode: time 6.21e-07/3.184, allocations: 0 / 1.211 GB, free: 266.3 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02379/3.208, allocations: 4.772 MB / 1.215 GB, free: 261.8 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.117/11.32, allocations: 18.84 kB / 1.215 GB, free: 261.7 MB / 0.8731 GB " [Timeout remaining time 649] (rm -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple_fmu --startTime=0 --stopTime=3.1536e+07 --stepSize=12614.4 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple.fmu > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.152223350014538] Failed to read output from testmodel.py, exit status != 0: 11.447228344040923 11.455221416 10.937482978 Calling exit ...