Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.345/2.345, allocations: 387.4 MB / 394.9 MB, free: 13.39 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 176.9 kB / 487.4 MB, free: 5.07 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.668/1.668, allocations: 221.5 MB / 0.7824 GB, free: 1.023 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 98.3 kB / 0.9219 GB, free: 2.262 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.367e-05/2.357e-05, allocations: 0 / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/0.3565, allocations: 142.4 MB / 1.206 GB, free: 43.89 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9778/1.334, allocations: 167.5 MB / 1.37 GB, free: 17.97 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002635/1.335, allocations: 89.25 kB / 1.37 GB, free: 17.97 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.06466/1.399, allocations: 29.54 MB / 1.399 GB, free: 24.33 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.543e-06/1.399, allocations: 0 / 1.399 GB, free: 24.33 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.319e-05/1.399, allocations: 11.62 kB / 1.399 GB, free: 24.33 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001547/1.401, allocations: 0.8261 MB / 1.399 GB, free: 23.67 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/1.401, allocations: 11.53 kB / 1.399 GB, free: 23.67 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000864/1.402, allocations: 155.5 kB / 1.4 GB, free: 23.6 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000536/1.402, allocations: 447.5 kB / 1.4 GB, free: 23.29 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.821e-05/1.402, allocations: 15.16 kB / 1.4 GB, free: 23.29 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.041e-05/1.403, allocations: 30.78 kB / 1.4 GB, free: 23.29 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000599/1.403, allocations: 454.5 kB / 1.4 GB, free: 23.25 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007577/1.404, allocations: 0.5866 MB / 1.401 GB, free: 23.04 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/1.404, allocations: 3.844 kB / 1.401 GB, free: 23.04 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.946e-05/1.404, allocations: 0 / 1.401 GB, free: 23.04 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.248e-05/1.404, allocations: 52.02 kB / 1.401 GB, free: 23.03 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002696/1.407, allocations: 2.739 MB / 1.404 GB, free: 20.99 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006377/1.407, allocations: 0.5161 MB / 1.404 GB, free: 20.88 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002466/1.408, allocations: 234.8 kB / 1.404 GB, free: 20.84 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003754/1.408, allocations: 0.5726 MB / 1.405 GB, free: 20.17 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004438/1.409, allocations: 363 kB / 1.405 GB, free: 20.03 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=49): time 1.613e-06/1.409, allocations: 0 / 1.405 GB, free: 20.03 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49): time 0.0007187/1.409, allocations: 0.4892 MB / 1.406 GB, free: 19.91 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.874e-05/1.409, allocations: 89.14 kB / 1.406 GB, free: 19.81 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003154/1.41, allocations: 311.7 kB / 1.406 GB, free: 19.67 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.076e-05/1.41, allocations: 33.02 kB / 1.406 GB, free: 19.64 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001525/1.41, allocations: 280.5 kB / 1.407 GB, free: 19.45 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 9.257e-05/1.41, allocations: 153.2 kB / 1.407 GB, free: 19.34 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.787e-05/1.41, allocations: 0 / 1.407 GB, free: 19.34 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001376/1.41, allocations: 355.1 kB / 1.407 GB, free: 19.02 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002485/1.41, allocations: 212.4 kB / 1.407 GB, free: 19 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002958/1.411, allocations: 325.8 kB / 1.408 GB, free: 18.86 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003148/1.411, allocations: 241.9 kB / 1.408 GB, free: 18.81 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/1.411, allocations: 0 / 1.408 GB, free: 18.81 MB / 0.8386 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007489/1.412, allocations: 0.589 MB / 1.408 GB, free: 18.68 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004172/1.412, allocations: 1.087 MB / 1.409 GB, free: 17.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/1.412, allocations: 3.844 kB / 1.409 GB, free: 17.54 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/1.412, allocations: 3.844 kB / 1.409 GB, free: 17.54 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004821/1.413, allocations: 114.6 kB / 1.41 GB, free: 17.51 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.884e-06/1.413, allocations: 11.69 kB / 1.41 GB, free: 17.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004256/1.413, allocations: 62.38 kB / 1.41 GB, free: 17.47 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.752e-05/1.413, allocations: 18.5 kB / 1.41 GB, free: 17.47 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.171e-06/1.413, allocations: 3.75 kB / 1.41 GB, free: 17.47 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006568/1.414, allocations: 468 kB / 1.41 GB, free: 17.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-06/1.414, allocations: 4 kB / 1.41 GB, free: 17.25 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.991e-06/1.414, allocations: 12.2 kB / 1.41 GB, free: 17.24 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003833/1.414, allocations: 107.6 kB / 1.41 GB, free: 17.14 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.927e-06/1.414, allocations: 4 kB / 1.41 GB, free: 17.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003536/1.415, allocations: 55.62 kB / 1.41 GB, free: 17.08 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.197e-05/1.415, allocations: 22.19 kB / 1.41 GB, free: 17.06 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition2,$PRE.bat_ideal.cha.underCharged,bat_ideal.cha.underCharged,$PRE.bat_ideal.cha.overCharged,bat_ideal.cha.overCharged,$whenCondition3,$PRE.bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.underCharged,$PRE.bat_loss_acdc.cha.overCharged,bat_loss_acdc.cha.overCharged,$whenCondition4,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,$whenCondition1,$PRE.pow.T_start,pow.T_start,$PRE.pow.count,pow.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001342/1.415, allocations: 126.6 kB / 1.41 GB, free: 16.94 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000606/1.415, allocations: 495.8 kB / 1.411 GB, free: 16.58 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.709e-05/1.416, allocations: 58.5 kB / 1.411 GB, free: 16.52 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007414/1.416, allocations: 0.5349 MB / 1.411 GB, free: 16.14 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/1.416, allocations: 4 kB / 1.411 GB, free: 16.14 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/1.416, allocations: 0 / 1.411 GB, free: 16.14 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/1.416, allocations: 0 / 1.411 GB, free: 16.14 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004996/1.417, allocations: 0.5481 MB / 1.412 GB, free: 15.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/1.417, allocations: 4.031 kB / 1.412 GB, free: 15.7 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000458/1.417, allocations: 99.73 kB / 1.412 GB, free: 15.61 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/1.417, allocations: 4 kB / 1.412 GB, free: 15.6 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.08e-05/1.417, allocations: 7.938 kB / 1.412 GB, free: 15.59 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/1.417, allocations: 4 kB / 1.412 GB, free: 15.59 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/1.417, allocations: 0 / 1.412 GB, free: 15.59 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009793/1.418, allocations: 0.8358 MB / 1.413 GB, free: 15 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001901/1.419, allocations: 180.4 kB / 1.413 GB, free: 14.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.344e-05/1.419, allocations: 7.953 kB / 1.413 GB, free: 14.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003191/1.419, allocations: 35.38 kB / 1.413 GB, free: 14.79 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/1.419, allocations: 47.05 kB / 1.413 GB, free: 14.75 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.117e-05/1.419, allocations: 18.81 kB / 1.413 GB, free: 14.74 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002096/1.419, allocations: 236.3 kB / 1.413 GB, free: 14.56 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.419, allocations: 4 kB / 1.413 GB, free: 14.55 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006611/1.42, allocations: 258.1 kB / 1.414 GB, free: 14.3 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (bat_ideal.cha.SOC,bat_loss_acdc.cha.SOC,bat.cha.SOC) * Number of discrete variables: 12 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,pow.T_start,pow.count,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Number of discrete states: 7 (pow.count,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001404/1.421, allocations: 1.497 MB / 1.415 GB, free: 13.05 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001032/1.422, allocations: 0.8948 MB / 1.416 GB, free: 12.4 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/1.422, allocations: 0 / 1.416 GB, free: 12.4 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002944/1.423, allocations: 252.2 kB / 1.416 GB, free: 12.24 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007618/1.424, allocations: 143.2 kB / 1.416 GB, free: 12.12 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001925/1.425, allocations: 0.9102 MB / 1.417 GB, free: 11.3 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005854/1.426, allocations: 0.9166 MB / 1.418 GB, free: 10.37 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0007026/1.427, allocations: 172.4 kB / 1.418 GB, free: 10.2 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002933/1.427, allocations: 190 kB / 1.418 GB, free: 10.15 MB / 0.8386 GB Notification: Performance of SimCode: time 6.81e-07/1.427, allocations: 3.938 kB / 1.418 GB, free: 10.15 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03656/1.464, allocations: 12.03 MB / 1.43 GB, free: 14.23 MB / 0.8542 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001979/1.464, allocations: 159.3 kB / 1.43 GB, free: 14.03 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.427/3.891, allocations: 0 / 1.43 GB, free: 14.03 MB / 0.8542 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery_res.mat does not exist to compare? outputFormat=mat