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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 191.3 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.219/1.219, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00198/0.00198, allocations: 281.8 kB / 290.3 MB, free: 2.16 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8456/0.8456, allocations: 169.2 MB / 0.4978 GB, free: 14.05 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 89.47 kB / 0.5948 GB, free: 28.3 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1385, allocations: 86.98 MB / 0.6797 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.002804/0.1413, allocations: 1.991 MB / 0.6817 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001185/0.1426, allocations: 0.853 MB / 0.6825 GB, free: 14.09 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.1427, allocations: 7.938 kB / 0.6825 GB, free: 14.09 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002033/0.1429, allocations: 47.91 kB / 0.6826 GB, free: 14.04 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.814e-05/0.143, allocations: 39.69 kB / 0.6826 GB, free: 14 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002698/0.1433, allocations: 87.84 kB / 0.6827 GB, free: 13.91 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001981/0.1435, allocations: 191.3 kB / 0.6829 GB, free: 13.73 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.406e-05/0.1436, allocations: 21.55 kB / 0.6829 GB, free: 13.71 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001376/0.1437, allocations: 87.56 kB / 0.683 GB, free: 13.62 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001128/0.1439, allocations: 87.61 kB / 0.683 GB, free: 13.54 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.36e-05/0.1439, allocations: 8 kB / 0.6831 GB, free: 13.53 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001096/0.144, allocations: 59.95 kB / 0.6831 GB, free: 13.47 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.067e-05/0.144, allocations: 27.91 kB / 0.6831 GB, free: 13.44 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.698e-05/0.1441, allocations: 71.59 kB / 0.6832 GB, free: 13.37 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002078/0.1443, allocations: 179.4 kB / 0.6834 GB, free: 13.2 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.1443, allocations: 0 / 0.6834 GB, free: 13.2 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.1443, allocations: 4 kB / 0.6834 GB, free: 13.19 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.1443, allocations: 0 / 0.6834 GB, free: 13.19 MB / 494.1 MB 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.0008301/0.1452, allocations: 0.5119 MB / 0.6839 GB, free: 12.62 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.255e-05/0.1452, allocations: 8.031 kB / 0.6839 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.629e-05/0.1453, allocations: 38.75 kB / 0.6839 GB, free: 12.57 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.656e-05/0.1453, allocations: 16.75 kB / 0.6839 GB, free: 12.55 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002104/0.1455, allocations: 228 kB / 0.6842 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.1456, allocations: 8.375 kB / 0.6842 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.324e-05/0.1456, allocations: 20.27 kB / 0.6842 GB, free: 12.27 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002721/0.1459, allocations: 129.7 kB / 0.6843 GB, free: 12.13 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.1459, allocations: 0 / 0.6843 GB, free: 12.13 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.1459, allocations: 0 / 0.6843 GB, free: 12.13 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.1459, allocations: 7.984 kB / 0.6843 GB, free: 12.12 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002744/0.1462, allocations: 99.86 kB / 0.6844 GB, free: 12.03 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005526/0.1468, allocations: 420.5 kB / 0.6848 GB, free: 11.57 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002972/0.1471, allocations: 129 kB / 0.6849 GB, free: 11.43 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001575/0.1472, allocations: 80.81 kB / 0.685 GB, free: 11.35 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005678/0.1478, allocations: 441.5 kB / 0.6854 GB, free: 10.83 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002866/0.1481, allocations: 135.4 kB / 0.6856 GB, free: 10.68 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 1.703e-06/0.1481, allocations: 0 / 0.6856 GB, free: 10.68 MB / 494.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005499/0.1487, allocations: 225.4 kB / 0.6858 GB, free: 10.46 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.798e-05/0.1487, allocations: 63.39 kB / 0.6858 GB, free: 10.38 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.1489, allocations: 184.1 kB / 0.686 GB, free: 10.2 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.272e-05/0.1489, allocations: 29.7 kB / 0.686 GB, free: 10.16 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.997e-05/0.149, allocations: 119.9 kB / 0.6862 GB, free: 10.04 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.201e-05/0.149, allocations: 55.25 kB / 0.6862 GB, free: 9.984 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.29e-05/0.1491, allocations: 33.7 kB / 0.6862 GB, free: 9.945 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.392e-05/0.1492, allocations: 338.7 kB / 0.6866 GB, free: 9.605 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001725/0.1494, allocations: 76.81 kB / 0.6866 GB, free: 9.527 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001688/0.1495, allocations: 90.33 kB / 0.6867 GB, free: 9.434 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.338/2.487, allocations: 378.8 MB / 1.057 GB, free: 257.6 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/2.488, allocations: 0 / 1.057 GB, free: 257.6 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.00049/2.488, allocations: 254.6 kB / 1.057 GB, free: 257.5 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.107e-05/2.488, allocations: 37.45 kB / 1.057 GB, free: 257.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/2.488, allocations: 0 / 1.057 GB, free: 257.5 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/2.488, allocations: 2.562 kB / 1.057 GB, free: 257.5 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002132/2.488, allocations: 43.66 kB / 1.057 GB, free: 257.5 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.966e-06/2.488, allocations: 2.188 kB / 1.057 GB, free: 257.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001767/2.489, allocations: 23.34 kB / 1.057 GB, free: 257.5 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.134e-05/2.489, allocations: 7.766 kB / 1.057 GB, free: 257.5 MB / 0.7169 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.6850000000000001 * 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.0001782/2.489, allocations: 150.8 kB / 1.057 GB, free: 257.3 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.632e-05/2.489, allocations: 19.38 kB / 1.057 GB, free: 257.3 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005221/2.489, allocations: 238 kB / 1.057 GB, free: 257.3 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/2.489, allocations: 2.344 kB / 1.057 GB, free: 257.3 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/2.489, allocations: 5.781 kB / 1.057 GB, free: 257.3 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/2.489, allocations: 1.594 kB / 1.057 GB, free: 257.3 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001755/2.49, allocations: 251.6 kB / 1.058 GB, free: 257.1 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/2.49, allocations: 4.453 kB / 1.058 GB, free: 257.1 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002138/2.49, allocations: 40.81 kB / 1.058 GB, free: 257.1 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/2.49, allocations: 0 / 1.058 GB, free: 257.1 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.824e-05/2.49, allocations: 10.34 kB / 1.058 GB, free: 257.1 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.023e-06/2.49, allocations: 0 / 1.058 GB, free: 257.1 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/2.49, allocations: 0 / 1.058 GB, free: 257.1 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005382/2.49, allocations: 316.8 kB / 1.058 GB, free: 257 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.802e-05/2.49, allocations: 108.5 kB / 1.058 GB, free: 256.9 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.519e-05/2.49, allocations: 3.938 kB / 1.058 GB, free: 256.9 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001453/2.491, allocations: 17.73 kB / 1.058 GB, free: 256.9 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.86e-05/2.491, allocations: 20.16 kB / 1.058 GB, free: 256.9 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/2.491, allocations: 7.469 kB / 1.058 GB, free: 256.9 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.98e-05/2.491, allocations: 133.7 kB / 1.058 GB, free: 256.9 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/2.491, allocations: 2.938 kB / 1.058 GB, free: 256.9 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002574/2.491, allocations: 50.59 kB / 1.058 GB, free: 256.9 MB / 0.7169 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.000774/2.492, allocations: 0.8716 MB / 1.059 GB, free: 256.2 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004298/2.492, allocations: 237.4 kB / 1.059 GB, free: 256.2 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/2.492, allocations: 1.219 kB / 1.059 GB, free: 256.2 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001815/2.492, allocations: 94.88 kB / 1.059 GB, free: 256.2 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002625/2.493, allocations: 31.94 kB / 1.059 GB, free: 256.2 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002473/2.495, allocations: 2.335 MB / 1.062 GB, free: 254.5 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001213/2.495, allocations: 0.7251 MB / 1.062 GB, free: 253.8 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.000158/2.496, allocations: 40.83 kB / 1.063 GB, free: 253.8 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/2.496, allocations: 60.12 kB / 1.063 GB, free: 253.7 MB / 0.7169 GB Notification: Performance of SimCode: time 3.71e-07/2.496, allocations: 0 / 1.063 GB, free: 253.7 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5394/3.035, allocations: 4.505 MB / 1.067 GB, free: 252.6 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000176/3.035, allocations: 231 kB / 1.067 GB, free: 252.3 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.762/4.797, allocations: 0 / 1.067 GB, free: 252.3 MB / 0.7169 GB (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 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple.fmu > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe 2>&1)