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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 98.53 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.46/1.46, allocations: 223.2 MB / 239.9 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.647/2.647, allocations: 436.5 MB / 0.7104 GB, free: 7.934 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004068/0.0004071, allocations: 11.94 kB / 0.8708 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8297/0.8302, allocations: 153.6 MB / 1.021 GB, free: 1.098 MB / 0.7638 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.00624/0.8365, allocations: 5.278 MB / 1.026 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003365/0.8399, allocations: 2.024 MB / 1.028 GB, free: 9.77 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000314/0.8402, allocations: 7.938 kB / 1.028 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002209/0.8404, allocations: 63.42 kB / 1.028 GB, free: 9.699 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0006776/0.8411, allocations: 255.2 kB / 1.028 GB, free: 9.449 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008491/0.842, allocations: 286.2 kB / 1.029 GB, free: 9.172 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006386/0.8426, allocations: 482.9 kB / 1.029 GB, free: 8.699 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001173/0.8438, allocations: 0.7142 MB / 1.03 GB, free: 7.941 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003173/0.8441, allocations: 223.1 kB / 1.03 GB, free: 7.723 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003795/0.8445, allocations: 254.9 kB / 1.03 GB, free: 7.473 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.316e-05/0.8446, allocations: 24 kB / 1.03 GB, free: 7.449 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003986/0.845, allocations: 183.7 kB / 1.03 GB, free: 7.27 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001472/0.8452, allocations: 135.5 kB / 1.03 GB, free: 7.137 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000131/0.8453, allocations: 133.4 kB / 1.031 GB, free: 7 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0007336/0.846, allocations: 0.7422 MB / 1.031 GB, free: 6.258 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.846, allocations: 0 / 1.031 GB, free: 6.258 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.282e-06/0.8461, allocations: 4 kB / 1.031 GB, free: 6.254 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.517e-06/0.8461, allocations: 0 / 1.031 GB, free: 6.254 MB / 0.7794 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.001625/0.8477, allocations: 0.8518 MB / 1.032 GB, free: 5.348 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.8477, allocations: 11.98 kB / 1.032 GB, free: 5.336 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006707/0.8484, allocations: 139 kB / 1.032 GB, free: 5.199 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006268/0.8491, allocations: 433.8 kB / 1.033 GB, free: 4.734 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.09e-05/0.8491, allocations: 44.94 kB / 1.033 GB, free: 4.688 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.907e-05/0.8492, allocations: 52 kB / 1.033 GB, free: 4.637 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001123/0.8504, allocations: 0.6848 MB / 1.033 GB, free: 3.926 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.8504, allocations: 0 / 1.033 GB, free: 3.926 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.116e-05/0.8504, allocations: 27.98 kB / 1.034 GB, free: 3.898 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-05/0.8505, allocations: 56.91 kB / 1.034 GB, free: 3.844 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001017/0.8515, allocations: 0.5621 MB / 1.034 GB, free: 3.281 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00347/0.855, allocations: 2.912 MB / 1.037 GB, free: 128 kB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001044/0.8561, allocations: 0.5716 MB / 1.038 GB, free: 15.54 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004965/0.8566, allocations: 0.5661 MB / 1.038 GB, free: 14.84 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006385/0.8572, allocations: 403.3 kB / 1.038 GB, free: 14.43 MB / 0.795 GB Notification: Performance of pre-optimization done (n=46): time 2.204e-06/0.8573, allocations: 0 / 1.038 GB, free: 14.43 MB / 0.795 GB Notification: Performance of matching and sorting (n=46): time 0.001384/0.8586, allocations: 0.7536 MB / 1.039 GB, free: 13.67 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.124e-05/0.8587, allocations: 85.11 kB / 1.039 GB, free: 13.57 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003767/0.8591, allocations: 369.5 kB / 1.04 GB, free: 13.2 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 6.063e-05/0.8592, allocations: 41.7 kB / 1.04 GB, free: 13.15 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002126/0.8594, allocations: 288.5 kB / 1.04 GB, free: 12.86 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001352/0.8595, allocations: 153.8 kB / 1.04 GB, free: 12.71 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.94e-05/0.8596, allocations: 12 kB / 1.04 GB, free: 12.7 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001566/0.8597, allocations: 354.8 kB / 1.04 GB, free: 12.34 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004417/0.8602, allocations: 237 kB / 1.041 GB, free: 12.11 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005084/0.8607, allocations: 354.7 kB / 1.041 GB, free: 11.72 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004788/0.8612, allocations: 285.7 kB / 1.041 GB, free: 11.43 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.8612, allocations: 0 / 1.041 GB, free: 11.43 MB / 0.795 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001095/0.8623, allocations: 0.6909 MB / 1.042 GB, free: 10.73 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004524/0.8628, allocations: 1.085 MB / 1.043 GB, free: 9.559 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.854e-06/0.8628, allocations: 0 / 1.043 GB, free: 9.559 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.01e-05/0.8628, allocations: 8 kB / 1.043 GB, free: 9.551 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004982/0.8633, allocations: 107.8 kB / 1.043 GB, free: 9.445 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.616e-05/0.8633, allocations: 12.09 kB / 1.043 GB, free: 9.434 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000454/0.8638, allocations: 75.48 kB / 1.043 GB, free: 9.359 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.26e-05/0.8638, allocations: 23.98 kB / 1.043 GB, free: 9.336 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.8639, allocations: 4 kB / 1.043 GB, free: 9.332 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009785/0.8648, allocations: 0.5797 MB / 1.044 GB, free: 8.746 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.8649, allocations: 4 kB / 1.044 GB, free: 8.742 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.995e-06/0.8649, allocations: 4 kB / 1.044 GB, free: 8.738 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003852/0.8653, allocations: 103.8 kB / 1.044 GB, free: 8.637 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.8653, allocations: 7.984 kB / 1.044 GB, free: 8.629 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003727/0.8657, allocations: 75.72 kB / 1.044 GB, free: 8.555 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.4e-05/0.8657, allocations: 16 kB / 1.044 GB, free: 8.539 MB / 0.795 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 65 * 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.0003381/0.866, allocations: 295.2 kB / 1.044 GB, free: 8.242 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.011e-05/0.8661, allocations: 47.44 kB / 1.044 GB, free: 8.195 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001054/0.8672, allocations: 0.5893 MB / 1.045 GB, free: 7.598 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.812e-06/0.8672, allocations: 4 kB / 1.045 GB, free: 7.594 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.8672, allocations: 0 / 1.045 GB, free: 7.594 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.8672, allocations: 11.89 kB / 1.045 GB, free: 7.582 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007027/0.8679, allocations: 0.6258 MB / 1.046 GB, free: 6.906 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.868, allocations: 0 / 1.046 GB, free: 6.906 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004987/0.8685, allocations: 99.83 kB / 1.046 GB, free: 6.809 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.181e-06/0.8685, allocations: 8 kB / 1.046 GB, free: 6.801 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.954e-05/0.8685, allocations: 12 kB / 1.046 GB, free: 6.789 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.8685, allocations: 0 / 1.046 GB, free: 6.789 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.8685, allocations: 0 / 1.046 GB, free: 6.789 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001399/0.8699, allocations: 0.9073 MB / 1.047 GB, free: 5.852 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002159/0.8702, allocations: 176.4 kB / 1.047 GB, free: 5.66 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.523e-05/0.8702, allocations: 12 kB / 1.047 GB, free: 5.648 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003114/0.8706, allocations: 43.95 kB / 1.047 GB, free: 5.605 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.8707, allocations: 55.95 kB / 1.047 GB, free: 5.551 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.159e-05/0.8707, allocations: 15.98 kB / 1.047 GB, free: 5.535 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002584/0.871, allocations: 255.2 kB / 1.047 GB, free: 5.293 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.871, allocations: 0 / 1.047 GB, free: 5.293 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000709/0.8717, allocations: 267.1 kB / 1.047 GB, free: 5.031 MB / 0.795 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 45 * 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.0002169/0.8719, allocations: 134.5 kB / 1.047 GB, free: 4.895 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001556/0.8735, allocations: 0.9803 MB / 1.048 GB, free: 3.895 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.389e-06/0.8735, allocations: 0 / 1.048 GB, free: 3.895 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004529/0.874, allocations: 283.4 kB / 1.049 GB, free: 3.617 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007203/0.8747, allocations: 144.4 kB / 1.049 GB, free: 3.477 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00192/0.8766, allocations: 1.268 MB / 1.05 GB, free: 2.18 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000457/0.8771, allocations: 0.9029 MB / 1.051 GB, free: 1.246 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0004772/0.8776, allocations: 152.3 kB / 1.051 GB, free: 1.094 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001358/0.8777, allocations: 47.42 kB / 1.051 GB, free: 1.047 MB / 0.795 GB Notification: Performance of SimCode: time 3.01e-07/0.8777, allocations: 0 / 1.051 GB, free: 1.047 MB / 0.795 GB Notification: Performance of Templates: time 0.01354/0.8913, allocations: 7.639 MB / 1.059 GB, free: 9.504 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (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 & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches