Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.431/1.431, allocations: 251.9 MB / 266.9 MB, free: 11.07 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001094/0.001094, allocations: 191.7 kB / 326.5 MB, free: 2.254 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.896/1.896, allocations: 205.4 MB / 0.5775 GB, free: 20.2 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008238/0.0008238, allocations: 94.69 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003449/0.0003449, allocations: 8.938 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2301/0.2304, allocations: 106.3 MB / 0.9001 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.796/1.027, allocations: 181.7 MB / 1.077 GB, free: 52.6 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00034/1.027, allocations: 100.3 kB / 1.078 GB, free: 52.6 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.0735/1.1, allocations: 31.98 MB / 1.109 GB, free: 49.01 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.806e-06/1.1, allocations: 0.5625 kB / 1.109 GB, free: 49.01 MB / 0.698 GB Notification: Performance of Transformations before backend: time 7.747e-05/1.101, allocations: 20.75 kB / 1.109 GB, free: 49 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001661/1.102, allocations: 0.8761 MB / 1.11 GB, free: 48.34 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/1.102, allocations: 8.844 kB / 1.11 GB, free: 48.34 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001496/1.104, allocations: 194.7 kB / 1.11 GB, free: 48.25 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009444/1.105, allocations: 0.4988 MB / 1.11 GB, free: 47.9 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.669e-05/1.105, allocations: 43.41 kB / 1.11 GB, free: 47.9 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001551/1.105, allocations: 57.58 kB / 1.11 GB, free: 47.89 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001102/1.106, allocations: 0.8677 MB / 1.111 GB, free: 47.43 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.681e-05/1.106, allocations: 11.56 kB / 1.111 GB, free: 47.42 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.17e-05/1.106, allocations: 22.03 kB / 1.111 GB, free: 47.42 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-05/1.106, allocations: 43.11 kB / 1.111 GB, free: 47.41 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007774/1.107, allocations: 0.5712 MB / 1.112 GB, free: 47.3 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003511/1.111, allocations: 4.608 MB / 1.116 GB, free: 43.48 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004235/1.111, allocations: 286.7 kB / 1.117 GB, free: 43.41 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.011e-05/1.111, allocations: 3.844 kB / 1.117 GB, free: 43.41 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.393e-05/1.111, allocations: 42.31 kB / 1.117 GB, free: 43.37 MB / 0.698 GB Notification: Performance of pre-optimization done (n=33): time 2.154e-06/1.111, allocations: 0 / 1.117 GB, free: 43.37 MB / 0.698 GB Notification: Performance of matching and sorting (n=40): time 0.004998/1.116, allocations: 2.645 MB / 1.119 GB, free: 42.23 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.174e-05/1.116, allocations: 55.28 kB / 1.119 GB, free: 42.17 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003612/1.117, allocations: 395 kB / 1.12 GB, free: 42 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.37e-05/1.117, allocations: 37.19 kB / 1.12 GB, free: 41.96 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001573/1.117, allocations: 336 kB / 1.12 GB, free: 41.75 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 8.087e-05/1.117, allocations: 135.2 kB / 1.12 GB, free: 41.65 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.439e-05/1.117, allocations: 11 kB / 1.12 GB, free: 41.65 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.933e-05/1.117, allocations: 371.3 kB / 1.121 GB, free: 41.32 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002835/1.117, allocations: 234.6 kB / 1.121 GB, free: 41.28 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003382/1.118, allocations: 384.8 kB / 1.121 GB, free: 41.06 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000336/1.118, allocations: 284.9 kB / 1.121 GB, free: 41.03 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/1.118, allocations: 3.812 kB / 1.121 GB, free: 41.03 MB / 0.698 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001369/1.119, allocations: 0.8966 MB / 1.122 GB, free: 40.77 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/1.119, allocations: 7.75 kB / 1.122 GB, free: 40.77 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/1.119, allocations: 7.859 kB / 1.122 GB, free: 40.76 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007183/1.12, allocations: 227 kB / 1.123 GB, free: 40.68 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004758/1.121, allocations: 112.8 kB / 1.123 GB, free: 40.65 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00377/1.124, allocations: 5.009 MB / 1.128 GB, free: 36.52 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005735/1.125, allocations: 34.41 kB / 1.128 GB, free: 36.51 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.814e-05/1.125, allocations: 18.69 kB / 1.128 GB, free: 36.51 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (55): * Single equations (assignments): 52 * 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 {(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004237/1.125, allocations: 226.6 kB / 1.128 GB, free: 36.36 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.156e-05/1.126, allocations: 62.61 kB / 1.128 GB, free: 36.33 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001355/1.127, allocations: 0.7764 MB / 1.129 GB, free: 36.1 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.299e-06/1.127, allocations: 7.875 kB / 1.129 GB, free: 36.09 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/1.127, allocations: 11.8 kB / 1.129 GB, free: 36.09 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/1.127, allocations: 0 / 1.129 GB, free: 36.09 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002153/1.129, allocations: 1.471 MB / 1.13 GB, free: 35.41 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/1.129, allocations: 3.875 kB / 1.13 GB, free: 35.41 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003478/1.129, allocations: 66.47 kB / 1.13 GB, free: 35.39 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006158/1.13, allocations: 205.4 kB / 1.13 GB, free: 35.32 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.215e-05/1.13, allocations: 10.69 kB / 1.13 GB, free: 35.32 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003732/1.134, allocations: 4.946 MB / 1.135 GB, free: 31.2 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/1.134, allocations: 0 / 1.135 GB, free: 31.2 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001993/1.136, allocations: 1.222 MB / 1.136 GB, free: 30.66 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003808/1.136, allocations: 172.7 kB / 1.137 GB, free: 30.52 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.778e-05/1.136, allocations: 15.86 kB / 1.137 GB, free: 30.51 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003252/1.137, allocations: 26.88 kB / 1.137 GB, free: 30.5 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/1.137, allocations: 39.16 kB / 1.137 GB, free: 30.48 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.869e-05/1.137, allocations: 11.41 kB / 1.137 GB, free: 30.48 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003851/1.137, allocations: 312 kB / 1.137 GB, free: 30.36 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.31e-07/1.137, allocations: 0 / 1.137 GB, free: 30.36 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0008994/1.138, allocations: 180.5 kB / 1.137 GB, free: 30.35 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * Single equations (assignments): 27 * 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 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002577/1.138, allocations: 125.8 kB / 1.137 GB, free: 30.25 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001759/1.14, allocations: 0.9967 MB / 1.138 GB, free: 29.77 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.209e-06/1.14, allocations: 4.125 kB / 1.138 GB, free: 29.77 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008591/1.141, allocations: 0.6822 MB / 1.139 GB, free: 29.34 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008039/1.142, allocations: 151.2 kB / 1.139 GB, free: 29.3 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002309/1.144, allocations: 1.501 MB / 1.141 GB, free: 28.32 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004132/1.145, allocations: 0.963 MB / 1.141 GB, free: 27.51 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0003777/1.145, allocations: 115.1 kB / 1.142 GB, free: 27.45 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.826e-05/1.145, allocations: 34.44 kB / 1.142 GB, free: 27.45 MB / 0.698 GB Notification: Performance of SimCode: time 1.262e-06/1.145, allocations: 0 / 1.142 GB, free: 27.45 MB / 0.698 GB Notification: Performance of Templates: time 0.01278/1.158, allocations: 8.164 MB / 1.15 GB, free: 23.53 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches