Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_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.Loads.Examples.Loads_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I.1.|sen.I.2.|sen.I.3.|sen.I.4.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I.1.|sen.I.2.|sen.I.3.|sen.I.4.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001122/0.001122, 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.001319/0.00132, 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.517/1.517, allocations: 223.2 MB / 239.9 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.726/2.726, allocations: 436.5 MB / 0.7104 GB, free: 7.828 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003513/0.0003513, allocations: 8 kB / 0.8708 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.818/0.8184, allocations: 153.7 MB / 1.021 GB, free: 1.051 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N): time 0.01958/0.838, allocations: 18.18 MB / 1.039 GB, free: 14.82 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01322/0.8513, allocations: 7.1 MB / 1.046 GB, free: 7.707 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00217/0.8535, allocations: 47.81 kB / 1.046 GB, free: 7.66 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.00125/0.8548, allocations: 393.5 kB / 1.046 GB, free: 7.273 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.003396/0.8582, allocations: 0.7671 MB / 1.047 GB, free: 6.504 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.004313/0.8625, allocations: 1.136 MB / 1.048 GB, free: 5.371 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.004377/0.8669, allocations: 2.012 MB / 1.05 GB, free: 3.355 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009988/0.8769, allocations: 6.539 MB / 1.056 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002255/0.8792, allocations: 1.047 MB / 1.057 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001921/0.8811, allocations: 1.199 MB / 1.058 GB, free: 10.49 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0003631/0.8815, allocations: 176 kB / 1.058 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001036/0.8826, allocations: 419.5 kB / 1.059 GB, free: 9.906 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.001226/0.8838, allocations: 1.232 MB / 1.06 GB, free: 8.672 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0007319/0.8845, allocations: 0.555 MB / 1.061 GB, free: 8.109 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.00538/0.8899, allocations: 5.121 MB / 1.066 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.89, allocations: 0 / 1.066 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.604e-06/0.89, allocations: 0 / 1.066 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0001827/0.8902, allocations: 4 kB / 1.066 GB, free: 2.973 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: 776 * Number of variables: 776 Notification: Performance of Generate backend data structure: time 0.006134/0.8963, allocations: 2.47 MB / 1.068 GB, free: 452 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.148e-05/0.8964, allocations: 11.98 kB / 1.068 GB, free: 440 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003673/0.9, allocations: 0.7264 MB / 1.069 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004247/0.9043, allocations: 1.515 MB / 1.07 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002182/0.9046, allocations: 221.8 kB / 1.07 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008464/0.9054, allocations: 283.9 kB / 1.071 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01017/0.9156, allocations: 5.008 MB / 1.076 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-05/0.9157, allocations: 7.938 kB / 1.076 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003092/0.916, allocations: 120 kB / 1.076 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002473/0.9163, allocations: 208.6 kB / 1.076 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007609/0.9239, allocations: 4.169 MB / 1.08 GB, free: 3.93 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03007/0.954, allocations: 23.01 MB / 1.102 GB, free: 10.78 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002787/0.9568, allocations: 1.732 MB / 1.104 GB, free: 9.012 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001742/0.957, allocations: 93.75 kB / 1.104 GB, free: 8.902 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.536e-05/0.957, allocations: 43.22 kB / 1.104 GB, free: 8.852 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=84): time 2.816e-06/0.9571, allocations: 4 kB / 1.104 GB, free: 8.848 MB / 0.8575 GB Notification: Performance of matching and sorting (n=87): time 0.006142/0.9632, allocations: 4.001 MB / 1.108 GB, free: 4.816 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.646e-05/0.9633, allocations: 137.2 kB / 1.108 GB, free: 4.648 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001062/0.9644, allocations: 0.837 MB / 1.109 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.692e-05/0.9645, allocations: 45.64 kB / 1.109 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006978/0.9652, allocations: 1.162 MB / 1.11 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002795/0.9655, allocations: 311.6 kB / 1.111 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.345e-05/0.9655, allocations: 24 kB / 1.111 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001887/0.9657, allocations: 414.7 kB / 1.111 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001112/0.9669, allocations: 0.7911 MB / 1.112 GB, free: 1.031 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001533/0.9684, allocations: 1.287 MB / 1.113 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001345/0.9698, allocations: 0.9983 MB / 1.114 GB, free: 14.53 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.384e-06/0.9698, allocations: 8 kB / 1.114 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.00319/0.973, allocations: 2.16 MB / 1.116 GB, free: 12.35 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.002627/0.9756, allocations: 5.494 MB / 1.122 GB, free: 6.43 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.044e-05/0.9757, allocations: 16 kB / 1.122 GB, free: 6.414 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.553e-05/0.9757, allocations: 24 kB / 1.122 GB, free: 6.391 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001666/0.9774, allocations: 411.3 kB / 1.122 GB, free: 5.988 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.942e-05/0.9774, allocations: 27.92 kB / 1.122 GB, free: 5.961 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001264/0.9787, allocations: 203.2 kB / 1.122 GB, free: 5.762 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000107/0.9788, allocations: 55.98 kB / 1.122 GB, free: 5.707 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.9788, allocations: 11.95 kB / 1.122 GB, free: 5.695 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00262/0.9815, allocations: 1.761 MB / 1.124 GB, free: 3.934 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.947e-05/0.9815, allocations: 19.98 kB / 1.124 GB, free: 3.914 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.226e-05/0.9815, allocations: 20 kB / 1.124 GB, free: 3.895 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001231/0.9828, allocations: 355.4 kB / 1.124 GB, free: 3.547 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.163e-05/0.9828, allocations: 31.86 kB / 1.124 GB, free: 3.516 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009753/0.9838, allocations: 151.4 kB / 1.125 GB, free: 3.367 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/0.9839, allocations: 60.02 kB / 1.125 GB, free: 3.309 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (156): * Single equations (assignments): 156 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002414/0.9863, allocations: 1.172 MB / 1.126 GB, free: 2.125 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003395/0.9867, allocations: 102.7 kB / 1.126 GB, free: 2.023 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002809/0.9895, allocations: 1.854 MB / 1.128 GB, free: 160 kB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.498e-05/0.9895, allocations: 12 kB / 1.128 GB, free: 148 kB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.9895, allocations: 0 / 1.128 GB, free: 148 kB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/0.9895, allocations: 3.984 kB / 1.128 GB, free: 144 kB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01403/1.004, allocations: 9.584 MB / 1.137 GB, free: 6.305 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.185e-05/1.004, allocations: 16.06 kB / 1.137 GB, free: 6.289 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00129/1.005, allocations: 311.5 kB / 1.137 GB, free: 5.984 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-05/1.005, allocations: 19.94 kB / 1.137 GB, free: 5.965 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.402e-05/1.005, allocations: 28 kB / 1.137 GB, free: 5.938 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.999e-05/1.005, allocations: 23.92 kB / 1.137 GB, free: 5.914 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.937e-05/1.005, allocations: 15.94 kB / 1.137 GB, free: 5.898 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003801/1.009, allocations: 2.972 MB / 1.14 GB, free: 2.457 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007569/1.01, allocations: 391.4 kB / 1.141 GB, free: 2.055 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001541/1.01, allocations: 31.98 kB / 1.141 GB, free: 2.023 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008882/1.011, allocations: 135.8 kB / 1.141 GB, free: 1.891 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001956/1.011, allocations: 95.66 kB / 1.141 GB, free: 1.797 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.153e-05/1.011, allocations: 35.94 kB / 1.141 GB, free: 1.762 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0008954/1.012, allocations: 0.5888 MB / 1.142 GB, free: 1.18 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.41e-07/1.012, allocations: 0 / 1.142 GB, free: 1.18 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.002701/1.015, allocations: 0.75 MB / 1.142 GB, free: 440 kB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * 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 (90): * Single equations (assignments): 90 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002651/1.015, allocations: 143.1 kB / 1.142 GB, free: 288 kB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.004414/1.019, allocations: 2.831 MB / 1.145 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 9.268e-06/1.019, allocations: 0 / 1.145 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001295/1.021, allocations: 0.912 MB / 1.146 GB, free: 12.55 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001715/1.022, allocations: 261.9 kB / 1.146 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009243/1.032, allocations: 6.004 MB / 1.152 GB, free: 6.105 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002279/1.034, allocations: 2.175 MB / 1.154 GB, free: 3.895 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.002132/1.036, allocations: 0.7461 MB / 1.155 GB, free: 3.145 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003604/1.037, allocations: 83.42 kB / 1.155 GB, free: 3.062 MB / 0.9044 GB Notification: Performance of SimCode: time 1.142e-06/1.037, allocations: 0 / 1.155 GB, free: 3.062 MB / 0.9044 GB Notification: Performance of Templates: time 0.02892/1.066, allocations: 16.1 MB / 1.171 GB, free: 3.109 MB / 0.92 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Loads_N.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches