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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 100.3 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.0009802/0.0009804, allocations: 177.3 kB / 15.95 MB, free: 216 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.419/1.419, allocations: 223.2 MB / 239.9 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.835/2.835, allocations: 436.5 MB / 0.7104 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004162/0.0004162, allocations: 19.92 kB / 0.8708 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8335/0.8339, allocations: 153.6 MB / 1.021 GB, free: 1.086 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N): time 0.01948/0.8535, allocations: 17.64 MB / 1.038 GB, free: 15.39 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.011/0.8645, allocations: 6.202 MB / 1.044 GB, free: 9.176 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001815/0.8664, allocations: 71.56 kB / 1.044 GB, free: 9.105 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001509/0.8679, allocations: 401.5 kB / 1.045 GB, free: 8.711 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.003225/0.8711, allocations: 0.8645 MB / 1.045 GB, free: 7.844 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.002615/0.8738, allocations: 0.7751 MB / 1.046 GB, free: 7.07 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.004171/0.878, allocations: 2.327 MB / 1.048 GB, free: 4.738 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01058/0.8886, allocations: 6.379 MB / 1.055 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002609/0.8912, allocations: 1.32 MB / 1.056 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002624/0.8938, allocations: 1.37 MB / 1.057 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0007389/0.8946, allocations: 176 kB / 1.057 GB, free: 11.43 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001522/0.8961, allocations: 411.6 kB / 1.058 GB, free: 11.03 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.00185/0.898, allocations: 1.243 MB / 1.059 GB, free: 9.785 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.001346/0.8994, allocations: 0.6408 MB / 1.06 GB, free: 9.137 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.005754/0.9051, allocations: 5.298 MB / 1.065 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.9051, allocations: 0 / 1.065 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.623e-06/0.9052, allocations: 0 / 1.065 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0002199/0.9054, allocations: 0 / 1.065 GB, free: 3.824 MB / 0.8106 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.007643/0.913, allocations: 2.831 MB / 1.068 GB, free: 0.9297 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.9131, allocations: 15.98 kB / 1.068 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003778/0.9169, allocations: 0.6245 MB / 1.068 GB, free: 292 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004747/0.9217, allocations: 1.892 MB / 1.07 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001949/0.9219, allocations: 218 kB / 1.07 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008982/0.9228, allocations: 299.8 kB / 1.071 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008487/0.9313, allocations: 4.847 MB / 1.075 GB, free: 8.781 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.399e-05/0.9314, allocations: 7.938 kB / 1.075 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002926/0.9317, allocations: 128 kB / 1.075 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004182/0.9321, allocations: 229.7 kB / 1.076 GB, free: 8.422 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006435/0.9386, allocations: 3.727 MB / 1.079 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02863/0.9672, allocations: 21.61 MB / 1.1 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001868/0.9691, allocations: 1.3 MB / 1.102 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 6.19e-05/0.9692, allocations: 24.92 kB / 1.102 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.828e-05/0.9693, allocations: 43.56 kB / 1.102 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=107): time 3.937e-06/0.9693, allocations: 0 / 1.102 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of matching and sorting (n=138): time 0.02393/0.9932, allocations: 8.649 MB / 1.11 GB, free: 2.984 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.073e-05/0.9933, allocations: 72.66 kB / 1.11 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001474/0.9948, allocations: 1.122 MB / 1.111 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0001492/0.9949, allocations: 53.7 kB / 1.111 GB, free: 1.715 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008458/0.9958, allocations: 1.3 MB / 1.113 GB, free: 408 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.000424/0.9962, allocations: 477.3 kB / 1.113 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.326e-05/0.9963, allocations: 32 kB / 1.113 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001576/0.9965, allocations: 369.9 kB / 1.114 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001267/0.9978, allocations: 0.9057 MB / 1.114 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001548/0.9993, allocations: 1.318 MB / 1.116 GB, free: 13.13 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001524/1.001, allocations: 1.138 MB / 1.117 GB, free: 11.99 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/1.001, allocations: 4 kB / 1.117 GB, free: 11.99 MB / 0.8731 GB Notification: Performance of matching and sorting (n=203) (initialization): time 0.006054/1.007, allocations: 3.446 MB / 1.12 GB, free: 8.527 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.046e-05/1.007, allocations: 12.03 kB / 1.12 GB, free: 8.516 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.067e-05/1.007, allocations: 12 kB / 1.12 GB, free: 8.504 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003131/1.01, allocations: 1.181 MB / 1.121 GB, free: 7.316 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009728/1.011, allocations: 255.6 kB / 1.122 GB, free: 7.066 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01783/1.029, allocations: 13.18 MB / 1.134 GB, free: 9.484 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001917/1.031, allocations: 91.97 kB / 1.135 GB, free: 9.395 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001467/1.031, allocations: 63.98 kB / 1.135 GB, free: 9.332 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (132): * Single equations (assignments): 129 * 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,92.0%) 17,(5,92.0%) 17,(5,88.0%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002672/1.034, allocations: 1.114 MB / 1.136 GB, free: 8.207 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003697/1.034, allocations: 162.1 kB / 1.136 GB, free: 8.047 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005879/1.04, allocations: 3.161 MB / 1.139 GB, free: 4.859 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.405e-05/1.04, allocations: 12 kB / 1.139 GB, free: 4.848 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.624e-05/1.04, allocations: 16 kB / 1.139 GB, free: 4.832 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.405e-05/1.04, allocations: 11.95 kB / 1.139 GB, free: 4.82 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0108/1.051, allocations: 6.237 MB / 1.145 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.065e-05/1.051, allocations: 4 kB / 1.145 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006015/1.052, allocations: 148.1 kB / 1.145 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002804/1.054, allocations: 1.072 MB / 1.146 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.414e-05/1.055, allocations: 32 kB / 1.146 GB, free: 13.19 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01573/1.07, allocations: 12.91 MB / 1.159 GB, free: 15.88 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.716e-06/1.07, allocations: 4 kB / 1.159 GB, free: 15.88 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005527/1.076, allocations: 3.381 MB / 1.162 GB, free: 12.27 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001066/1.077, allocations: 431 kB / 1.163 GB, free: 11.83 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002044/1.077, allocations: 35.98 kB / 1.163 GB, free: 11.79 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007815/1.078, allocations: 80.27 kB / 1.163 GB, free: 11.71 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003751/1.078, allocations: 120.7 kB / 1.163 GB, free: 11.59 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.473e-05/1.078, allocations: 40 kB / 1.163 GB, free: 11.55 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.001067/1.08, allocations: 0.7631 MB / 1.164 GB, free: 10.79 MB / 0.92 GB Notification: Performance of sort global known variables: time 5.01e-07/1.08, allocations: 0 / 1.164 GB, free: 10.79 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.002142/1.082, allocations: 0.6562 MB / 1.164 GB, free: 10.13 MB / 0.92 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 (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,92.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002498/1.082, allocations: 139.1 kB / 1.164 GB, free: 9.988 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.004865/1.087, allocations: 3.123 MB / 1.167 GB, free: 6.828 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 7.665e-06/1.087, allocations: 4.062 kB / 1.167 GB, free: 6.824 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.003072/1.09, allocations: 1.967 MB / 1.169 GB, free: 4.812 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002179/1.092, allocations: 440.6 kB / 1.17 GB, free: 4.383 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009713/1.102, allocations: 6.46 MB / 1.176 GB, free: 13.86 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002369/1.104, allocations: 2.395 MB / 1.178 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.001208/1.105, allocations: 350.1 kB / 1.179 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002191/1.106, allocations: 91.38 kB / 1.179 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of SimCode: time 8.72e-07/1.106, allocations: 0 / 1.179 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of Templates: time 0.0528/1.159, allocations: 30.17 MB / 1.208 GB, free: 13.24 MB / 0.9669 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