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.615/2.615, allocations: 387.1 MB / 399.7 MB, free: 9.469 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.001391/0.001392, allocations: 188.2 kB / 492.3 MB, free: 0.6211 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.625/1.625, allocations: 221.3 MB / 0.7871 GB, free: 12.98 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.00108/0.001079, allocations: 87.94 kB / 0.9267 GB, free: 14.04 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.868e-05/2.87e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.28, allocations: 142.3 MB / 1.212 GB, free: 38.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9073/1.187, allocations: 168.1 MB / 1.377 GB, free: 18.97 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002789/1.188, allocations: 94.67 kB / 1.377 GB, free: 18.97 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.06886/1.257, allocations: 29.66 MB / 1.406 GB, free: 20.81 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.884e-06/1.257, allocations: 0 / 1.406 GB, free: 20.81 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.396e-05/1.257, allocations: 12 kB / 1.406 GB, free: 20.8 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.001712/1.258, allocations: 0.8238 MB / 1.407 GB, free: 19.96 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/1.258, allocations: 12.03 kB / 1.407 GB, free: 19.95 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001833/1.259, allocations: 89.39 kB / 1.407 GB, free: 19.89 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009037/1.26, allocations: 163 kB / 1.407 GB, free: 19.73 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007217/1.26, allocations: 444.3 kB / 1.407 GB, free: 19.33 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.526e-05/1.26, allocations: 38.27 kB / 1.407 GB, free: 19.31 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.808e-05/1.26, allocations: 47.56 kB / 1.407 GB, free: 19.28 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009375/1.261, allocations: 0.6557 MB / 1.408 GB, free: 18.79 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/1.261, allocations: 0 / 1.408 GB, free: 18.79 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.534e-05/1.261, allocations: 20.36 kB / 1.408 GB, free: 18.79 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.823e-05/1.262, allocations: 44.53 kB / 1.408 GB, free: 18.75 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007539/1.262, allocations: 0.5277 MB / 1.409 GB, free: 18.4 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002934/1.265, allocations: 2.845 MB / 1.411 GB, free: 15.79 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007124/1.266, allocations: 0.5461 MB / 1.412 GB, free: 15.4 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002858/1.266, allocations: 243.7 kB / 1.412 GB, free: 15.25 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004781/1.267, allocations: 0.5622 MB / 1.413 GB, free: 14.56 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005642/1.267, allocations: 390.6 kB / 1.413 GB, free: 14.26 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=49): time 3.907e-06/1.267, allocations: 0 / 1.413 GB, free: 14.26 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49): time 0.0008823/1.268, allocations: 0.5173 MB / 1.414 GB, free: 13.88 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.396e-05/1.268, allocations: 81.55 kB / 1.414 GB, free: 13.78 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003668/1.269, allocations: 315.1 kB / 1.414 GB, free: 13.52 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 7.106e-05/1.269, allocations: 50.75 kB / 1.414 GB, free: 13.48 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001803/1.269, allocations: 284.8 kB / 1.414 GB, free: 13.27 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001379/1.269, allocations: 156.4 kB / 1.414 GB, free: 13.14 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.681e-05/1.269, allocations: 7.625 kB / 1.414 GB, free: 13.14 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001388/1.269, allocations: 362 kB / 1.415 GB, free: 12.8 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003431/1.27, allocations: 219.7 kB / 1.415 GB, free: 12.67 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004203/1.27, allocations: 346.3 kB / 1.415 GB, free: 12.38 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003889/1.27, allocations: 271 kB / 1.416 GB, free: 12.2 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/1.27, allocations: 4 kB / 1.416 GB, free: 12.19 MB / 0.8386 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009966/1.271, allocations: 0.6612 MB / 1.416 GB, free: 11.7 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005025/1.272, allocations: 1.081 MB / 1.417 GB, free: 10.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/1.272, allocations: 0 / 1.417 GB, free: 10.55 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.291e-05/1.272, allocations: 11.98 kB / 1.417 GB, free: 10.54 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005411/1.273, allocations: 113.7 kB / 1.417 GB, free: 10.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.976e-05/1.273, allocations: 8 kB / 1.417 GB, free: 10.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004902/1.273, allocations: 73.81 kB / 1.417 GB, free: 10.36 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.92e-05/1.273, allocations: 27.14 kB / 1.417 GB, free: 10.34 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.028e-05/1.273, allocations: 4 kB / 1.417 GB, free: 10.34 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008024/1.274, allocations: 0.5326 MB / 1.418 GB, free: 9.965 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/1.274, allocations: 3.984 kB / 1.418 GB, free: 9.961 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.628e-06/1.274, allocations: 11.94 kB / 1.418 GB, free: 9.949 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004152/1.274, allocations: 103.1 kB / 1.418 GB, free: 9.855 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/1.274, allocations: 15.94 kB / 1.418 GB, free: 9.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000408/1.275, allocations: 58.33 kB / 1.418 GB, free: 9.789 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.945e-05/1.275, allocations: 19.5 kB / 1.418 GB, free: 9.773 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.000153/1.275, allocations: 147.2 kB / 1.418 GB, free: 9.645 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.86e-05/1.275, allocations: 55.42 kB / 1.418 GB, free: 9.59 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009129/1.276, allocations: 0.5667 MB / 1.419 GB, free: 9.199 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/1.276, allocations: 12.36 kB / 1.419 GB, free: 9.188 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/1.276, allocations: 0 / 1.419 GB, free: 9.188 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/1.276, allocations: 0 / 1.419 GB, free: 9.188 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006774/1.277, allocations: 0.6406 MB / 1.42 GB, free: 8.672 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/1.277, allocations: 0 / 1.42 GB, free: 8.672 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000482/1.277, allocations: 98.42 kB / 1.42 GB, free: 8.578 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.486e-06/1.277, allocations: 4 kB / 1.42 GB, free: 8.574 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.776e-05/1.277, allocations: 14.08 kB / 1.42 GB, free: 8.566 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/1.277, allocations: 4 kB / 1.42 GB, free: 8.562 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/1.277, allocations: 0 / 1.42 GB, free: 8.562 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001142/1.279, allocations: 0.8688 MB / 1.421 GB, free: 7.945 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002205/1.279, allocations: 179.8 kB / 1.421 GB, free: 7.777 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.953e-05/1.279, allocations: 15.17 kB / 1.421 GB, free: 7.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000326/1.279, allocations: 43.14 kB / 1.421 GB, free: 7.734 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/1.279, allocations: 51.3 kB / 1.421 GB, free: 7.695 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.183e-05/1.279, allocations: 11.56 kB / 1.421 GB, free: 7.688 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002431/1.28, allocations: 259.8 kB / 1.421 GB, free: 7.484 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4.91e-07/1.28, allocations: 0 / 1.421 GB, free: 7.484 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000709/1.28, allocations: 280.7 kB / 1.421 GB, free: 7.234 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.001501/1.282, allocations: 1.528 MB / 1.423 GB, free: 5.965 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001199/1.283, allocations: 0.9443 MB / 1.424 GB, free: 5.273 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/1.283, allocations: 0 / 1.424 GB, free: 5.273 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000361/1.283, allocations: 267.2 kB / 1.424 GB, free: 5.09 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007368/1.284, allocations: 156.2 kB / 1.424 GB, free: 4.973 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001618/1.286, allocations: 0.9644 MB / 1.425 GB, free: 4.129 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000459/1.286, allocations: 0.9126 MB / 1.426 GB, free: 3.199 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0005747/1.287, allocations: 160.4 kB / 1.426 GB, free: 3.039 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002503/1.287, allocations: 190.9 kB / 1.426 GB, free: 2.984 MB / 0.8386 GB Notification: Performance of SimCode: time 3.11e-07/1.287, allocations: 0 / 1.426 GB, free: 2.984 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02581/1.313, allocations: 12.7 MB / 1.439 GB, free: 6.512 MB / 0.8542 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002234/1.313, allocations: 168.9 kB / 1.439 GB, free: 6.281 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.447/3.76, allocations: 0 / 1.439 GB, free: 6.281 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