Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.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_N,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.|load.terminal.phase.4..v.1.|load.terminal.phase.4..v.2.|load.terminal.phase.4..i.1.|load.terminal.phase.4..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N,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.|load.terminal.phase.4..v.1.|load.terminal.phase.4..v.2.|load.terminal.phase.4..i.1.|load.terminal.phase.4..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 99.7 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.001454/0.001454, allocations: 177.3 kB / 15.95 MB, free: 216 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.478/1.478, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.716/2.716, allocations: 436.5 MB / 0.7104 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003756/0.0003757, allocations: 11.98 kB / 0.8708 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7094/0.7098, allocations: 153.7 MB / 1.021 GB, free: 1.078 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N): time 0.01217/0.722, allocations: 10.47 MB / 1.031 GB, free: 6.578 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.008536/0.7306, allocations: 5.142 MB / 1.036 GB, free: 1.426 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008689/0.7315, allocations: 35.88 kB / 1.036 GB, free: 1.391 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0008847/0.7324, allocations: 322.2 kB / 1.036 GB, free: 1.074 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001396/0.7338, allocations: 0.5452 MB / 1.037 GB, free: 0.5273 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001582/0.7354, allocations: 0.6071 MB / 1.038 GB, free: 15.92 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001487/0.7369, allocations: 1.197 MB / 1.039 GB, free: 14.72 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004662/0.7416, allocations: 3.861 MB / 1.042 GB, free: 10.8 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009507/0.7425, allocations: 0.6503 MB / 1.043 GB, free: 10.15 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001227/0.7438, allocations: 0.732 MB / 1.044 GB, free: 9.418 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.000184/0.7439, allocations: 103.9 kB / 1.044 GB, free: 9.316 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009859/0.7449, allocations: 327.6 kB / 1.044 GB, free: 8.996 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0006614/0.7456, allocations: 0.6821 MB / 1.045 GB, free: 8.312 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0003661/0.746, allocations: 364.8 kB / 1.045 GB, free: 7.949 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.003046/0.749, allocations: 3.259 MB / 1.048 GB, free: 4.684 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.7491, allocations: 0 / 1.048 GB, free: 4.684 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.514e-06/0.7491, allocations: 4 kB / 1.048 GB, free: 4.68 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.119e-05/0.7491, allocations: 0 / 1.048 GB, free: 4.68 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: 425 * Number of variables: 425 Notification: Performance of Generate backend data structure: time 0.003445/0.7526, allocations: 1.769 MB / 1.05 GB, free: 2.855 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.7526, allocations: 19.92 kB / 1.05 GB, free: 2.836 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003027/0.7557, allocations: 0.7626 MB / 1.051 GB, free: 2.07 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00251/0.7582, allocations: 1.231 MB / 1.052 GB, free: 0.7969 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.536e-05/0.7583, allocations: 123.2 kB / 1.052 GB, free: 0.6758 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002662/0.7586, allocations: 156 kB / 1.052 GB, free: 0.5234 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00461/0.7632, allocations: 2.933 MB / 1.055 GB, free: 13.53 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.111e-05/0.7632, allocations: 11.84 kB / 1.055 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000171/0.7634, allocations: 71.98 kB / 1.055 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003754/0.7638, allocations: 203 kB / 1.056 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003745/0.7675, allocations: 2.507 MB / 1.058 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01441/0.782, allocations: 10.91 MB / 1.069 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001258/0.7833, allocations: 0.9235 MB / 1.07 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001331/0.7834, allocations: 89.47 kB / 1.07 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.149e-05/0.7835, allocations: 42.94 kB / 1.07 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=46): time 3.146e-06/0.7835, allocations: 0 / 1.07 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of matching and sorting (n=70): time 0.0265/0.81, allocations: 8.969 MB / 1.078 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.026e-05/0.8101, allocations: 81.67 kB / 1.078 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001445/0.8115, allocations: 0.9454 MB / 1.079 GB, free: 3.711 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001319/0.8117, allocations: 37.7 kB / 1.079 GB, free: 3.668 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005519/0.8122, allocations: 0.7774 MB / 1.08 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002434/0.8125, allocations: 248.6 kB / 1.08 GB, free: 2.629 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.951e-05/0.8126, allocations: 20 kB / 1.08 GB, free: 2.609 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002003/0.8128, allocations: 394.8 kB / 1.081 GB, free: 2.215 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001162/0.8139, allocations: 0.7989 MB / 1.082 GB, free: 1.418 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001356/0.8153, allocations: 1.156 MB / 1.083 GB, free: 100 kB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001455/0.8168, allocations: 0.9947 MB / 1.084 GB, free: 15.1 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.231e-06/0.8168, allocations: 4 kB / 1.084 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.009536/0.8263, allocations: 3.783 MB / 1.087 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.002194/0.8286, allocations: 4.271 MB / 1.092 GB, free: 6.691 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.296e-05/0.8286, allocations: 12 kB / 1.092 GB, free: 6.68 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00828/0.8369, allocations: 2.154 MB / 1.094 GB, free: 4.52 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/0.8379, allocations: 231.6 kB / 1.094 GB, free: 4.293 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01684/0.8548, allocations: 10.68 MB / 1.104 GB, free: 9.355 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001466/0.8563, allocations: 195.5 kB / 1.105 GB, free: 9.164 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000131/0.8564, allocations: 47.98 kB / 1.105 GB, free: 9.117 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.8564, allocations: 4 kB / 1.105 GB, free: 9.113 MB / 0.8575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00797/0.8644, allocations: 3.08 MB / 1.108 GB, free: 6.027 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.909e-05/0.8645, allocations: 16 kB / 1.108 GB, free: 6.012 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005497/0.87, allocations: 1.361 MB / 1.109 GB, free: 4.648 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/0.8712, allocations: 291.5 kB / 1.109 GB, free: 4.363 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01189/0.8831, allocations: 6.384 MB / 1.115 GB, free: 13.85 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001343/0.8845, allocations: 167.7 kB / 1.116 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.871e-05/0.8846, allocations: 51.98 kB / 1.116 GB, free: 13.63 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (97): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 12} * Non-linear torn systems: 1 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.001444/0.886, allocations: 0.9025 MB / 1.117 GB, free: 12.72 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001777/0.8862, allocations: 86.97 kB / 1.117 GB, free: 12.63 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009193/0.8954, allocations: 3.312 MB / 1.12 GB, free: 9.297 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.8955, allocations: 12 kB / 1.12 GB, free: 9.285 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.8955, allocations: 4 kB / 1.12 GB, free: 9.281 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/0.8955, allocations: 7.938 kB / 1.12 GB, free: 9.273 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01392/0.9094, allocations: 5.497 MB / 1.125 GB, free: 3.664 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.867e-06/0.9095, allocations: 3.984 kB / 1.125 GB, free: 3.66 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004131/0.9099, allocations: 103.9 kB / 1.125 GB, free: 3.559 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007318/0.9172, allocations: 1.974 MB / 1.127 GB, free: 1.578 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00012/0.9173, allocations: 16 kB / 1.127 GB, free: 1.562 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01594/0.9333, allocations: 10.09 MB / 1.137 GB, free: 7.207 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.9334, allocations: 0 / 1.137 GB, free: 7.207 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00834/0.9417, allocations: 3.293 MB / 1.14 GB, free: 3.809 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008361/0.9426, allocations: 340 kB / 1.141 GB, free: 3.457 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001399/0.9427, allocations: 16 kB / 1.141 GB, free: 3.441 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009331/0.9437, allocations: 151.8 kB / 1.141 GB, free: 3.293 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002644/0.9439, allocations: 64.42 kB / 1.141 GB, free: 3.23 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.495e-05/0.944, allocations: 20 kB / 1.141 GB, free: 3.211 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0009234/0.9449, allocations: 0.6746 MB / 1.142 GB, free: 2.543 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9449, allocations: 0 / 1.142 GB, free: 2.543 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.002254/0.9472, allocations: 0.6992 MB / 1.142 GB, free: 1.844 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): 40 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 12} * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003204/0.9475, allocations: 127.1 kB / 1.142 GB, free: 1.711 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.00755/0.9551, allocations: 3.912 MB / 1.146 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.9551, allocations: 0 / 1.146 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.002141/0.9573, allocations: 1.314 MB / 1.148 GB, free: 12.43 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001108/0.9584, allocations: 252.9 kB / 1.148 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005905/0.9643, allocations: 4.083 MB / 1.152 GB, free: 8.043 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001538/0.9659, allocations: 1.754 MB / 1.153 GB, free: 6.254 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.001228/0.9671, allocations: 0.5148 MB / 1.154 GB, free: 5.734 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000168/0.9673, allocations: 59.42 kB / 1.154 GB, free: 5.676 MB / 0.9044 GB Notification: Performance of SimCode: time 6.81e-07/0.9673, allocations: 0 / 1.154 GB, free: 5.676 MB / 0.9044 GB Notification: Performance of Templates: time 0.04339/1.011, allocations: 29.59 MB / 1.183 GB, free: 8.281 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches