Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.349/2.349, allocations: 390.5 MB / 398 MB, free: 10.94 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.001219/0.001219, allocations: 172.9 kB / 491.2 MB, free: 1.578 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.701/1.701, allocations: 221.5 MB / 0.7868 GB, free: 13.38 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009971/0.0009968, allocations: 91.89 kB / 0.9269 GB, free: 13.89 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.146e-05/2.15e-05, allocations: 5.484 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3039/0.3039, allocations: 143 MB / 1.212 GB, free: 39.47 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.069/1.373, allocations: 169.7 MB / 1.378 GB, free: 17.6 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002247/1.373, allocations: 91.02 kB / 1.378 GB, free: 17.6 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0687/1.442, allocations: 31.46 MB / 1.409 GB, free: 18.18 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.222e-06/1.442, allocations: 0 / 1.409 GB, free: 18.18 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.977e-05/1.442, allocations: 12 kB / 1.409 GB, free: 18.16 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.001434/1.443, allocations: 0.832 MB / 1.41 GB, free: 17.32 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/1.443, allocations: 12.03 kB / 1.41 GB, free: 17.31 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008387/1.444, allocations: 151 kB / 1.41 GB, free: 17.16 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006641/1.445, allocations: 442 kB / 1.41 GB, free: 16.77 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.429e-05/1.445, allocations: 23.69 kB / 1.41 GB, free: 16.75 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.789e-05/1.445, allocations: 31.98 kB / 1.41 GB, free: 16.71 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007871/1.446, allocations: 455.8 kB / 1.411 GB, free: 16.43 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008915/1.446, allocations: 0.5887 MB / 1.411 GB, free: 15.97 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.957e-05/1.446, allocations: 0 / 1.411 GB, free: 15.97 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.401e-05/1.447, allocations: 7.953 kB / 1.411 GB, free: 15.96 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.791e-05/1.447, allocations: 45.17 kB / 1.412 GB, free: 15.92 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003667/1.45, allocations: 2.742 MB / 1.414 GB, free: 13.4 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007788/1.451, allocations: 0.5192 MB / 1.415 GB, free: 13.04 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003042/1.451, allocations: 235.3 kB / 1.415 GB, free: 12.88 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005211/1.452, allocations: 0.5657 MB / 1.415 GB, free: 12.19 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005432/1.452, allocations: 369.6 kB / 1.416 GB, free: 11.9 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=49): time 2.053e-06/1.453, allocations: 0 / 1.416 GB, free: 11.9 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49): time 0.0008853/1.453, allocations: 0.4907 MB / 1.416 GB, free: 11.54 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.194e-05/1.453, allocations: 88.59 kB / 1.416 GB, free: 11.44 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003532/1.454, allocations: 305.2 kB / 1.417 GB, free: 11.2 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.78e-05/1.454, allocations: 36.2 kB / 1.417 GB, free: 11.16 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002041/1.454, allocations: 282.5 kB / 1.417 GB, free: 10.95 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/1.454, allocations: 145.9 kB / 1.417 GB, free: 10.82 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.837e-05/1.454, allocations: 0 / 1.417 GB, free: 10.82 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000169/1.454, allocations: 363.2 kB / 1.417 GB, free: 10.48 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002904/1.455, allocations: 210.1 kB / 1.418 GB, free: 10.36 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003776/1.455, allocations: 336.6 kB / 1.418 GB, free: 10.08 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003779/1.456, allocations: 231.4 kB / 1.418 GB, free: 9.938 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/1.456, allocations: 0 / 1.418 GB, free: 9.938 MB / 0.8386 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008794/1.456, allocations: 0.5915 MB / 1.419 GB, free: 9.504 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005073/1.457, allocations: 1.082 MB / 1.42 GB, free: 8.355 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/1.457, allocations: 4 kB / 1.42 GB, free: 8.352 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/1.457, allocations: 4 kB / 1.42 GB, free: 8.348 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005477/1.458, allocations: 115.4 kB / 1.42 GB, free: 8.238 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.659e-06/1.458, allocations: 4 kB / 1.42 GB, free: 8.234 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004773/1.458, allocations: 67.53 kB / 1.42 GB, free: 8.168 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.692e-05/1.458, allocations: 27.23 kB / 1.42 GB, free: 8.148 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.165e-06/1.458, allocations: 4 kB / 1.42 GB, free: 8.145 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007198/1.459, allocations: 477.3 kB / 1.421 GB, free: 7.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/1.459, allocations: 0 / 1.421 GB, free: 7.82 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.052e-05/1.459, allocations: 8.25 kB / 1.421 GB, free: 7.812 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004265/1.459, allocations: 111.3 kB / 1.421 GB, free: 7.707 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/1.459, allocations: 11.98 kB / 1.421 GB, free: 7.695 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003632/1.46, allocations: 47.64 kB / 1.421 GB, free: 7.648 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.507e-05/1.46, allocations: 19.62 kB / 1.421 GB, free: 7.633 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.0001617/1.46, allocations: 134.9 kB / 1.421 GB, free: 7.5 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007072/1.461, allocations: 497.3 kB / 1.421 GB, free: 7.137 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.093e-05/1.461, allocations: 53.95 kB / 1.421 GB, free: 7.086 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000908/1.462, allocations: 0.5238 MB / 1.422 GB, free: 6.723 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/1.462, allocations: 8 kB / 1.422 GB, free: 6.715 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/1.462, allocations: 0 / 1.422 GB, free: 6.715 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/1.462, allocations: 3.984 kB / 1.422 GB, free: 6.711 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000644/1.462, allocations: 0.5432 MB / 1.422 GB, free: 6.277 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/1.462, allocations: 0 / 1.422 GB, free: 6.277 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004883/1.463, allocations: 103.4 kB / 1.423 GB, free: 6.18 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/1.463, allocations: 3.953 kB / 1.423 GB, free: 6.176 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.281e-05/1.463, allocations: 7.5 kB / 1.423 GB, free: 6.172 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/1.463, allocations: 0 / 1.423 GB, free: 6.172 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.227e-05/1.463, allocations: 3.938 kB / 1.423 GB, free: 6.168 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001114/1.464, allocations: 0.8328 MB / 1.423 GB, free: 5.578 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002114/1.464, allocations: 185.4 kB / 1.424 GB, free: 5.406 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.124e-05/1.464, allocations: 3.984 kB / 1.424 GB, free: 5.402 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003221/1.465, allocations: 32.14 kB / 1.424 GB, free: 5.371 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/1.465, allocations: 51.11 kB / 1.424 GB, free: 5.332 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.282e-05/1.465, allocations: 15.94 kB / 1.424 GB, free: 5.32 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002522/1.465, allocations: 243.5 kB / 1.424 GB, free: 5.137 MB / 0.8386 GB Notification: Performance of sort global known variables: time 3.11e-07/1.465, allocations: 0 / 1.424 GB, free: 5.137 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0007571/1.466, allocations: 255.1 kB / 1.424 GB, free: 4.887 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.00153/1.467, allocations: 1.489 MB / 1.426 GB, free: 3.633 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001209/1.469, allocations: 0.9021 MB / 1.426 GB, free: 2.973 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/1.469, allocations: 0 / 1.426 GB, free: 2.973 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000324/1.469, allocations: 254.6 kB / 1.427 GB, free: 2.809 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000789/1.47, allocations: 153.1 kB / 1.427 GB, free: 2.684 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001738/1.471, allocations: 0.903 MB / 1.428 GB, free: 1.867 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004767/1.472, allocations: 0.9132 MB / 1.429 GB, free: 0.9414 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0006004/1.473, allocations: 160.4 kB / 1.429 GB, free: 0.7852 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000267/1.473, allocations: 194.9 kB / 1.429 GB, free: 0.7305 MB / 0.8386 GB Notification: Performance of SimCode: time 7.52e-07/1.473, allocations: 0 / 1.429 GB, free: 0.7305 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03846/1.511, allocations: 12.04 MB / 1.441 GB, free: 4.805 MB / 0.8542 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001877/1.512, allocations: 173.6 kB / 1.441 GB, free: 4.609 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.341/3.852, allocations: 0 / 1.441 GB, free: 4.609 MB / 0.8542 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery_res.mat does not exist to compare? outputFormat=mat