Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.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.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.509/2.509, allocations: 390.5 MB / 398 MB, free: 10.96 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.001325/0.001325, allocations: 180.9 kB / 491.2 MB, free: 1.605 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.533/1.533, allocations: 221.5 MB / 0.7868 GB, free: 13.35 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.001073/0.001073, allocations: 93.95 kB / 0.9269 GB, free: 13.84 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.738e-05/2.733e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.233/0.233, allocations: 143 MB / 1.212 GB, free: 39.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9687/1.202, allocations: 208 MB / 1.415 GB, free: 8.891 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003402/1.202, allocations: 92.5 kB / 1.416 GB, free: 8.84 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.3848/1.587, allocations: 120.1 MB / 1.533 GB, free: 14.63 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.793e-06/1.587, allocations: 0 / 1.533 GB, free: 14.63 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0002802/1.587, allocations: 75.98 kB / 1.533 GB, free: 14.55 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.009071/1.596, allocations: 2.665 MB / 1.536 GB, free: 11.83 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/1.596, allocations: 12.03 kB / 1.536 GB, free: 11.82 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00527/1.602, allocations: 0.6597 MB / 1.536 GB, free: 11.16 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008051/1.61, allocations: 2.063 MB / 1.538 GB, free: 9.031 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000244/1.61, allocations: 96 kB / 1.538 GB, free: 8.938 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001525/1.612, allocations: 175.9 kB / 1.538 GB, free: 8.766 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01053/1.622, allocations: 2.98 MB / 1.541 GB, free: 5.781 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01437/1.637, allocations: 4.114 MB / 1.545 GB, free: 1.422 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001146/1.637, allocations: 15.88 kB / 1.545 GB, free: 1.406 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004379/1.637, allocations: 12 kB / 1.545 GB, free: 1.395 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000306/1.638, allocations: 173.8 kB / 1.546 GB, free: 1.223 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03397/1.672, allocations: 20.98 MB / 1.566 GB, free: 10.27 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002533/1.674, allocations: 1.238 MB / 1.567 GB, free: 9.012 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001919/1.676, allocations: 0.988 MB / 1.568 GB, free: 8.027 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 9.121e-05/1.676, allocations: 9.312 kB / 1.568 GB, free: 8.02 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.476e-05/1.676, allocations: 47.86 kB / 1.568 GB, free: 7.961 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=107): time 5.19e-06/1.676, allocations: 4 kB / 1.568 GB, free: 7.957 MB / 0.9792 GB Notification: Performance of matching and sorting (n=138): time 0.01381/1.69, allocations: 4.726 MB / 1.573 GB, free: 3.238 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.086e-05/1.69, allocations: 64.72 kB / 1.573 GB, free: 3.164 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001999/1.692, allocations: 0.8267 MB / 1.574 GB, free: 2.328 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.0001762/1.692, allocations: 25.7 kB / 1.574 GB, free: 2.297 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.001299/1.694, allocations: 1.303 MB / 1.575 GB, free: 0.9766 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007038/1.694, allocations: 465.1 kB / 1.576 GB, free: 0.5156 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/1.695, allocations: 0 / 1.576 GB, free: 0.5156 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.000221/1.695, allocations: 365.9 kB / 1.576 GB, free: 156 kB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001676/1.697, allocations: 0.8318 MB / 1.577 GB, free: 15.32 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002144/1.699, allocations: 1.28 MB / 1.578 GB, free: 13.84 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002143/1.701, allocations: 1.064 MB / 1.579 GB, free: 12.77 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.327e-05/1.701, allocations: 4 kB / 1.579 GB, free: 12.77 MB / 0.9948 GB Notification: Performance of matching and sorting (n=205) (initialization): time 0.008067/1.709, allocations: 3.175 MB / 1.582 GB, free: 9.578 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 4.866e-05/1.709, allocations: 12 kB / 1.582 GB, free: 9.566 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.703e-05/1.709, allocations: 19.98 kB / 1.582 GB, free: 9.547 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004235/1.713, allocations: 1.085 MB / 1.583 GB, free: 8.457 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001673/1.715, allocations: 267.5 kB / 1.583 GB, free: 8.195 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02267/1.738, allocations: 12.04 MB / 1.595 GB, free: 11.82 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002264/1.74, allocations: 59.91 kB / 1.595 GB, free: 11.76 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002365/1.74, allocations: 64.06 kB / 1.595 GB, free: 11.7 MB / 1.01 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (134): * Single equations (assignments): 131 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,84.0%) 17,(5,84.0%) 17,(5,88.0%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004345/1.741, allocations: 148.5 kB / 1.595 GB, free: 11.54 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003879/1.741, allocations: 154.2 kB / 1.596 GB, free: 11.39 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008377/1.75, allocations: 2.946 MB / 1.598 GB, free: 8.418 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.433e-05/1.75, allocations: 12 kB / 1.598 GB, free: 8.406 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.43e-05/1.75, allocations: 12 kB / 1.598 GB, free: 8.395 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.423e-05/1.75, allocations: 11.92 kB / 1.599 GB, free: 8.383 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01485/1.765, allocations: 5.496 MB / 1.604 GB, free: 2.773 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-05/1.765, allocations: 8.031 kB / 1.604 GB, free: 2.766 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/1.766, allocations: 147.8 kB / 1.604 GB, free: 2.621 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004186/1.77, allocations: 1.012 MB / 1.605 GB, free: 1.602 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001821/1.77, allocations: 11.94 kB / 1.605 GB, free: 1.59 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02218/1.792, allocations: 11.72 MB / 1.616 GB, free: 5.523 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-05/1.792, allocations: 4 kB / 1.616 GB, free: 5.52 MB / 1.026 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008154/1.801, allocations: 3.191 MB / 1.62 GB, free: 2.164 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001495/1.802, allocations: 411 kB / 1.62 GB, free: 1.742 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003706/1.803, allocations: 8 kB / 1.62 GB, free: 1.734 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001316/1.804, allocations: 56.27 kB / 1.62 GB, free: 1.68 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005444/1.804, allocations: 125 kB / 1.62 GB, free: 1.555 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001328/1.805, allocations: 36 kB / 1.62 GB, free: 1.52 MB / 1.026 GB Notification: Performance of sorting global known variables: time 0.001453/1.806, allocations: 0.6204 MB / 1.621 GB, free: 0.8945 MB / 1.026 GB Notification: Performance of sort global known variables: time 3.1e-07/1.806, allocations: 0 / 1.621 GB, free: 0.8945 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.003989/1.81, allocations: 0.5938 MB / 1.621 GB, free: 308 kB / 1.026 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 67 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,84.0%) 17,(5,88.0%) 25,(5,84.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00038/1.81, allocations: 127 kB / 1.622 GB, free: 172 kB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.005775/1.816, allocations: 2.877 MB / 1.624 GB, free: 13.26 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/1.816, allocations: 384 / 1.624 GB, free: 13.26 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 0.002801/1.819, allocations: 1.83 MB / 1.626 GB, free: 11.4 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002184/1.821, allocations: 398.5 kB / 1.626 GB, free: 11.02 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00826/1.83, allocations: 4.227 MB / 1.631 GB, free: 6.695 MB / 1.042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002511/1.832, allocations: 2.391 MB / 1.633 GB, free: 4.27 MB / 1.042 GB Notification: Performance of simCode: alias equations: time 0.001262/1.833, allocations: 337.3 kB / 1.633 GB, free: 3.934 MB / 1.042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002472/1.834, allocations: 83.44 kB / 1.633 GB, free: 3.852 MB / 1.042 GB Notification: Performance of SimCode: time 1.533e-06/1.834, allocations: 0 / 1.633 GB, free: 3.852 MB / 1.042 GB Notification: Performance of Templates: time 0.04925/1.883, allocations: 27.31 MB / 1.66 GB, free: 8.914 MB / 1.073 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches