Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.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: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bat_loss_acdc.SOC|bat_ideal.SOC|bat.SOC",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bat_loss_acdc.SOC|bat_ideal.SOC|bat.SOC",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.351/2.351, allocations: 390.3 MB / 402.8 MB, free: 6.711 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.000948/0.000948, allocations: 180.5 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.667/1.667, allocations: 221.3 MB / 0.7915 GB, free: 5.367 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.001043/0.001043, allocations: 99.89 kB / 0.9318 GB, free: 5.672 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.227e-05/3.241e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.314/0.3141, allocations: 143 MB / 1.219 GB, free: 13.49 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.058/1.372, allocations: 169 MB / 1.384 GB, free: 2.488 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000318/1.372, allocations: 98.7 kB / 1.384 GB, free: 2.434 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.0793/1.452, allocations: 29.64 MB / 1.413 GB, free: 9.406 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.844e-06/1.452, allocations: 4 kB / 1.413 GB, free: 9.402 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.671e-05/1.452, allocations: 16 kB / 1.413 GB, free: 9.387 MB / 0.8698 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.002549/1.454, allocations: 0.8316 MB / 1.414 GB, free: 8.543 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.787e-05/1.454, allocations: 8.031 kB / 1.414 GB, free: 8.535 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001303/1.456, allocations: 162.9 kB / 1.414 GB, free: 8.375 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001176/1.457, allocations: 438.4 kB / 1.414 GB, free: 7.969 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.405e-05/1.457, allocations: 42.19 kB / 1.414 GB, free: 7.945 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001986/1.457, allocations: 52.8 kB / 1.414 GB, free: 7.906 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001589/1.459, allocations: 0.6576 MB / 1.415 GB, free: 7.414 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.302e-05/1.459, allocations: 0 / 1.415 GB, free: 7.414 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.812e-05/1.459, allocations: 21.8 kB / 1.415 GB, free: 7.406 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.384e-05/1.459, allocations: 48.23 kB / 1.415 GB, free: 7.363 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001076/1.46, allocations: 0.5275 MB / 1.416 GB, free: 7.012 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00414/1.464, allocations: 2.842 MB / 1.418 GB, free: 4.391 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009149/1.465, allocations: 0.548 MB / 1.419 GB, free: 4 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003654/1.466, allocations: 240.6 kB / 1.419 GB, free: 3.848 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005417/1.466, allocations: 0.5657 MB / 1.42 GB, free: 3.156 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006269/1.467, allocations: 390.7 kB / 1.42 GB, free: 2.852 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=49): time 2.215e-06/1.467, allocations: 0 / 1.42 GB, free: 2.852 MB / 0.8698 GB Notification: Performance of matching and sorting (n=49): time 0.0009708/1.468, allocations: 0.5143 MB / 1.42 GB, free: 2.477 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.844e-05/1.468, allocations: 81.55 kB / 1.421 GB, free: 2.379 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004369/1.468, allocations: 327.1 kB / 1.421 GB, free: 2.117 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 7.204e-05/1.468, allocations: 44.52 kB / 1.421 GB, free: 2.078 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002202/1.469, allocations: 282.3 kB / 1.421 GB, free: 1.863 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001609/1.469, allocations: 157 kB / 1.421 GB, free: 1.73 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.068e-05/1.469, allocations: 10.56 kB / 1.421 GB, free: 1.73 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001538/1.469, allocations: 357 kB / 1.422 GB, free: 1.391 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003472/1.469, allocations: 222.3 kB / 1.422 GB, free: 1.258 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000423/1.47, allocations: 342 kB / 1.422 GB, free: 0.9766 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004104/1.47, allocations: 267.4 kB / 1.422 GB, free: 0.793 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/1.47, allocations: 4 kB / 1.422 GB, free: 0.7891 MB / 0.8698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001057/1.471, allocations: 0.6564 MB / 1.423 GB, free: 312 kB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005152/1.472, allocations: 1.084 MB / 1.424 GB, free: 15.15 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/1.472, allocations: 3.984 kB / 1.424 GB, free: 15.15 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.613e-05/1.472, allocations: 8 kB / 1.424 GB, free: 15.14 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005618/1.472, allocations: 111 kB / 1.424 GB, free: 15.04 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.378e-05/1.472, allocations: 4 kB / 1.424 GB, free: 15.03 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005246/1.473, allocations: 86.11 kB / 1.424 GB, free: 14.96 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.364e-05/1.473, allocations: 19.69 kB / 1.424 GB, free: 14.94 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/1.473, allocations: 5.562 kB / 1.424 GB, free: 14.94 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008462/1.474, allocations: 0.541 MB / 1.425 GB, free: 14.56 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/1.474, allocations: 4.25 kB / 1.425 GB, free: 14.55 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/1.474, allocations: 12 kB / 1.425 GB, free: 14.54 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004309/1.474, allocations: 110.9 kB / 1.425 GB, free: 14.44 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/1.474, allocations: 11.88 kB / 1.425 GB, free: 14.43 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004698/1.475, allocations: 61.89 kB / 1.425 GB, free: 14.38 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.685e-05/1.475, allocations: 25.86 kB / 1.425 GB, free: 14.36 MB / 0.8855 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.0001725/1.475, allocations: 143.7 kB / 1.425 GB, free: 14.22 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/1.475, allocations: 51.39 kB / 1.425 GB, free: 14.17 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009956/1.476, allocations: 0.5629 MB / 1.426 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.19e-05/1.476, allocations: 8 kB / 1.426 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.269e-06/1.476, allocations: 0 / 1.426 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/1.476, allocations: 0 / 1.426 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008851/1.477, allocations: 0.6341 MB / 1.427 GB, free: 13.04 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/1.477, allocations: 0 / 1.427 GB, free: 13.04 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004899/1.478, allocations: 99.86 kB / 1.427 GB, free: 12.94 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.658e-05/1.478, allocations: 7.953 kB / 1.427 GB, free: 12.93 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.782e-05/1.478, allocations: 7.938 kB / 1.427 GB, free: 12.93 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/1.478, allocations: 4 kB / 1.427 GB, free: 12.92 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/1.478, allocations: 3.984 kB / 1.427 GB, free: 12.92 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001343/1.479, allocations: 0.8619 MB / 1.427 GB, free: 12.03 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002977/1.479, allocations: 188.4 kB / 1.428 GB, free: 11.83 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.673e-05/1.48, allocations: 12 kB / 1.428 GB, free: 11.82 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000358/1.48, allocations: 35.95 kB / 1.428 GB, free: 11.78 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001665/1.48, allocations: 52.36 kB / 1.428 GB, free: 11.73 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.285e-05/1.48, allocations: 12.19 kB / 1.428 GB, free: 11.71 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0003473/1.48, allocations: 257.2 kB / 1.428 GB, free: 11.46 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.7e-07/1.48, allocations: 0 / 1.428 GB, free: 11.46 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0009628/1.481, allocations: 287 kB / 1.428 GB, free: 11.18 MB / 0.8855 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.0003152/1.482, allocations: 160.6 kB / 1.428 GB, free: 11.02 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001543/1.483, allocations: 0.9379 MB / 1.429 GB, free: 10.06 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/1.483, allocations: 0 / 1.429 GB, free: 10.06 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0004256/1.484, allocations: 274.5 kB / 1.43 GB, free: 9.789 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007816/1.485, allocations: 152.2 kB / 1.43 GB, free: 9.645 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001716/1.486, allocations: 0.8122 MB / 1.431 GB, free: 8.805 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006376/1.487, allocations: 0.919 MB / 1.431 GB, free: 7.859 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0006826/1.488, allocations: 160.4 kB / 1.432 GB, free: 7.699 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001509/1.488, allocations: 35.44 kB / 1.432 GB, free: 7.664 MB / 0.8855 GB Notification: Performance of SimCode: time 4.31e-07/1.488, allocations: 0 / 1.432 GB, free: 7.664 MB / 0.8855 GB Notification: Performance of Templates: time 0.01655/1.504, allocations: 8.362 MB / 1.44 GB, free: 15.39 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches