Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.441/1.441, allocations: 249.5 MB / 257 MB, free: 6.902 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001038/0.001038, allocations: 175.4 kB / 316.3 MB, free: 3.227 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.427/1.427, allocations: 205.3 MB / 0.5671 GB, free: 15.87 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008077/0.0008077, allocations: 94.44 kB / 0.6714 GB, free: 4.98 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.031e-05/2.034e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2034/0.2035, allocations: 106.3 MB / 0.8852 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7467/0.9502, allocations: 164.8 MB / 1.046 GB, free: 6.691 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002737/0.9505, allocations: 94.66 kB / 1.046 GB, free: 6.641 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 0.4141/1.365, allocations: 180.8 MB / 1.223 GB, free: 10.36 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.074e-06/1.365, allocations: 0 / 1.223 GB, free: 10.36 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 0.0003414/1.365, allocations: 131.9 kB / 1.223 GB, free: 10.23 MB / 0.8386 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.01231/1.377, allocations: 4.155 MB / 1.227 GB, free: 6.012 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/1.377, allocations: 8.031 kB / 1.227 GB, free: 6.004 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005921/1.383, allocations: 1.016 MB / 1.228 GB, free: 4.98 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006682/1.39, allocations: 3.21 MB / 1.231 GB, free: 1.715 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001604/1.39, allocations: 156 kB / 1.231 GB, free: 1.562 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007362/1.391, allocations: 276 kB / 1.231 GB, free: 1.293 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009131/1.4, allocations: 4.721 MB / 1.236 GB, free: 12.56 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01156/1.412, allocations: 6.704 MB / 1.243 GB, free: 5.391 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.884e-05/1.412, allocations: 23.78 kB / 1.243 GB, free: 5.367 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004381/1.412, allocations: 19.95 kB / 1.243 GB, free: 5.348 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002713/1.413, allocations: 269.1 kB / 1.243 GB, free: 5.082 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5094/1.922, allocations: 35.19 MB / 1.277 GB, free: 201.5 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003324/1.925, allocations: 2.049 MB / 1.279 GB, free: 201.5 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001868/1.927, allocations: 1.406 MB / 1.281 GB, free: 201.5 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001008/1.927, allocations: 17.16 kB / 1.281 GB, free: 201.5 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.868e-05/1.927, allocations: 62.7 kB / 1.281 GB, free: 201.4 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=157): time 3.777e-06/1.927, allocations: 0 / 1.281 GB, free: 201.4 MB / 0.8698 GB Notification: Performance of matching and sorting (n=160): time 0.01071/1.938, allocations: 4.759 MB / 1.285 GB, free: 200.8 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.943e-05/1.938, allocations: 71.16 kB / 1.285 GB, free: 200.7 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00238/1.941, allocations: 1.244 MB / 1.287 GB, free: 200.5 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0002284/1.941, allocations: 27.56 kB / 1.287 GB, free: 200.4 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001324/1.942, allocations: 2.105 MB / 1.289 GB, free: 199.7 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005921/1.943, allocations: 0.5323 MB / 1.289 GB, free: 199.3 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.04e-05/1.943, allocations: 0 / 1.289 GB, free: 199.3 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001552/1.943, allocations: 394.6 kB / 1.29 GB, free: 199 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001352/1.944, allocations: 0.9511 MB / 1.291 GB, free: 199 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002176/1.947, allocations: 1.661 MB / 1.292 GB, free: 198.2 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002295/1.949, allocations: 1.24 MB / 1.293 GB, free: 198.1 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.626e-05/1.949, allocations: 8.281 kB / 1.293 GB, free: 198.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=269) (initialization): time 0.007368/1.956, allocations: 3.493 MB / 1.297 GB, free: 197.9 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 4.393e-05/1.956, allocations: 14.31 kB / 1.297 GB, free: 197.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.979e-05/1.957, allocations: 25.2 kB / 1.297 GB, free: 197.9 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002276/1.959, allocations: 0.882 MB / 1.298 GB, free: 197.8 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001659/1.96, allocations: 417.9 kB / 1.298 GB, free: 197.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01576/1.976, allocations: 20.19 MB / 1.318 GB, free: 183.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002238/1.979, allocations: 85.39 kB / 1.318 GB, free: 183.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004693/1.979, allocations: 97.8 kB / 1.318 GB, free: 183.4 MB / 0.8698 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.0004908/1.98, allocations: 170.9 kB / 1.318 GB, free: 183.2 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006633/1.98, allocations: 233.4 kB / 1.318 GB, free: 183.1 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004995/1.985, allocations: 3.055 MB / 1.321 GB, free: 182.9 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-05/1.985, allocations: 20.36 kB / 1.321 GB, free: 182.9 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.686e-05/1.985, allocations: 10.22 kB / 1.321 GB, free: 182.9 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.599e-05/1.985, allocations: 6 kB / 1.321 GB, free: 182.9 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01166/1.997, allocations: 6.584 MB / 1.328 GB, free: 182.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/1.997, allocations: 3.875 kB / 1.328 GB, free: 182.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009225/1.998, allocations: 219.2 kB / 1.328 GB, free: 182.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001979/2, allocations: 0.8599 MB / 1.329 GB, free: 182.2 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001214/2, allocations: 3.812 kB / 1.329 GB, free: 182.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01352/2.014, allocations: 20.17 MB / 1.349 GB, free: 167.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.297e-06/2.014, allocations: 10.84 kB / 1.349 GB, free: 167.8 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004739/2.018, allocations: 3.498 MB / 1.352 GB, free: 166.8 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001116/2.02, allocations: 0.5001 MB / 1.353 GB, free: 166.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002802/2.02, allocations: 11.42 kB / 1.353 GB, free: 166.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001015/2.021, allocations: 67.31 kB / 1.353 GB, free: 166.6 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004366/2.021, allocations: 140.2 kB / 1.353 GB, free: 166.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001056/2.021, allocations: 51.5 kB / 1.353 GB, free: 166.6 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.001366/2.023, allocations: 0.9018 MB / 1.354 GB, free: 166.4 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.41e-07/2.023, allocations: 0 / 1.354 GB, free: 166.4 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.003947/2.027, allocations: 0.8463 MB / 1.355 GB, free: 166.4 MB / 0.8698 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.0003016/2.027, allocations: 136.4 kB / 1.355 GB, free: 166.3 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.005389/2.032, allocations: 4.068 MB / 1.359 GB, free: 165 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/2.033, allocations: 0 / 1.359 GB, free: 165 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.003502/2.036, allocations: 2.826 MB / 1.361 GB, free: 163.7 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003359/2.039, allocations: 0.6455 MB / 1.362 GB, free: 163.7 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01101/2.05, allocations: 5.905 MB / 1.368 GB, free: 161.9 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003027/2.053, allocations: 3.292 MB / 1.371 GB, free: 160.6 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.001902/2.055, allocations: 0.4934 MB / 1.371 GB, free: 160.6 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003107/2.056, allocations: 129.8 kB / 1.372 GB, free: 160.6 MB / 0.8698 GB Notification: Performance of SimCode: time 1.252e-06/2.056, allocations: 0 / 1.372 GB, free: 160.6 MB / 0.8698 GB Notification: Performance of Templates: time 0.05733/2.113, allocations: 35.28 MB / 1.406 GB, free: 159.4 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches