Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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.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_latest_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_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 103.1 kB / 15.06 MB, free: 1.098 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.001028/0.001028, allocations: 173.3 kB / 15.95 MB, free: 212 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.451/1.451, allocations: 223.2 MB / 239.9 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.669/2.669, allocations: 436.5 MB / 0.7104 GB, free: 7.867 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004766/0.0004766, allocations: 12 kB / 0.8708 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8455/0.846, allocations: 153.7 MB / 1.021 GB, free: 1.242 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.006473/0.8525, allocations: 5.702 MB / 1.026 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.005089/0.8577, allocations: 2.901 MB / 1.029 GB, free: 8.609 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001013/0.8587, allocations: 27.81 kB / 1.029 GB, free: 8.582 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0006709/0.8594, allocations: 119.1 kB / 1.029 GB, free: 8.465 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.002016/0.8615, allocations: 418.7 kB / 1.03 GB, free: 8.055 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001785/0.8633, allocations: 319.4 kB / 1.03 GB, free: 7.742 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.00218/0.8655, allocations: 0.7388 MB / 1.031 GB, free: 7.004 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002193/0.8677, allocations: 0.9273 MB / 1.032 GB, free: 6.051 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007853/0.8685, allocations: 354.7 kB / 1.032 GB, free: 5.703 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008548/0.8694, allocations: 398.5 kB / 1.032 GB, free: 5.312 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0002231/0.8696, allocations: 36 kB / 1.032 GB, free: 5.277 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006777/0.8703, allocations: 147.8 kB / 1.033 GB, free: 5.133 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0003156/0.8706, allocations: 243.3 kB / 1.033 GB, free: 4.895 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000277/0.8709, allocations: 177.3 kB / 1.033 GB, free: 4.715 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0009944/0.8719, allocations: 0.8669 MB / 1.034 GB, free: 3.848 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.8719, allocations: 0 / 1.034 GB, free: 3.848 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.144e-06/0.8719, allocations: 3.938 kB / 1.034 GB, free: 3.844 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.039e-05/0.8719, allocations: 7.938 kB / 1.034 GB, free: 3.836 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001554/0.8735, allocations: 0.9893 MB / 1.035 GB, free: 2.797 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.8735, allocations: 8.031 kB / 1.035 GB, free: 2.789 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001214/0.8748, allocations: 222.7 kB / 1.035 GB, free: 2.57 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008381/0.8756, allocations: 0.5249 MB / 1.036 GB, free: 2.004 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.011e-05/0.8757, allocations: 53.27 kB / 1.036 GB, free: 1.953 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.8758, allocations: 63.98 kB / 1.036 GB, free: 1.891 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001437/0.8772, allocations: 1.069 MB / 1.037 GB, free: 0.7109 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.703e-05/0.8772, allocations: 15.92 kB / 1.037 GB, free: 0.6953 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.154e-05/0.8773, allocations: 24 kB / 1.037 GB, free: 0.6719 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001756/0.8775, allocations: 85.2 kB / 1.037 GB, free: 0.5898 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001112/0.8786, allocations: 0.7504 MB / 1.038 GB, free: 15.84 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005435/0.8841, allocations: 5.901 MB / 1.043 GB, free: 9.508 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009111/0.885, allocations: 0.5555 MB / 1.044 GB, free: 8.941 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.244e-05/0.8851, allocations: 8.438 kB / 1.044 GB, free: 8.934 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.444e-05/0.8851, allocations: 39 kB / 1.044 GB, free: 8.887 MB / 0.795 GB Notification: Performance of pre-optimization done (n=47): time 2.064e-06/0.8851, allocations: 0 / 1.044 GB, free: 8.887 MB / 0.795 GB Notification: Performance of matching and sorting (n=48): time 0.003735/0.8888, allocations: 1.976 MB / 1.046 GB, free: 6.812 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.725e-05/0.8889, allocations: 55.84 kB / 1.046 GB, free: 6.746 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006497/0.8896, allocations: 0.5546 MB / 1.046 GB, free: 6.184 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 5.323e-05/0.8896, allocations: 41.69 kB / 1.046 GB, free: 6.137 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002607/0.8899, allocations: 414.9 kB / 1.047 GB, free: 5.723 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001504/0.89, allocations: 173.6 kB / 1.047 GB, free: 5.551 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.972e-05/0.8901, allocations: 8 kB / 1.047 GB, free: 5.543 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001641/0.8902, allocations: 374.8 kB / 1.047 GB, free: 5.168 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003915/0.8906, allocations: 273.8 kB / 1.048 GB, free: 4.902 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005777/0.8912, allocations: 493 kB / 1.048 GB, free: 4.328 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005158/0.8918, allocations: 342 kB / 1.048 GB, free: 3.996 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.8918, allocations: 0 / 1.048 GB, free: 3.996 MB / 0.795 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001762/0.8935, allocations: 1.087 MB / 1.05 GB, free: 2.891 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.8936, allocations: 8 kB / 1.05 GB, free: 2.883 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.8936, allocations: 8 kB / 1.05 GB, free: 2.875 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007935/0.8944, allocations: 279.6 kB / 1.05 GB, free: 2.59 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004629/0.8949, allocations: 123.8 kB / 1.05 GB, free: 2.469 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006202/0.9011, allocations: 6.7 MB / 1.056 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000655/0.9018, allocations: 40.03 kB / 1.057 GB, free: 11.19 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.186e-05/0.9018, allocations: 35.98 kB / 1.057 GB, free: 11.15 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (67): * Single equations (assignments): 63 * 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.000393/0.9022, allocations: 249.5 kB / 1.057 GB, free: 10.9 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001248/0.9024, allocations: 71.16 kB / 1.057 GB, free: 10.83 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001696/0.9041, allocations: 0.8885 MB / 1.058 GB, free: 9.926 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/0.9041, allocations: 4 kB / 1.058 GB, free: 9.922 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.338e-05/0.9041, allocations: 7.953 kB / 1.058 GB, free: 9.914 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.9041, allocations: 48 / 1.058 GB, free: 9.914 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002902/0.907, allocations: 1.729 MB / 1.059 GB, free: 8.098 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.907, allocations: 192 / 1.059 GB, free: 8.098 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002916/0.9073, allocations: 67.89 kB / 1.059 GB, free: 8.031 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007987/0.9082, allocations: 267.2 kB / 1.06 GB, free: 7.758 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.186e-05/0.9082, allocations: 8 kB / 1.06 GB, free: 7.75 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007128/0.9154, allocations: 6.682 MB / 1.066 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.9154, allocations: 0 / 1.066 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001775/0.9172, allocations: 1.052 MB / 1.067 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000449/0.9176, allocations: 196.4 kB / 1.067 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001246/0.9178, allocations: 12 kB / 1.067 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004082/0.9182, allocations: 23.97 kB / 1.068 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/0.9183, allocations: 47.94 kB / 1.068 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.48e-05/0.9184, allocations: 15.98 kB / 1.068 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004968/0.9189, allocations: 387 kB / 1.068 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9189, allocations: 0 / 1.068 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0009356/0.9198, allocations: 220 kB / 1.068 GB, free: 14.5 MB / 0.8262 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%) 2,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000218/0.9201, allocations: 123.2 kB / 1.068 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.002239/0.9223, allocations: 1.256 MB / 1.069 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.135e-05/0.9223, allocations: 4.125 kB / 1.069 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001429/0.9238, allocations: 0.897 MB / 1.07 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/0.9249, allocations: 194.9 kB / 1.071 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003018/0.9279, allocations: 1.577 MB / 1.072 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007401/0.9287, allocations: 1.02 MB / 1.073 GB, free: 9.254 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0004541/0.9292, allocations: 130 kB / 1.073 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.9293, allocations: 39.44 kB / 1.073 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of SimCode: time 7.21e-07/0.9293, allocations: 3.938 kB / 1.073 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of Templates: time 0.02125/0.9506, allocations: 10.24 MB / 1.083 GB, free: 14.96 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches