Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.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_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.248/2.248, 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.001108/0.001108, allocations: 184.8 kB / 491.2 MB, free: 1.582 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.636/1.636, 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.0009909/0.000991, allocations: 83.55 kB / 0.9269 GB, free: 13.85 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.063e-05/2.098e-05, allocations: 8 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2918/0.2919, allocations: 143 MB / 1.212 GB, free: 39.53 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.097/1.389, allocations: 182.5 MB / 1.391 GB, free: 14.91 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002475/1.389, allocations: 93.88 kB / 1.391 GB, free: 14.89 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.4432/1.832, allocations: 192.6 MB / 1.579 GB, free: 14.73 MB / 0.9948 GB Notification: Performance of FrontEnd: time 2.454e-06/1.832, allocations: 0 / 1.579 GB, free: 14.73 MB / 0.9948 GB Notification: Performance of Transformations before backend: time 0.0003664/1.833, allocations: 124 kB / 1.579 GB, free: 14.61 MB / 0.9948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.01419/1.847, allocations: 4.145 MB / 1.583 GB, free: 10.4 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 5.283e-05/1.847, allocations: 20.02 kB / 1.583 GB, free: 10.38 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006903/1.854, allocations: 1.009 MB / 1.584 GB, free: 9.367 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007906/1.862, allocations: 3.21 MB / 1.587 GB, free: 6.102 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001873/1.862, allocations: 156 kB / 1.587 GB, free: 5.949 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001185/1.863, allocations: 280 kB / 1.587 GB, free: 5.676 MB / 0.9948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01027/1.873, allocations: 4.721 MB / 1.592 GB, free: 0.9492 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01601/1.889, allocations: 6.7 MB / 1.599 GB, free: 9.781 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001933/1.89, allocations: 23.72 kB / 1.599 GB, free: 9.758 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001168/1.891, allocations: 12 kB / 1.599 GB, free: 9.746 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003975/1.891, allocations: 269.2 kB / 1.599 GB, free: 9.48 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04848/1.94, allocations: 35.21 MB / 1.633 GB, free: 3.062 MB / 1.042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0038/1.944, allocations: 2.047 MB / 1.635 GB, free: 1.004 MB / 1.042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002306/1.946, allocations: 1.408 MB / 1.637 GB, free: 15.6 MB / 1.057 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001492/1.946, allocations: 17.31 kB / 1.637 GB, free: 15.58 MB / 1.057 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.135e-05/1.946, allocations: 59.83 kB / 1.637 GB, free: 15.51 MB / 1.057 GB Notification: Performance of pre-optimization done (n=157): time 4.127e-06/1.946, allocations: 3.938 kB / 1.637 GB, free: 15.51 MB / 1.057 GB Notification: Performance of matching and sorting (n=160): time 0.01052/1.957, allocations: 4.753 MB / 1.641 GB, free: 10.7 MB / 1.057 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.954e-05/1.957, allocations: 72.72 kB / 1.641 GB, free: 10.62 MB / 1.057 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002739/1.96, allocations: 1.236 MB / 1.643 GB, free: 9.348 MB / 1.057 GB Notification: Performance of collectPreVariables (initialization): time 0.0002161/1.96, allocations: 25.7 kB / 1.643 GB, free: 9.316 MB / 1.057 GB Notification: Performance of collectInitialEqns (initialization): time 0.001645/1.961, allocations: 2.106 MB / 1.645 GB, free: 7.184 MB / 1.057 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006926/1.962, allocations: 0.5351 MB / 1.645 GB, free: 6.641 MB / 1.057 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001355/1.962, allocations: 0 / 1.645 GB, free: 6.641 MB / 1.057 GB Notification: Performance of setup shared object (initialization): time 0.0002207/1.963, allocations: 394 kB / 1.646 GB, free: 6.25 MB / 1.057 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001592/1.964, allocations: 0.953 MB / 1.647 GB, free: 5.293 MB / 1.057 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002148/1.966, allocations: 1.663 MB / 1.648 GB, free: 3.297 MB / 1.057 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002072/1.968, allocations: 1.236 MB / 1.649 GB, free: 2.059 MB / 1.057 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.472e-05/1.968, allocations: 12 kB / 1.649 GB, free: 2.047 MB / 1.057 GB Notification: Performance of matching and sorting (n=269) (initialization): time 0.006704/1.975, allocations: 3.491 MB / 1.653 GB, free: 14.51 MB / 1.073 GB Notification: Performance of prepare postOptimizeDAE: time 3.647e-05/1.975, allocations: 18.53 kB / 1.653 GB, free: 14.49 MB / 1.073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.029e-05/1.975, allocations: 35.86 kB / 1.653 GB, free: 14.46 MB / 1.073 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002346/1.978, allocations: 0.8766 MB / 1.654 GB, free: 13.54 MB / 1.073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001604/1.979, allocations: 419.2 kB / 1.654 GB, free: 13.13 MB / 1.073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01936/1.999, allocations: 20.18 MB / 1.674 GB, free: 7.57 MB / 1.089 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002413/2.001, allocations: 87.83 kB / 1.674 GB, free: 7.484 MB / 1.089 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005313/2.002, allocations: 92 kB / 1.674 GB, free: 7.395 MB / 1.089 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 203 * 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: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007472/2.002, allocations: 173 kB / 1.674 GB, free: 7.219 MB / 1.089 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008495/2.003, allocations: 237.3 kB / 1.674 GB, free: 6.984 MB / 1.089 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005547/2.009, allocations: 3.053 MB / 1.677 GB, free: 3.883 MB / 1.089 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-05/2.009, allocations: 19.95 kB / 1.677 GB, free: 3.863 MB / 1.089 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-05/2.009, allocations: 8 kB / 1.677 GB, free: 3.855 MB / 1.089 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-05/2.009, allocations: 7.969 kB / 1.677 GB, free: 3.848 MB / 1.089 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01206/2.021, allocations: 6.582 MB / 1.684 GB, free: 13.11 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.027e-06/2.021, allocations: 8.094 kB / 1.684 GB, free: 13.11 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009731/2.022, allocations: 211.7 kB / 1.684 GB, free: 12.9 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002253/2.024, allocations: 0.8613 MB / 1.685 GB, free: 12 MB / 1.104 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.969e-05/2.024, allocations: 8 kB / 1.685 GB, free: 11.99 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01926/2.044, allocations: 20.16 MB / 1.705 GB, free: 6.453 MB / 1.12 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.108e-05/2.044, allocations: 7.938 kB / 1.705 GB, free: 6.445 MB / 1.12 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006081/2.05, allocations: 3.509 MB / 1.708 GB, free: 2.672 MB / 1.12 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001429/2.051, allocations: 0.4982 MB / 1.709 GB, free: 2.152 MB / 1.12 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002751/2.052, allocations: 8 kB / 1.709 GB, free: 2.145 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/2.053, allocations: 63.88 kB / 1.709 GB, free: 2.082 MB / 1.12 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004141/2.053, allocations: 145 kB / 1.709 GB, free: 1.941 MB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001039/2.053, allocations: 44 kB / 1.709 GB, free: 1.898 MB / 1.12 GB Notification: Performance of sorting global known variables: time 0.001414/2.055, allocations: 0.91 MB / 1.71 GB, free: 0.9688 MB / 1.12 GB Notification: Performance of sort global known variables: time 1.4e-07/2.055, allocations: 0 / 1.71 GB, free: 0.9688 MB / 1.12 GB Notification: Performance of remove unused functions: time 0.003669/2.058, allocations: 0.8437 MB / 1.71 GB, free: 128 kB / 1.12 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 (109): * Single equations (assignments): 97 * 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: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003381/2.059, allocations: 131 kB / 1.711 GB, free: 15.98 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.006149/2.065, allocations: 4.077 MB / 1.715 GB, free: 11.79 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 9.197e-06/2.065, allocations: 8 kB / 1.715 GB, free: 11.79 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.004125/2.069, allocations: 2.818 MB / 1.717 GB, free: 8.852 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003533/2.073, allocations: 0.6475 MB / 1.718 GB, free: 8.207 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01295/2.085, allocations: 5.903 MB / 1.724 GB, free: 2.203 MB / 1.135 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004183/2.09, allocations: 3.293 MB / 1.727 GB, free: 14.87 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002428/2.092, allocations: 0.4923 MB / 1.727 GB, free: 14.38 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003604/2.093, allocations: 135.4 kB / 1.728 GB, free: 14.24 MB / 1.151 GB Notification: Performance of SimCode: time 1.112e-06/2.093, allocations: 0 / 1.728 GB, free: 14.24 MB / 1.151 GB Notification: Performance of Templates: time 0.8351/2.928, allocations: 35.26 MB / 1.762 GB, free: 289.7 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches