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.565/2.565, allocations: 390.5 MB / 398 MB, free: 10.89 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.001009/0.001009, allocations: 172.9 kB / 491.2 MB, free: 1.547 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.717/1.717, allocations: 221.5 MB / 0.7868 GB, free: 13.24 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.001098/0.001098, allocations: 99.88 kB / 0.9269 GB, free: 13.74 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.44e-05/1.413e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2846/0.2847, allocations: 143 MB / 1.212 GB, free: 39.48 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9939/1.279, allocations: 168.3 MB / 1.377 GB, free: 17.57 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002775/1.279, allocations: 89.19 kB / 1.377 GB, free: 17.57 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.06423/1.343, allocations: 29.52 MB / 1.406 GB, free: 20.91 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.294e-06/1.343, allocations: 3.984 kB / 1.406 GB, free: 20.9 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.778e-05/1.343, allocations: 16 kB / 1.406 GB, free: 20.89 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.001334/1.345, allocations: 0.8296 MB / 1.406 GB, free: 20.05 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/1.345, allocations: 8.031 kB / 1.406 GB, free: 20.04 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007828/1.345, allocations: 155 kB / 1.407 GB, free: 19.89 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005474/1.346, allocations: 444.3 kB / 1.407 GB, free: 19.48 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.908e-05/1.346, allocations: 20 kB / 1.407 GB, free: 19.46 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.948e-05/1.346, allocations: 35.94 kB / 1.407 GB, free: 19.43 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006618/1.347, allocations: 451.2 kB / 1.407 GB, free: 19.15 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007522/1.348, allocations: 0.5864 MB / 1.408 GB, free: 18.7 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/1.348, allocations: 0 / 1.408 GB, free: 18.7 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.149e-05/1.348, allocations: 15.55 kB / 1.408 GB, free: 18.68 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.822e-05/1.348, allocations: 43.34 kB / 1.408 GB, free: 18.65 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002592/1.35, allocations: 2.733 MB / 1.411 GB, free: 16.12 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006578/1.351, allocations: 0.5224 MB / 1.411 GB, free: 15.76 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002406/1.351, allocations: 234 kB / 1.411 GB, free: 15.61 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004075/1.352, allocations: 0.5624 MB / 1.412 GB, free: 14.92 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005296/1.352, allocations: 367.8 kB / 1.412 GB, free: 14.64 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=49): time 2.014e-06/1.352, allocations: 0 / 1.412 GB, free: 14.64 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49): time 0.0008375/1.353, allocations: 0.4926 MB / 1.413 GB, free: 14.27 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.663e-05/1.353, allocations: 89.56 kB / 1.413 GB, free: 14.17 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003416/1.353, allocations: 306.9 kB / 1.413 GB, free: 13.93 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.621e-05/1.353, allocations: 32.83 kB / 1.413 GB, free: 13.89 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002145/1.354, allocations: 279.3 kB / 1.414 GB, free: 13.68 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001305/1.354, allocations: 152.9 kB / 1.414 GB, free: 13.55 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.631e-05/1.354, allocations: 0 / 1.414 GB, free: 13.55 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001822/1.354, allocations: 361.2 kB / 1.414 GB, free: 13.2 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002988/1.354, allocations: 209.8 kB / 1.414 GB, free: 13.08 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003772/1.355, allocations: 330.5 kB / 1.415 GB, free: 12.81 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003689/1.355, allocations: 235.9 kB / 1.415 GB, free: 12.66 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/1.355, allocations: 0 / 1.415 GB, free: 12.66 MB / 0.8386 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008922/1.356, allocations: 0.5989 MB / 1.415 GB, free: 12.23 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005607/1.357, allocations: 1.071 MB / 1.416 GB, free: 11.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/1.357, allocations: 0 / 1.416 GB, free: 11.09 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.464e-05/1.357, allocations: 8 kB / 1.416 GB, free: 11.08 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005438/1.357, allocations: 111.7 kB / 1.417 GB, free: 10.97 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/1.357, allocations: 15.94 kB / 1.417 GB, free: 10.96 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004691/1.358, allocations: 59.53 kB / 1.417 GB, free: 10.9 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.731e-05/1.358, allocations: 23.44 kB / 1.417 GB, free: 10.88 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/1.358, allocations: 4 kB / 1.417 GB, free: 10.88 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008076/1.359, allocations: 477.8 kB / 1.417 GB, free: 10.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/1.359, allocations: 8.031 kB / 1.417 GB, free: 10.55 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.706e-06/1.359, allocations: 11.94 kB / 1.417 GB, free: 10.54 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000413/1.359, allocations: 103.5 kB / 1.417 GB, free: 10.44 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/1.359, allocations: 11.92 kB / 1.417 GB, free: 10.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003839/1.359, allocations: 51.64 kB / 1.417 GB, free: 10.38 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.799e-05/1.36, allocations: 23.75 kB / 1.417 GB, free: 10.36 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.0001705/1.36, allocations: 122.7 kB / 1.417 GB, free: 10.23 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.486e-05/1.36, allocations: 47.44 kB / 1.417 GB, free: 10.19 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009672/1.361, allocations: 0.5389 MB / 1.418 GB, free: 9.805 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/1.361, allocations: 8 kB / 1.418 GB, free: 9.797 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/1.361, allocations: 0 / 1.418 GB, free: 9.797 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/1.361, allocations: 3.984 kB / 1.418 GB, free: 9.793 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006608/1.362, allocations: 0.5458 MB / 1.419 GB, free: 9.359 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/1.362, allocations: 0 / 1.419 GB, free: 9.359 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004632/1.362, allocations: 99.55 kB / 1.419 GB, free: 9.266 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/1.362, allocations: 0 / 1.419 GB, free: 9.266 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.276e-05/1.362, allocations: 4 kB / 1.419 GB, free: 9.262 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.139e-06/1.362, allocations: 3.984 kB / 1.419 GB, free: 9.258 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/1.362, allocations: 7.953 kB / 1.419 GB, free: 9.25 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001087/1.363, allocations: 0.8347 MB / 1.419 GB, free: 8.656 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002015/1.363, allocations: 179 kB / 1.42 GB, free: 8.488 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.937e-05/1.363, allocations: 2.688 kB / 1.42 GB, free: 8.488 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003161/1.364, allocations: 36.05 kB / 1.42 GB, free: 8.453 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001269/1.364, allocations: 55.84 kB / 1.42 GB, free: 8.41 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.34e-05/1.364, allocations: 18.86 kB / 1.42 GB, free: 8.395 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002228/1.364, allocations: 235.6 kB / 1.42 GB, free: 8.219 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.364, allocations: 4 kB / 1.42 GB, free: 8.215 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0007567/1.365, allocations: 258.7 kB / 1.42 GB, free: 7.965 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.0002498/1.365, allocations: 139.9 kB / 1.42 GB, free: 7.824 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001187/1.366, allocations: 0.8928 MB / 1.421 GB, free: 7.18 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/1.366, allocations: 0 / 1.421 GB, free: 7.18 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000333/1.367, allocations: 264.4 kB / 1.421 GB, free: 7.004 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007587/1.368, allocations: 142.9 kB / 1.422 GB, free: 6.891 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001465/1.369, allocations: 0.7887 MB / 1.422 GB, free: 6.191 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005008/1.37, allocations: 0.9199 MB / 1.423 GB, free: 5.262 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0005996/1.37, allocations: 164.5 kB / 1.423 GB, free: 5.102 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001372/1.37, allocations: 43.05 kB / 1.423 GB, free: 5.062 MB / 0.8386 GB Notification: Performance of SimCode: time 2.81e-07/1.37, allocations: 0 / 1.423 GB, free: 5.062 MB / 0.8386 GB Notification: Performance of Templates: time 0.0134/1.384, allocations: 7.978 MB / 1.431 GB, free: 13.19 MB / 0.8542 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