Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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.OnePhase.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.38/1.38, allocations: 251.9 MB / 266.9 MB, free: 11.01 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.002535/0.002535, allocations: 180.5 kB / 326.5 MB, free: 2.234 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.013/2.013, allocations: 205.4 MB / 0.5775 GB, free: 20.21 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.0008375/0.0008376, allocations: 87.5 kB / 0.6821 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003564/0.0003563, allocations: 8.672 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2771/0.2775, allocations: 106.3 MB / 0.9001 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2025/0.48, allocations: 153.8 MB / 1.05 GB, free: 5.914 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000358/0.4805, allocations: 99.92 kB / 1.05 GB, free: 5.816 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.608/1.088, allocations: 36.75 MB / 1.086 GB, free: 145.4 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.103e-06/1.089, allocations: 0 / 1.086 GB, free: 145.4 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.08e-05/1.089, allocations: 27.34 kB / 1.086 GB, free: 145.4 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001662/1.09, allocations: 1.044 MB / 1.087 GB, free: 144.7 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/1.09, allocations: 11.53 kB / 1.087 GB, free: 144.7 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001478/1.092, allocations: 228.4 kB / 1.088 GB, free: 144.6 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007974/1.093, allocations: 0.5403 MB / 1.088 GB, free: 144.2 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.249e-05/1.093, allocations: 49.56 kB / 1.088 GB, free: 144.2 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.145e-05/1.093, allocations: 65.61 kB / 1.088 GB, free: 144.2 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001224/1.094, allocations: 1.136 MB / 1.089 GB, free: 143.3 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.21e-05/1.094, allocations: 7.906 kB / 1.089 GB, free: 143.3 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.972e-05/1.094, allocations: 35.67 kB / 1.089 GB, free: 143.3 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-05/1.094, allocations: 52.22 kB / 1.089 GB, free: 143.3 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008583/1.095, allocations: 0.7458 MB / 1.09 GB, free: 142.9 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003962/1.099, allocations: 5.914 MB / 1.096 GB, free: 136.7 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008108/1.1, allocations: 0.5574 MB / 1.096 GB, free: 136.1 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.141e-05/1.1, allocations: 4.438 kB / 1.096 GB, free: 136.1 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.885e-05/1.1, allocations: 39 kB / 1.096 GB, free: 136 MB / 0.698 GB Notification: Performance of pre-optimization done (n=47): time 1.934e-06/1.1, allocations: 0 / 1.096 GB, free: 136 MB / 0.698 GB Notification: Performance of matching and sorting (n=48): time 0.003188/1.103, allocations: 1.976 MB / 1.098 GB, free: 134 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.972e-05/1.103, allocations: 59.78 kB / 1.098 GB, free: 133.9 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004477/1.104, allocations: 495.1 kB / 1.099 GB, free: 133.4 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.265e-05/1.104, allocations: 33.7 kB / 1.099 GB, free: 133.4 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001654/1.104, allocations: 403.2 kB / 1.099 GB, free: 133 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 9.902e-05/1.104, allocations: 169.6 kB / 1.1 GB, free: 132.8 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.796e-05/1.104, allocations: 8 kB / 1.1 GB, free: 132.8 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.935e-05/1.104, allocations: 378.8 kB / 1.1 GB, free: 132.4 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003102/1.104, allocations: 269.2 kB / 1.1 GB, free: 132.2 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000387/1.105, allocations: 458.8 kB / 1.101 GB, free: 131.6 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003846/1.105, allocations: 342 kB / 1.101 GB, free: 131.3 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/1.105, allocations: 0 / 1.101 GB, free: 131.3 MB / 0.698 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001428/1.107, allocations: 1.056 MB / 1.102 GB, free: 130.2 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/1.107, allocations: 12 kB / 1.102 GB, free: 130.2 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/1.107, allocations: 8 kB / 1.102 GB, free: 130.2 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008573/1.107, allocations: 275.2 kB / 1.102 GB, free: 129.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004697/1.108, allocations: 123.8 kB / 1.102 GB, free: 129.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004804/1.113, allocations: 6.697 MB / 1.109 GB, free: 122.6 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007285/1.114, allocations: 35.97 kB / 1.109 GB, free: 122.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.463e-05/1.114, allocations: 27.95 kB / 1.109 GB, free: 122.5 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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 (63): * Single equations (assignments): 59 * 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 {(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000473/1.114, allocations: 257.6 kB / 1.109 GB, free: 122.2 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001023/1.114, allocations: 75.16 kB / 1.109 GB, free: 122.2 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001346/1.116, allocations: 0.8885 MB / 1.11 GB, free: 121.3 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/1.116, allocations: 4 kB / 1.11 GB, free: 121.3 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/1.116, allocations: 4 kB / 1.11 GB, free: 121.3 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/1.116, allocations: 3.984 kB / 1.11 GB, free: 121.2 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002205/1.118, allocations: 1.717 MB / 1.112 GB, free: 119.4 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.299e-06/1.118, allocations: 0 / 1.112 GB, free: 119.4 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002487/1.118, allocations: 55.95 kB / 1.112 GB, free: 119.4 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006654/1.119, allocations: 267.3 kB / 1.112 GB, free: 119.1 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.512e-05/1.119, allocations: 15.98 kB / 1.112 GB, free: 119.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00435/1.123, allocations: 6.694 MB / 1.119 GB, free: 111.9 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/1.123, allocations: 0 / 1.119 GB, free: 111.9 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001421/1.125, allocations: 1.044 MB / 1.12 GB, free: 110.7 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003295/1.125, allocations: 192.2 kB / 1.12 GB, free: 110.5 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.323e-05/1.125, allocations: 11.98 kB / 1.12 GB, free: 110.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003587/1.125, allocations: 31.91 kB / 1.12 GB, free: 110.5 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/1.126, allocations: 43.89 kB / 1.12 GB, free: 110.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.782e-05/1.126, allocations: 20 kB / 1.12 GB, free: 110.4 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003788/1.126, allocations: 379.1 kB / 1.12 GB, free: 110.1 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.4e-07/1.126, allocations: 0 / 1.12 GB, free: 110.1 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000803/1.127, allocations: 239.9 kB / 1.121 GB, free: 109.8 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (31): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001516/1.127, allocations: 111.2 kB / 1.121 GB, free: 109.7 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001582/1.128, allocations: 1.26 MB / 1.122 GB, free: 108.4 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/1.129, allocations: 3.938 kB / 1.122 GB, free: 108.4 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0009646/1.129, allocations: 0.8858 MB / 1.123 GB, free: 107.5 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008214/1.13, allocations: 202.1 kB / 1.123 GB, free: 107.3 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001794/1.132, allocations: 1.583 MB / 1.124 GB, free: 105.6 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003649/1.133, allocations: 1.02 MB / 1.125 GB, free: 104.6 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0003866/1.133, allocations: 121.8 kB / 1.126 GB, free: 104.5 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.588e-05/1.133, allocations: 39.44 kB / 1.126 GB, free: 104.4 MB / 0.698 GB Notification: Performance of SimCode: time 7.22e-07/1.133, allocations: 0 / 1.126 GB, free: 104.4 MB / 0.698 GB Notification: Performance of Templates: time 0.01486/1.148, allocations: 10.31 MB / 1.136 GB, free: 94.24 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches