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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001574/0.001574, allocations: 99.86 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.001859/0.001859, 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.483/1.483, 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.691/2.691, allocations: 436.5 MB / 0.7104 GB, free: 7.93 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004158/0.0004158, allocations: 8 kB / 0.8708 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8366/0.837, allocations: 153.7 MB / 1.021 GB, free: 1.137 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.03175/0.8688, allocations: 30.61 MB / 1.051 GB, free: 2.445 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01967/0.8885, allocations: 9.652 MB / 1.06 GB, free: 8.77 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004832/0.8934, allocations: 123.2 kB / 1.06 GB, free: 8.648 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.003502/0.8969, allocations: 0.6793 MB / 1.061 GB, free: 7.965 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.007827/0.9048, allocations: 1.569 MB / 1.062 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.005563/0.9104, allocations: 1.164 MB / 1.064 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.009815/0.9202, allocations: 3.885 MB / 1.067 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02271/0.943, allocations: 10.4 MB / 1.078 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005919/0.9489, allocations: 2.137 MB / 1.08 GB, free: 4.715 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006024/0.955, allocations: 2.199 MB / 1.082 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.002012/0.957, allocations: 284 kB / 1.082 GB, free: 2.23 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004052/0.9611, allocations: 0.5307 MB / 1.083 GB, free: 1.699 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.004541/0.9657, allocations: 1.918 MB / 1.084 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.004261/0.97, allocations: 1.03 MB / 1.085 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.01415/0.9841, allocations: 8.402 MB / 1.094 GB, free: 6.316 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.9842, allocations: 7.938 kB / 1.094 GB, free: 6.309 MB / 0.8419 GB Notification: Performance of FrontEnd: time 4.008e-06/0.9842, allocations: 0 / 1.094 GB, free: 6.309 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0005011/0.9847, allocations: 0 / 1.094 GB, free: 6.309 MB / 0.8419 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.01571/1, allocations: 4.371 MB / 1.098 GB, free: 1.867 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 9.329e-05/1.001, allocations: 15.98 kB / 1.098 GB, free: 1.852 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007479/1.008, allocations: 0.9111 MB / 1.099 GB, free: 0.9336 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0121/1.02, allocations: 2.921 MB / 1.102 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005925/1.021, allocations: 365.5 kB / 1.102 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002481/1.023, allocations: 468 kB / 1.102 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02709/1.05, allocations: 7.828 MB / 1.11 GB, free: 4.949 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003411/1.051, allocations: 19.78 kB / 1.11 GB, free: 4.93 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002623/1.054, allocations: 208 kB / 1.11 GB, free: 4.727 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007785/1.054, allocations: 369.1 kB / 1.111 GB, free: 4.363 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0166/1.071, allocations: 5.898 MB / 1.116 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06052/1.131, allocations: 36.24 MB / 1.152 GB, free: 6.977 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004338/1.136, allocations: 2.138 MB / 1.154 GB, free: 4.828 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000225/1.136, allocations: 13.31 kB / 1.154 GB, free: 4.816 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.596e-05/1.136, allocations: 55.81 kB / 1.154 GB, free: 4.754 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=157): time 3.627e-06/1.136, allocations: 0 / 1.154 GB, free: 4.754 MB / 0.9044 GB Notification: Performance of matching and sorting (n=160): time 0.01825/1.154, allocations: 7.536 MB / 1.161 GB, free: 12.94 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.857e-05/1.155, allocations: 72.66 kB / 1.161 GB, free: 12.86 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004204/1.159, allocations: 1.841 MB / 1.163 GB, free: 10.99 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.000241/1.159, allocations: 57.7 kB / 1.163 GB, free: 10.93 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.00179/1.161, allocations: 2.119 MB / 1.165 GB, free: 8.785 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007135/1.162, allocations: 0.5624 MB / 1.166 GB, free: 8.215 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001759/1.162, allocations: 48 kB / 1.166 GB, free: 8.168 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0002372/1.162, allocations: 386.3 kB / 1.166 GB, free: 7.785 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001918/1.164, allocations: 1.055 MB / 1.167 GB, free: 6.727 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002423/1.166, allocations: 1.744 MB / 1.169 GB, free: 4.668 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002286/1.169, allocations: 1.349 MB / 1.17 GB, free: 3.316 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.251e-05/1.169, allocations: 8 kB / 1.17 GB, free: 3.309 MB / 0.92 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.007486/1.176, allocations: 3.898 MB / 1.174 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.183e-05/1.176, allocations: 16.19 kB / 1.174 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-05/1.176, allocations: 24 kB / 1.174 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002588/1.179, allocations: 0.935 MB / 1.175 GB, free: 14.35 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001723/1.181, allocations: 435.2 kB / 1.176 GB, free: 13.93 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02168/1.202, allocations: 21.41 MB / 1.196 GB, free: 6.91 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002828/1.205, allocations: 123.8 kB / 1.197 GB, free: 6.789 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005525/1.206, allocations: 104 kB / 1.197 GB, free: 6.688 MB / 0.9512 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 (227): * Single equations (assignments): 215 * 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.00425/1.21, allocations: 1.646 MB / 1.198 GB, free: 5.031 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009744/1.211, allocations: 261 kB / 1.199 GB, free: 4.773 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006746/1.218, allocations: 3.248 MB / 1.202 GB, free: 1.48 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.623e-05/1.218, allocations: 16 kB / 1.202 GB, free: 1.465 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.859e-05/1.218, allocations: 8 kB / 1.202 GB, free: 1.457 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.331e-05/1.218, allocations: 7.969 kB / 1.202 GB, free: 1.449 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01776/1.236, allocations: 7.541 MB / 1.209 GB, free: 9.75 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.318e-05/1.236, allocations: 4 kB / 1.209 GB, free: 9.746 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/1.237, allocations: 219.6 kB / 1.209 GB, free: 9.531 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002487/1.239, allocations: 0.8999 MB / 1.21 GB, free: 8.594 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002026/1.24, allocations: 32 kB / 1.21 GB, free: 8.562 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02126/1.261, allocations: 21.37 MB / 1.231 GB, free: 1.59 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.167e-06/1.261, allocations: 7.938 kB / 1.231 GB, free: 1.582 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008124/1.269, allocations: 3.693 MB / 1.235 GB, free: 13.65 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002074/1.271, allocations: 0.5331 MB / 1.235 GB, free: 13.09 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008825/1.272, allocations: 39.94 kB / 1.235 GB, free: 13.05 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001646/1.274, allocations: 87.89 kB / 1.235 GB, free: 12.97 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005036/1.274, allocations: 145 kB / 1.235 GB, free: 12.83 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000151/1.275, allocations: 48 kB / 1.236 GB, free: 12.78 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002648/1.277, allocations: 1.205 MB / 1.237 GB, free: 11.56 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.1e-07/1.277, allocations: 0 / 1.237 GB, free: 11.56 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.005217/1.282, allocations: 0.9023 MB / 1.238 GB, free: 10.66 MB / 0.9981 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 () * Number of clocked 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%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005162/1.283, allocations: 155 kB / 1.238 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.008251/1.291, allocations: 4.413 MB / 1.242 GB, free: 5.93 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.315e-05/1.291, allocations: 4 kB / 1.242 GB, free: 5.926 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.00476/1.296, allocations: 2.999 MB / 1.245 GB, free: 2.77 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004443/1.3, allocations: 0.7463 MB / 1.246 GB, free: 2.023 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6357/1.936, allocations: 9.231 MB / 1.255 GB, free: 205.5 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005426/1.942, allocations: 3.287 MB / 1.258 GB, free: 204.7 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002652/1.944, allocations: 0.5281 MB / 1.258 GB, free: 204.6 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005107/1.945, allocations: 140.3 kB / 1.259 GB, free: 204.6 MB / 0.9981 GB Notification: Performance of SimCode: time 1.653e-06/1.945, allocations: 0.5625 kB / 1.259 GB, free: 204.6 MB / 0.9981 GB Notification: Performance of Templates: time 0.07277/2.018, allocations: 39.73 MB / 1.297 GB, free: 185.8 MB / 0.9981 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