Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_L,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009332/0.0009332, allocations: 100.1 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.0009253/0.0009253, 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.387/1.387, allocations: 223.2 MB / 239.9 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.407/2.407, allocations: 390.3 MB / 0.6653 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004955/0.0004955, allocations: 16 kB / 0.8145 GB, free: 14.3 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8201/0.8206, allocations: 142.3 MB / 0.9535 GB, free: 8.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L): time 0.04315/0.8638, allocations: 28.69 MB / 0.9815 GB, free: 2.633 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.02094/0.8848, allocations: 9.803 MB / 0.9911 GB, free: 9.613 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005377/0.8903, allocations: 123.2 kB / 0.9912 GB, free: 9.492 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.002688/0.893, allocations: 0.6289 MB / 0.9918 GB, free: 8.859 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.005474/0.8985, allocations: 1.266 MB / 0.9931 GB, free: 7.59 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.004371/0.9029, allocations: 1.277 MB / 0.9943 GB, free: 6.316 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.006381/0.9093, allocations: 3.441 MB / 0.9977 GB, free: 2.867 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01554/0.9249, allocations: 10.34 MB / 1.008 GB, free: 8.453 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003707/0.9286, allocations: 1.97 MB / 1.01 GB, free: 6.477 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003091/0.9317, allocations: 1.977 MB / 1.012 GB, free: 4.492 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0006375/0.9324, allocations: 268 kB / 1.012 GB, free: 4.23 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002134/0.9345, allocations: 0.6945 MB / 1.013 GB, free: 3.535 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.002034/0.9366, allocations: 1.875 MB / 1.014 GB, free: 1.656 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.001412/0.938, allocations: 0.9524 MB / 1.015 GB, free: 0.6953 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.009537/0.9475, allocations: 8.203 MB / 1.023 GB, free: 8.473 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.9476, allocations: 4 kB / 1.023 GB, free: 8.469 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.835e-06/0.9476, allocations: 0 / 1.023 GB, free: 8.469 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0003688/0.9479, allocations: 0 / 1.023 GB, free: 8.469 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1256 * Number of variables: 1256 Notification: Performance of Generate backend data structure: time 0.01094/0.9589, allocations: 4.037 MB / 1.027 GB, free: 4.363 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.9589, allocations: 12.03 kB / 1.027 GB, free: 4.352 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005584/0.9645, allocations: 0.9153 MB / 1.028 GB, free: 3.43 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006638/0.9712, allocations: 2.792 MB / 1.031 GB, free: 0.5781 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002587/0.9715, allocations: 345.3 kB / 1.031 GB, free: 244 kB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001229/0.9727, allocations: 463.9 kB / 1.032 GB, free: 15.78 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01654/0.9893, allocations: 7.592 MB / 1.039 GB, free: 7.844 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001459/0.9895, allocations: 31.75 kB / 1.039 GB, free: 7.812 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005452/0.99, allocations: 203.9 kB / 1.039 GB, free: 7.613 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003269/0.9904, allocations: 313 kB / 1.04 GB, free: 7.305 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01159/1.002, allocations: 5.679 MB / 1.045 GB, free: 1.609 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03817/1.04, allocations: 35.12 MB / 1.079 GB, free: 11.28 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003401/1.044, allocations: 2.144 MB / 1.082 GB, free: 9.012 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001263/1.044, allocations: 17.31 kB / 1.082 GB, free: 8.996 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.61e-05/1.044, allocations: 51.8 kB / 1.082 GB, free: 8.938 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=133): time 4.668e-06/1.044, allocations: 0 / 1.082 GB, free: 8.938 MB / 0.8419 GB Notification: Performance of matching and sorting (n=136): time 0.01383/1.058, allocations: 7.077 MB / 1.089 GB, free: 1.59 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/1.058, allocations: 64.72 kB / 1.089 GB, free: 1.512 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00212/1.06, allocations: 1.465 MB / 1.09 GB, free: 0 / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0001623/1.06, allocations: 49.7 kB / 1.09 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001223/1.061, allocations: 2.008 MB / 1.092 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004372/1.062, allocations: 493 kB / 1.093 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.559e-05/1.062, allocations: 40 kB / 1.093 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001509/1.062, allocations: 381.9 kB / 1.093 GB, free: 13 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001196/1.063, allocations: 0.9018 MB / 1.094 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001539/1.065, allocations: 1.581 MB / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001475/1.066, allocations: 1.181 MB / 1.097 GB, free: 9.031 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.247e-06/1.066, allocations: 4 kB / 1.097 GB, free: 9.027 MB / 0.8575 GB Notification: Performance of matching and sorting (n=239) (initialization): time 0.005679/1.072, allocations: 3.507 MB / 1.1 GB, free: 5.473 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.183e-05/1.072, allocations: 16.19 kB / 1.1 GB, free: 5.457 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.66e-05/1.072, allocations: 27.98 kB / 1.1 GB, free: 5.43 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002405/1.075, allocations: 0.8999 MB / 1.101 GB, free: 4.492 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/1.076, allocations: 343.4 kB / 1.101 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01844/1.094, allocations: 21.55 MB / 1.122 GB, free: 13.01 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001935/1.096, allocations: 99.92 kB / 1.122 GB, free: 12.91 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001638/1.096, allocations: 91.98 kB / 1.122 GB, free: 12.82 MB / 0.8887 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 (185): * Single equations (assignments): 173 * 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,(3,77.8%) 5,(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.002943/1.099, allocations: 1.606 MB / 1.124 GB, free: 11.2 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000455/1.1, allocations: 213.5 kB / 1.124 GB, free: 10.99 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004985/1.105, allocations: 2.978 MB / 1.127 GB, free: 7.965 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-05/1.105, allocations: 12 kB / 1.127 GB, free: 7.953 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.867e-05/1.105, allocations: 15.95 kB / 1.127 GB, free: 7.938 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.343e-05/1.105, allocations: 11.97 kB / 1.127 GB, free: 7.926 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01175/1.117, allocations: 7.313 MB / 1.134 GB, free: 388 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-05/1.117, allocations: 4 kB / 1.134 GB, free: 384 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007725/1.117, allocations: 179.7 kB / 1.134 GB, free: 204 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002233/1.12, allocations: 0.8184 MB / 1.135 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001217/1.12, allocations: 28 kB / 1.135 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01713/1.137, allocations: 20.63 MB / 1.155 GB, free: 9.078 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.646e-06/1.137, allocations: 12.39 kB / 1.155 GB, free: 9.066 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005101/1.142, allocations: 3.302 MB / 1.159 GB, free: 5.48 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001119/1.143, allocations: 474.4 kB / 1.159 GB, free: 4.996 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002637/1.143, allocations: 24 kB / 1.159 GB, free: 4.973 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007868/1.144, allocations: 71.91 kB / 1.159 GB, free: 4.902 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003346/1.145, allocations: 128.7 kB / 1.159 GB, free: 4.777 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.799e-05/1.145, allocations: 36 kB / 1.159 GB, free: 4.742 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.001255/1.146, allocations: 0.96 MB / 1.16 GB, free: 3.758 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.6e-07/1.146, allocations: 0 / 1.16 GB, free: 3.758 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.002939/1.149, allocations: 0.7852 MB / 1.161 GB, free: 2.973 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 (91): * Single equations (assignments): 79 * 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%) 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%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002801/1.149, allocations: 143.1 kB / 1.161 GB, free: 2.824 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.00537/1.155, allocations: 4.007 MB / 1.165 GB, free: 14.66 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/1.155, allocations: 1 kB / 1.165 GB, free: 14.66 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.003536/1.158, allocations: 2.74 MB / 1.168 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003301/1.162, allocations: 0.6453 MB / 1.168 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01438/1.176, allocations: 8.725 MB / 1.177 GB, free: 2.312 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004354/1.18, allocations: 3.185 MB / 1.18 GB, free: 15.1 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001633/1.182, allocations: 461.9 kB / 1.18 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003885/1.182, allocations: 111.4 kB / 1.181 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of SimCode: time 1.072e-06/1.182, allocations: 3.938 kB / 1.181 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of Templates: time 0.06316/1.246, allocations: 33.14 MB / 1.213 GB, free: 13.79 MB / 0.9825 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches