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.48/1.48, allocations: 249.5 MB / 257 MB, free: 6.926 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001155/0.001155, allocations: 192.8 kB / 316.3 MB, free: 3.219 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.635/1.635, allocations: 205.3 MB / 0.5671 GB, free: 15.87 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.0008427/0.0008426, allocations: 92.5 kB / 0.6714 GB, free: 4.984 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.182e-05/2.184e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.202/0.202, allocations: 106.3 MB / 0.8852 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6889/0.891, allocations: 154 MB / 1.036 GB, free: 1.371 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003103/0.8913, allocations: 93.56 kB / 1.036 GB, free: 1.32 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.08646/0.9778, allocations: 36.4 MB / 1.071 GB, free: 2.844 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.182e-06/0.9779, allocations: 3.938 kB / 1.071 GB, free: 2.84 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.704e-05/0.9779, allocations: 23.98 kB / 1.071 GB, free: 2.816 MB / 0.6823 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.001539/0.9795, allocations: 0.9494 MB / 1.072 GB, free: 1.871 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.624e-05/0.9795, allocations: 8.031 kB / 1.072 GB, free: 1.863 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001499/0.981, allocations: 238.1 kB / 1.072 GB, free: 1.633 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008341/0.9819, allocations: 0.5343 MB / 1.073 GB, free: 1.121 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.432e-05/0.9819, allocations: 20 kB / 1.073 GB, free: 1.102 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.474e-05/0.982, allocations: 43.98 kB / 1.073 GB, free: 1.059 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009065/0.983, allocations: 0.5956 MB / 1.074 GB, free: 0.6719 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001335/0.9843, allocations: 1.016 MB / 1.075 GB, free: 15.73 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.717e-05/0.9843, allocations: 7.922 kB / 1.075 GB, free: 15.72 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.276e-05/0.9844, allocations: 7.938 kB / 1.075 GB, free: 15.71 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.917e-05/0.9845, allocations: 55.92 kB / 1.075 GB, free: 15.66 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005194/0.9897, allocations: 5.766 MB / 1.08 GB, free: 10.03 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008038/0.9905, allocations: 0.523 MB / 1.081 GB, free: 9.668 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003668/0.9909, allocations: 307.3 kB / 1.081 GB, free: 9.48 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.749e-05/0.9909, allocations: 8.438 kB / 1.081 GB, free: 9.473 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/0.991, allocations: 38.55 kB / 1.081 GB, free: 9.43 MB / 0.698 GB Notification: Performance of pre-optimization done (n=47): time 2.565e-06/0.991, allocations: 0 / 1.081 GB, free: 9.43 MB / 0.698 GB Notification: Performance of matching and sorting (n=48): time 0.002007/0.993, allocations: 1.165 MB / 1.082 GB, free: 8.512 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.498e-05/0.9931, allocations: 55.84 kB / 1.082 GB, free: 8.445 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004247/0.9935, allocations: 393.9 kB / 1.083 GB, free: 8.137 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.534e-05/0.9935, allocations: 25.7 kB / 1.083 GB, free: 8.105 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002384/0.9938, allocations: 411.3 kB / 1.083 GB, free: 7.793 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001351/0.9939, allocations: 167.8 kB / 1.083 GB, free: 7.648 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.833e-05/0.994, allocations: 0 / 1.083 GB, free: 7.648 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.9941, allocations: 364.9 kB / 1.084 GB, free: 7.305 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003199/0.9944, allocations: 253.5 kB / 1.084 GB, free: 7.148 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004493/0.9949, allocations: 438.5 kB / 1.084 GB, free: 6.75 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004102/0.9953, allocations: 316.8 kB / 1.085 GB, free: 6.539 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.9953, allocations: 0 / 1.085 GB, free: 6.539 MB / 0.698 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001586/0.9969, allocations: 0.9715 MB / 1.086 GB, free: 5.781 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.563e-05/0.997, allocations: 8 kB / 1.086 GB, free: 5.773 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/0.997, allocations: 4 kB / 1.086 GB, free: 5.77 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008183/0.9978, allocations: 272.7 kB / 1.086 GB, free: 5.539 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00048/0.9983, allocations: 119.4 kB / 1.086 GB, free: 5.426 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005733/1.004, allocations: 6.334 MB / 1.092 GB, free: 15.24 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006536/1.005, allocations: 23.97 kB / 1.092 GB, free: 15.21 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.974e-05/1.005, allocations: 23.88 kB / 1.092 GB, free: 15.2 MB / 0.7136 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 () * 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.0001849/1.005, allocations: 128.6 kB / 1.092 GB, free: 15.07 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/1.005, allocations: 75.19 kB / 1.092 GB, free: 14.99 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001397/1.007, allocations: 0.8173 MB / 1.093 GB, free: 14.39 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.231e-05/1.007, allocations: 4 kB / 1.093 GB, free: 14.39 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/1.007, allocations: 4 kB / 1.093 GB, free: 14.38 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/1.007, allocations: 3.984 kB / 1.093 GB, free: 14.38 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002259/1.009, allocations: 1.566 MB / 1.095 GB, free: 13.12 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.319e-06/1.009, allocations: 0 / 1.095 GB, free: 13.12 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002709/1.009, allocations: 59.89 kB / 1.095 GB, free: 13.06 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006909/1.01, allocations: 256.8 kB / 1.095 GB, free: 12.84 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.104e-05/1.01, allocations: 8 kB / 1.095 GB, free: 12.84 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00595/1.016, allocations: 6.316 MB / 1.101 GB, free: 6.664 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.662e-06/1.016, allocations: 4.031 kB / 1.101 GB, free: 6.66 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001694/1.018, allocations: 0.9978 MB / 1.102 GB, free: 5.781 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003393/1.018, allocations: 185.4 kB / 1.102 GB, free: 5.602 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.487e-05/1.018, allocations: 4 kB / 1.102 GB, free: 5.598 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003548/1.018, allocations: 19.95 kB / 1.102 GB, free: 5.578 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/1.019, allocations: 46.78 kB / 1.102 GB, free: 5.539 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.21e-05/1.019, allocations: 18.5 kB / 1.102 GB, free: 5.523 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0003381/1.019, allocations: 302.1 kB / 1.103 GB, free: 5.301 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.3e-07/1.019, allocations: 0 / 1.103 GB, free: 5.301 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0008877/1.02, allocations: 196 kB / 1.103 GB, free: 5.109 MB / 0.7136 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 () * 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.0002178/1.02, allocations: 116.7 kB / 1.103 GB, free: 4.988 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.001866/1.022, allocations: 1.179 MB / 1.104 GB, free: 3.848 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/1.022, allocations: 0 / 1.104 GB, free: 3.848 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.001184/1.023, allocations: 0.8348 MB / 1.105 GB, free: 2.973 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008961/1.024, allocations: 161.1 kB / 1.105 GB, free: 2.816 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001747/1.026, allocations: 0.9453 MB / 1.106 GB, free: 1.828 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006621/1.026, allocations: 1.024 MB / 1.107 GB, free: 0.7773 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0004301/1.027, allocations: 109.4 kB / 1.107 GB, free: 0.668 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/1.027, allocations: 47.42 kB / 1.107 GB, free: 0.6211 MB / 0.7136 GB Notification: Performance of SimCode: time 1.062e-06/1.027, allocations: 0 / 1.107 GB, free: 0.6211 MB / 0.7136 GB Notification: Performance of Templates: time 0.01623/1.043, allocations: 9.29 MB / 1.116 GB, free: 7.434 MB / 0.7292 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