Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.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.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009522/0.0009522, allocations: 95.62 kB / 15.05 MB, free: 1.113 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.001007/0.001007, allocations: 181.3 kB / 15.95 MB, free: 220 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.423/1.423, allocations: 223.2 MB / 239.9 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.863/2.863, allocations: 436.5 MB / 0.7104 GB, free: 7.824 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003896/0.0003899, allocations: 15.98 kB / 0.8708 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7719/0.7723, allocations: 153.7 MB / 1.021 GB, free: 1.105 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid): time 0.01099/0.7834, allocations: 10.39 MB / 1.031 GB, free: 6.684 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.007544/0.791, allocations: 4.943 MB / 1.036 GB, free: 1.73 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009034/0.7919, allocations: 27.88 kB / 1.036 GB, free: 1.703 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0009463/0.7929, allocations: 322.2 kB / 1.036 GB, free: 1.387 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001566/0.7945, allocations: 0.5296 MB / 1.037 GB, free: 0.8555 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001627/0.7961, allocations: 0.5683 MB / 1.037 GB, free: 296 kB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001511/0.7976, allocations: 1.141 MB / 1.038 GB, free: 15.15 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004859/0.8025, allocations: 3.618 MB / 1.042 GB, free: 11.47 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001027/0.8035, allocations: 0.6074 MB / 1.042 GB, free: 10.86 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00092/0.8045, allocations: 0.6774 MB / 1.043 GB, free: 10.18 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001599/0.8046, allocations: 92 kB / 1.043 GB, free: 10.09 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009205/0.8056, allocations: 299.7 kB / 1.043 GB, free: 9.801 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0005854/0.8061, allocations: 0.6704 MB / 1.044 GB, free: 9.129 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002952/0.8065, allocations: 345 kB / 1.044 GB, free: 8.785 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.002381/0.8088, allocations: 3.014 MB / 1.047 GB, free: 5.766 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.8088, allocations: 0 / 1.047 GB, free: 5.766 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.924e-06/0.8089, allocations: 8 kB / 1.047 GB, free: 5.758 MB / 0.795 GB Notification: Performance of Transformations before backend: time 3.518e-05/0.8089, allocations: 0 / 1.047 GB, free: 5.758 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 406 * Number of variables: 406 Notification: Performance of Generate backend data structure: time 0.002961/0.8119, allocations: 1.636 MB / 1.049 GB, free: 4.066 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.8119, allocations: 11.98 kB / 1.049 GB, free: 4.055 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002302/0.8142, allocations: 0.4936 MB / 1.049 GB, free: 3.559 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002184/0.8164, allocations: 1.135 MB / 1.051 GB, free: 2.379 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.11e-05/0.8165, allocations: 111.1 kB / 1.051 GB, free: 2.27 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002331/0.8168, allocations: 152 kB / 1.051 GB, free: 2.121 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004251/0.821, allocations: 2.723 MB / 1.054 GB, free: 15.33 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.941e-05/0.8211, allocations: 7.938 kB / 1.054 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001601/0.8212, allocations: 64 kB / 1.054 GB, free: 15.26 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003358/0.8216, allocations: 174.9 kB / 1.054 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003507/0.8251, allocations: 2.28 MB / 1.056 GB, free: 12.8 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01145/0.8366, allocations: 10.55 MB / 1.066 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000895/0.8375, allocations: 0.5804 MB / 1.067 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001075/0.8376, allocations: 93.08 kB / 1.067 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.904e-05/0.8376, allocations: 34.56 kB / 1.067 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=36): time 2.745e-06/0.8377, allocations: 0 / 1.067 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of matching and sorting (n=52): time 0.01931/0.857, allocations: 6.295 MB / 1.073 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.029e-05/0.8571, allocations: 81.55 kB / 1.073 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/0.8583, allocations: 0.9022 MB / 1.074 GB, free: 9.262 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 8.997e-05/0.8584, allocations: 37.7 kB / 1.074 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004432/0.8588, allocations: 0.7577 MB / 1.075 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001511/0.859, allocations: 189.4 kB / 1.075 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.611e-05/0.859, allocations: 16 kB / 1.075 GB, free: 8.246 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001596/0.8592, allocations: 386.8 kB / 1.075 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000935/0.8601, allocations: 0.646 MB / 1.076 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001266/0.8614, allocations: 1.011 MB / 1.077 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001125/0.8626, allocations: 0.8102 MB / 1.078 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.165e-06/0.8626, allocations: 4 kB / 1.078 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.008499/0.8711, allocations: 3.217 MB / 1.081 GB, free: 1.988 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.001726/0.8728, allocations: 4.525 MB / 1.085 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.091e-05/0.8729, allocations: 15.94 kB / 1.085 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007629/0.8805, allocations: 1.852 MB / 1.087 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008564/0.8814, allocations: 219.7 kB / 1.087 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01379/0.8952, allocations: 10.53 MB / 1.098 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00129/0.8965, allocations: 183.5 kB / 1.098 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.732e-05/0.8966, allocations: 44 kB / 1.098 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.107e-05/0.8966, allocations: 4.062 kB / 1.098 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006859/0.9035, allocations: 2.625 MB / 1.1 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.57e-05/0.9036, allocations: 12 kB / 1.101 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005083/0.9087, allocations: 1.203 MB / 1.102 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009998/0.9097, allocations: 259.5 kB / 1.102 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007069/0.9168, allocations: 5.7 MB / 1.107 GB, free: 5.645 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001156/0.9179, allocations: 143.7 kB / 1.108 GB, free: 5.504 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.446e-05/0.918, allocations: 44 kB / 1.108 GB, free: 5.461 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 2 {2 2,2 2} Notification: Performance of prepare postOptimizeDAE: time 0.00134/0.9194, allocations: 0.844 MB / 1.108 GB, free: 4.605 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001448/0.9195, allocations: 75.06 kB / 1.109 GB, free: 4.531 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007727/0.9273, allocations: 2.699 MB / 1.111 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.9273, allocations: 4 kB / 1.111 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.9273, allocations: 7.938 kB / 1.111 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.09e-05/0.9273, allocations: 3.984 kB / 1.111 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01085/0.9382, allocations: 4.528 MB / 1.116 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.263e-06/0.9382, allocations: 4 kB / 1.116 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003851/0.9386, allocations: 95.86 kB / 1.116 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00671/0.9453, allocations: 1.705 MB / 1.117 GB, free: 11.35 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.458e-05/0.9455, allocations: 12 kB / 1.117 GB, free: 11.34 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01338/0.9588, allocations: 10.06 MB / 1.127 GB, free: 0.7422 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.9589, allocations: 4.031 kB / 1.127 GB, free: 0.7383 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00754/0.9664, allocations: 2.747 MB / 1.13 GB, free: 13.88 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007386/0.9672, allocations: 284.1 kB / 1.13 GB, free: 13.58 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001336/0.9674, allocations: 12 kB / 1.13 GB, free: 13.57 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000806/0.9682, allocations: 131.7 kB / 1.13 GB, free: 13.44 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002435/0.9684, allocations: 55.89 kB / 1.13 GB, free: 13.39 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.843e-05/0.9685, allocations: 20 kB / 1.13 GB, free: 13.37 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0009217/0.9694, allocations: 0.6317 MB / 1.131 GB, free: 12.74 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.51e-07/0.9694, allocations: 0 / 1.131 GB, free: 12.74 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.002315/0.9717, allocations: 0.6015 MB / 1.132 GB, free: 12.14 MB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 2 {2 2,2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002574/0.972, allocations: 135 kB / 1.132 GB, free: 12 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.005133/0.9771, allocations: 3.254 MB / 1.135 GB, free: 8.676 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/0.9772, allocations: 0 / 1.135 GB, free: 8.676 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.002944/0.9801, allocations: 1.288 MB / 1.136 GB, free: 7.336 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001789/0.9819, allocations: 211.5 kB / 1.136 GB, free: 7.133 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005983/0.988, allocations: 3.548 MB / 1.14 GB, free: 3.527 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001245/0.9892, allocations: 1.649 MB / 1.141 GB, free: 1.844 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001267/0.9905, allocations: 494.6 kB / 1.142 GB, free: 1.355 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001567/0.9907, allocations: 55.42 kB / 1.142 GB, free: 1.301 MB / 0.8887 GB Notification: Performance of SimCode: time 1.122e-06/0.9907, allocations: 0 / 1.142 GB, free: 1.301 MB / 0.8887 GB Notification: Performance of Templates: time 0.03681/1.027, allocations: 23.45 MB / 1.165 GB, free: 9.98 MB / 0.92 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches