Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_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.ACLine_RLC_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RLCLine_1.terminal_n.phase.1..i.1.|RLCLine_1.terminal_n.phase.1..i.2.|RLCLine_sc.terminal_n.phase.1..i.1.|RLCLine_sc.terminal_n.phase.1..i.2.|RLCLine_2a.terminal_n.phase.1..i.1.|RLCLine_2a.terminal_n.phase.1..i.2.|RLCLine_3a.terminal_n.phase.1..i.1.|RLCLine_3a.terminal_n.phase.1..i.2.|RLCLine_3b.terminal_n.phase.1..i.1.|RLCLine_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RLCLine_1.terminal_n.phase.1..i.1.|RLCLine_1.terminal_n.phase.1..i.2.|RLCLine_sc.terminal_n.phase.1..i.1.|RLCLine_sc.terminal_n.phase.1..i.2.|RLCLine_2a.terminal_n.phase.1..i.1.|RLCLine_2a.terminal_n.phase.1..i.2.|RLCLine_3a.terminal_n.phase.1..i.1.|RLCLine_3a.terminal_n.phase.1..i.2.|RLCLine_3b.terminal_n.phase.1..i.1.|RLCLine_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 98.53 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.001579/0.001579, allocations: 177.3 kB / 15.94 MB, free: 228 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.444/1.444, allocations: 223.2 MB / 239.9 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.712/2.712, allocations: 436.5 MB / 0.7104 GB, free: 7.918 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004018/0.0004019, allocations: 11.94 kB / 0.8708 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8792/0.8796, allocations: 153.6 MB / 1.021 GB, free: 1.07 MB / 0.7638 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N): time 0.04017/0.9199, allocations: 35.74 MB / 1.056 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.02547/0.9454, allocations: 14.53 MB / 1.07 GB, free: 14.68 MB / 0.8263 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005009/0.9505, allocations: 151.1 kB / 1.07 GB, free: 14.53 MB / 0.8263 GB Notification: Performance of NFTyping.typeComponents: time 0.004265/0.9547, allocations: 0.8306 MB / 1.071 GB, free: 13.69 MB / 0.8263 GB Notification: Performance of NFTyping.typeBindings: time 0.01092/0.9657, allocations: 2.115 MB / 1.073 GB, free: 11.57 MB / 0.8263 GB Notification: Performance of NFTyping.typeClassSections: time 0.008216/0.974, allocations: 1.928 MB / 1.075 GB, free: 9.645 MB / 0.8263 GB Notification: Performance of NFFlatten.flatten: time 0.0129/0.9869, allocations: 5.725 MB / 1.08 GB, free: 3.91 MB / 0.8263 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02502/1.012, allocations: 13.97 MB / 1.094 GB, free: 5.848 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007924/1.02, allocations: 3.157 MB / 1.097 GB, free: 2.68 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008315/1.028, allocations: 3.305 MB / 1.1 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.003459/1.032, allocations: 396 kB / 1.101 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006322/1.038, allocations: 0.7688 MB / 1.101 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.00596/1.044, allocations: 2.74 MB / 1.104 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.004005/1.048, allocations: 1.385 MB / 1.106 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.01582/1.064, allocations: 11.6 MB / 1.117 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/1.064, allocations: 0 / 1.117 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.485e-06/1.064, allocations: 0 / 1.117 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0005327/1.065, allocations: 4 kB / 1.117 GB, free: 14.43 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1668 * Number of variables: 1668 Notification: Performance of Generate backend data structure: time 0.0204/1.085, allocations: 6.178 MB / 1.123 GB, free: 8.176 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.792e-05/1.085, allocations: 11.98 kB / 1.123 GB, free: 8.164 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0113/1.096, allocations: 1.514 MB / 1.124 GB, free: 6.641 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01427/1.111, allocations: 4.101 MB / 1.128 GB, free: 2.465 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005549/1.111, allocations: 456.1 kB / 1.129 GB, free: 2.016 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0031/1.114, allocations: 0.5935 MB / 1.129 GB, free: 1.422 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02793/1.142, allocations: 10.58 MB / 1.14 GB, free: 6.461 MB / 0.8888 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004128/1.143, allocations: 39.61 kB / 1.14 GB, free: 6.422 MB / 0.8888 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002408/1.145, allocations: 263.9 kB / 1.14 GB, free: 6.164 MB / 0.8888 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003215/1.149, allocations: 0.7768 MB / 1.141 GB, free: 5.383 MB / 0.8888 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0204/1.169, allocations: 8.514 MB / 1.149 GB, free: 12.85 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07357/1.243, allocations: 46.99 MB / 1.195 GB, free: 10.09 MB / 0.9513 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006752/1.249, allocations: 4.293 MB / 1.199 GB, free: 5.789 MB / 0.9513 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004905/1.25, allocations: 38.78 kB / 1.199 GB, free: 5.75 MB / 0.9513 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.828e-05/1.25, allocations: 77.28 kB / 1.199 GB, free: 5.664 MB / 0.9513 GB Notification: Performance of pre-optimization done (n=353): time 5.861e-06/1.25, allocations: 0 / 1.199 GB, free: 5.664 MB / 0.9513 GB Notification: Performance of matching and sorting (n=578): time 1.198/2.448, allocations: 127.9 MB / 1.324 GB, free: 164.2 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.154e-05/2.448, allocations: 111.9 kB / 1.324 GB, free: 164.1 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003143/2.451, allocations: 2.657 MB / 1.327 GB, free: 161.4 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.001191/2.452, allocations: 121.7 kB / 1.327 GB, free: 161.3 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001272/2.454, allocations: 2.669 MB / 1.33 GB, free: 158.6 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002145/2.456, allocations: 1.954 MB / 1.331 GB, free: 156.7 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003883/2.456, allocations: 114.1 kB / 1.332 GB, free: 156.6 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0002444/2.457, allocations: 0.5257 MB / 1.332 GB, free: 156 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004863/2.461, allocations: 4.064 MB / 1.336 GB, free: 152 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005383/2.467, allocations: 4.972 MB / 1.341 GB, free: 146.7 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005992/2.473, allocations: 4.811 MB / 1.346 GB, free: 141.8 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.53e-05/2.473, allocations: 12 kB / 1.346 GB, free: 141.8 MB / 0.9981 GB Notification: Performance of matching and sorting (n=713) (initialization): time 0.03525/2.508, allocations: 16.92 MB / 1.362 GB, free: 124.8 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5.254e-05/2.508, allocations: 16 kB / 1.362 GB, free: 124.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.111e-05/2.508, allocations: 28.62 kB / 1.362 GB, free: 124.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02936/2.538, allocations: 9.052 MB / 1.371 GB, free: 115.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002396/2.54, allocations: 0.5226 MB / 1.372 GB, free: 115.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08507/2.625, allocations: 73.69 MB / 1.444 GB, free: 39.97 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005298/2.631, allocations: 275.7 kB / 1.444 GB, free: 39.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008515/2.631, allocations: 192 kB / 1.444 GB, free: 39.52 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (274): * Single equations (assignments): 263 * 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: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(5,84.0%) 17,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(14,51.0%) 72,(14,51.0%) 72,(6,77.8%) 40,(7,71.4%) 71,(8,70.3%) 70,(6,77.8%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004314/2.636, allocations: 2.425 MB / 1.446 GB, free: 37.08 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001218/2.637, allocations: 470.5 kB / 1.447 GB, free: 36.61 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03324/2.67, allocations: 16.75 MB / 1.463 GB, free: 19.72 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.612e-05/2.67, allocations: 59.94 kB / 1.463 GB, free: 19.66 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002145/2.67, allocations: 68 kB / 1.463 GB, free: 19.59 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001066/2.671, allocations: 31.89 kB / 1.463 GB, free: 19.56 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05961/2.73, allocations: 25.62 MB / 1.488 GB, free: 9.707 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.708e-05/2.73, allocations: 8 kB / 1.488 GB, free: 9.699 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001945/2.732, allocations: 323 kB / 1.489 GB, free: 9.387 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03026/2.763, allocations: 8.261 MB / 1.497 GB, free: 1.086 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001513/2.764, allocations: 111.9 kB / 1.497 GB, free: 0.9766 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1124/2.876, allocations: 70.52 MB / 1.566 GB, free: 9.004 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.457e-06/2.877, allocations: 15.98 kB / 1.566 GB, free: 8.988 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04478/2.921, allocations: 22.18 MB / 1.587 GB, free: 2.27 MB / 1.108 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004802/2.926, allocations: 1.362 MB / 1.589 GB, free: 0.8828 MB / 1.108 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001284/2.927, allocations: 112 kB / 1.589 GB, free: 0.7734 MB / 1.108 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003933/2.931, allocations: 287.6 kB / 1.589 GB, free: 0.4922 MB / 1.108 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001873/2.933, allocations: 0.522 MB / 1.59 GB, free: 15.96 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004553/2.934, allocations: 143.9 kB / 1.59 GB, free: 15.83 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.002683/2.936, allocations: 1.749 MB / 1.591 GB, free: 14.09 MB / 1.123 GB Notification: Performance of sort global known variables: time 1.5e-07/2.936, allocations: 0 / 1.591 GB, free: 14.09 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.008219/2.945, allocations: 2.465 MB / 1.594 GB, free: 11.62 MB / 1.123 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 8 (RLCLine_sc.phase1.Vc[1],RLCLine_sc.phase1.Vc[2],RLCLine_sc.phase2.Vc[1],RLCLine_sc.phase2.Vc[2],RLCLine_sc.phase3.Vc[1],RLCLine_sc.phase3.Vc[2],RLCLine_sc.neutral.Vc[1],RLCLine_sc.neutral.Vc[2]) * 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 (142): * 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: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(6,77.8%) 40,(8,70.3%) 70,(14,51.0%) 72,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(5,84.0%) 17,(6,83.3%) 40,(8,70.3%) 70,(14,51.0%) 72} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008286/2.946, allocations: 247.1 kB / 1.594 GB, free: 11.38 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.02634/2.972, allocations: 14.49 MB / 1.608 GB, free: 12.69 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 1.434e-05/2.972, allocations: 4 kB / 1.608 GB, free: 12.69 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.02045/2.992, allocations: 9.37 MB / 1.617 GB, free: 3.172 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006267/2.999, allocations: 1.193 MB / 1.619 GB, free: 1.996 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03909/3.038, allocations: 18.12 MB / 1.636 GB, free: 15.75 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01056/3.048, allocations: 5.021 MB / 1.641 GB, free: 10.69 MB / 1.17 GB Notification: Performance of simCode: alias equations: time 0.005372/3.054, allocations: 0.741 MB / 1.642 GB, free: 9.941 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00138/3.055, allocations: 199.4 kB / 1.642 GB, free: 9.746 MB / 1.17 GB Notification: Performance of SimCode: time 9.61e-07/3.055, allocations: 0 / 1.642 GB, free: 9.746 MB / 1.17 GB Notification: Performance of Templates: time 0.8888/3.944, allocations: 135.4 MB / 1.774 GB, free: 390.2 MB / 1.233 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches