Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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_R_N,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_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,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_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 99.47 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.001571/0.001571, 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.436/1.436, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.684/2.684, allocations: 436.5 MB / 0.7104 GB, free: 7.898 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003745/0.0003745, allocations: 8 kB / 0.8708 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7383/0.7387, allocations: 153.7 MB / 1.021 GB, free: 1.129 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.03453/0.7733, allocations: 33.04 MB / 1.053 GB, free: 8 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01796/0.7913, allocations: 10.71 MB / 1.064 GB, free: 5.273 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004072/0.7954, allocations: 131.2 kB / 1.064 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.002955/0.7984, allocations: 0.757 MB / 1.064 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.007336/0.8057, allocations: 1.71 MB / 1.066 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.004853/0.8106, allocations: 1.288 MB / 1.067 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.009148/0.8198, allocations: 4.458 MB / 1.072 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02017/0.84, allocations: 12.66 MB / 1.084 GB, free: 192 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006702/0.8467, allocations: 2.495 MB / 1.086 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005922/0.8527, allocations: 2.643 MB / 1.089 GB, free: 11.03 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.001285/0.854, allocations: 351.9 kB / 1.089 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002424/0.8564, allocations: 0.5893 MB / 1.09 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.002516/0.8589, allocations: 2.315 MB / 1.092 GB, free: 7.777 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.002129/0.8611, allocations: 1.198 MB / 1.093 GB, free: 6.57 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.01253/0.8736, allocations: 10.02 MB / 1.103 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.8737, allocations: 0 / 1.103 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.908e-06/0.8737, allocations: 0 / 1.103 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.000514/0.8742, allocations: 0 / 1.103 GB, free: 12.52 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.01464/0.8888, allocations: 5.11 MB / 1.108 GB, free: 7.34 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.656e-05/0.8889, allocations: 15.92 kB / 1.108 GB, free: 7.324 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005629/0.8945, allocations: 1.012 MB / 1.109 GB, free: 6.305 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0083/0.9029, allocations: 3.345 MB / 1.112 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003296/0.9032, allocations: 427.4 kB / 1.113 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001464/0.9047, allocations: 0.539 MB / 1.113 GB, free: 1.949 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02409/0.9288, allocations: 9.279 MB / 1.122 GB, free: 8.336 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003225/0.9292, allocations: 27.7 kB / 1.122 GB, free: 8.309 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00218/0.9314, allocations: 252 kB / 1.123 GB, free: 8.062 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000828/0.9323, allocations: 422.9 kB / 1.123 GB, free: 7.648 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01951/0.9518, allocations: 7.077 MB / 1.13 GB, free: 0.5625 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06264/1.014, allocations: 41.35 MB / 1.17 GB, free: 3.469 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005437/1.02, allocations: 3.104 MB / 1.173 GB, free: 372 kB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002356/1.02, allocations: 22 kB / 1.173 GB, free: 352 kB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.503e-05/1.02, allocations: 56.56 kB / 1.174 GB, free: 288 kB / 0.92 GB Notification: Performance of pre-optimization done (n=209): time 4.608e-06/1.02, allocations: 0 / 1.174 GB, free: 288 kB / 0.92 GB Notification: Performance of matching and sorting (n=212): time 0.02652/1.047, allocations: 10.45 MB / 1.184 GB, free: 5.734 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.549e-05/1.047, allocations: 73.41 kB / 1.184 GB, free: 5.648 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003583/1.051, allocations: 1.986 MB / 1.186 GB, free: 3.645 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0004047/1.051, allocations: 61.7 kB / 1.186 GB, free: 3.578 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.00185/1.053, allocations: 2.408 MB / 1.188 GB, free: 1.141 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.001042/1.054, allocations: 0.7278 MB / 1.189 GB, free: 412 kB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003056/1.054, allocations: 52 kB / 1.189 GB, free: 360 kB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0002761/1.055, allocations: 411.4 kB / 1.189 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002386/1.057, allocations: 1.368 MB / 1.191 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002893/1.06, allocations: 2.084 MB / 1.193 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002975/1.063, allocations: 1.716 MB / 1.194 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.649e-05/1.063, allocations: 8 kB / 1.194 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.009878/1.073, allocations: 5.038 MB / 1.199 GB, free: 5.387 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.052e-05/1.073, allocations: 16.97 kB / 1.199 GB, free: 5.371 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.162e-05/1.073, allocations: 27.94 kB / 1.199 GB, free: 5.344 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003589/1.076, allocations: 1.557 MB / 1.201 GB, free: 3.777 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001937/1.078, allocations: 455.2 kB / 1.201 GB, free: 3.332 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0236/1.102, allocations: 17.71 MB / 1.219 GB, free: 1.086 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002648/1.105, allocations: 151.9 kB / 1.219 GB, free: 0.9375 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000519/1.105, allocations: 104 kB / 1.219 GB, free: 0.8359 MB / 0.9669 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 (231): * Single equations (assignments): 227 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,69.4%) 32,(6,66.7%) 24,(4,100.0%) 18,(4,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004162/1.109, allocations: 1.949 MB / 1.221 GB, free: 14.88 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008009/1.11, allocations: 284.7 kB / 1.221 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008053/1.118, allocations: 4.435 MB / 1.225 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-05/1.118, allocations: 20 kB / 1.225 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.511e-05/1.118, allocations: 16 kB / 1.225 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.51e-05/1.118, allocations: 11.97 kB / 1.225 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0216/1.14, allocations: 9.648 MB / 1.235 GB, free: 296 kB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.687e-05/1.14, allocations: 4 kB / 1.235 GB, free: 292 kB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001279/1.141, allocations: 228.2 kB / 1.235 GB, free: 64 kB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004415/1.146, allocations: 1.428 MB / 1.236 GB, free: 14.62 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004544/1.146, allocations: 40 kB / 1.236 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6679/1.814, allocations: 17.72 MB / 1.254 GB, free: 205.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-05/1.814, allocations: 9.781 kB / 1.254 GB, free: 205.3 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009725/1.824, allocations: 4.864 MB / 1.259 GB, free: 204.4 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001926/1.826, allocations: 0.6362 MB / 1.259 GB, free: 204.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004253/1.826, allocations: 47.38 kB / 1.259 GB, free: 204.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001244/1.828, allocations: 117 kB / 1.259 GB, free: 204 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005565/1.828, allocations: 185 kB / 1.259 GB, free: 204 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001465/1.828, allocations: 59.41 kB / 1.26 GB, free: 204 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002142/1.831, allocations: 1.293 MB / 1.261 GB, free: 203.5 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.61e-07/1.831, allocations: 4.094 kB / 1.261 GB, free: 203.5 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.004799/1.835, allocations: 1.141 MB / 1.262 GB, free: 203.4 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 (107): * Single equations (assignments): 103 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,100.0%) 18,(6,66.7%) 24,(4,100.0%) 18,(6,66.7%) 32} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004504/1.836, allocations: 168.6 kB / 1.262 GB, free: 203.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.008376/1.844, allocations: 4.671 MB / 1.267 GB, free: 201.2 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.717e-05/1.844, allocations: 2.406 kB / 1.267 GB, free: 201.2 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.00531/1.85, allocations: 2.912 MB / 1.269 GB, free: 199.9 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003909/1.854, allocations: 0.8079 MB / 1.27 GB, free: 199.6 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01597/1.87, allocations: 11.21 MB / 1.281 GB, free: 193.7 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003892/1.873, allocations: 3.789 MB / 1.285 GB, free: 192.3 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002471/1.876, allocations: 0.5553 MB / 1.285 GB, free: 192.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003615/1.876, allocations: 152.2 kB / 1.286 GB, free: 192.2 MB / 0.9981 GB Notification: Performance of SimCode: time 1.313e-06/1.876, allocations: 4 kB / 1.286 GB, free: 192.2 MB / 0.9981 GB Notification: Performance of Templates: time 0.07345/1.95, allocations: 48.76 MB / 1.333 GB, free: 152.5 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches