Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.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_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_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.OnePhase.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_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001224/0.001224, allocations: 99.55 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.001423/0.001423, allocations: 177.3 kB / 15.94 MB, free: 228 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.408/1.408, allocations: 223.2 MB / 239.9 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.718/2.718, allocations: 436.5 MB / 0.7104 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003494/0.0003494, allocations: 12 kB / 0.8708 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8196/0.82, allocations: 153.6 MB / 1.021 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.00729/0.8274, allocations: 4.638 MB / 1.025 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.005599/0.8331, allocations: 2.465 MB / 1.028 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005076/0.8336, allocations: 19.81 kB / 1.028 GB, free: 9.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003265/0.834, allocations: 91.38 kB / 1.028 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.00103/0.835, allocations: 323 kB / 1.028 GB, free: 9.504 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001008/0.836, allocations: 303.2 kB / 1.028 GB, free: 9.207 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001106/0.8371, allocations: 0.59 MB / 1.029 GB, free: 8.617 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00152/0.8387, allocations: 0.7307 MB / 1.03 GB, free: 7.852 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005874/0.8393, allocations: 286.9 kB / 1.03 GB, free: 7.57 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005459/0.8398, allocations: 294.9 kB / 1.03 GB, free: 7.281 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.362e-05/0.8399, allocations: 28 kB / 1.03 GB, free: 7.254 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005365/0.8404, allocations: 159.8 kB / 1.03 GB, free: 7.098 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002112/0.8406, allocations: 203.4 kB / 1.031 GB, free: 6.898 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001446/0.8408, allocations: 145.3 kB / 1.031 GB, free: 6.75 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0007703/0.8416, allocations: 0.6837 MB / 1.031 GB, free: 6.066 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.8416, allocations: 4 kB / 1.031 GB, free: 6.062 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.194e-06/0.8416, allocations: 0 / 1.031 GB, free: 6.062 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.437e-06/0.8416, allocations: 0 / 1.031 GB, free: 6.062 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001489/0.8431, allocations: 0.8451 MB / 1.032 GB, free: 5.168 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.8432, allocations: 15.98 kB / 1.032 GB, free: 5.152 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001219/0.8444, allocations: 179 kB / 1.032 GB, free: 4.977 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008176/0.8452, allocations: 473.5 kB / 1.033 GB, free: 4.473 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.965e-05/0.8453, allocations: 40.98 kB / 1.033 GB, free: 4.434 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001625/0.8454, allocations: 63.91 kB / 1.033 GB, free: 4.371 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.8466, allocations: 0.82 MB / 1.034 GB, free: 3.469 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.645e-05/0.8467, allocations: 7.844 kB / 1.034 GB, free: 3.461 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.055e-05/0.8467, allocations: 23.98 kB / 1.034 GB, free: 3.438 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000184/0.8469, allocations: 68.95 kB / 1.034 GB, free: 3.371 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008746/0.8478, allocations: 0.5697 MB / 1.034 GB, free: 2.801 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004591/0.8524, allocations: 4.585 MB / 1.039 GB, free: 13.87 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004665/0.8529, allocations: 299.2 kB / 1.039 GB, free: 13.57 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.076e-05/0.8529, allocations: 4.281 kB / 1.039 GB, free: 13.56 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.623e-05/0.853, allocations: 30.84 kB / 1.039 GB, free: 13.52 MB / 0.795 GB Notification: Performance of pre-optimization done (n=33): time 2.024e-06/0.853, allocations: 4 kB / 1.039 GB, free: 13.52 MB / 0.795 GB Notification: Performance of matching and sorting (n=40): time 0.005531/0.8585, allocations: 2.627 MB / 1.042 GB, free: 10.77 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/0.8586, allocations: 55.41 kB / 1.042 GB, free: 10.7 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005026/0.8591, allocations: 457.9 kB / 1.042 GB, free: 10.24 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.68e-05/0.8592, allocations: 33.7 kB / 1.042 GB, free: 10.2 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002487/0.8594, allocations: 339.6 kB / 1.043 GB, free: 9.863 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.8595, allocations: 145.9 kB / 1.043 GB, free: 9.719 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.725e-05/0.8596, allocations: 16 kB / 1.043 GB, free: 9.703 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001572/0.8597, allocations: 366.7 kB / 1.043 GB, free: 9.336 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003309/0.8601, allocations: 229 kB / 1.043 GB, free: 9.113 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000442/0.8605, allocations: 408 kB / 1.044 GB, free: 8.645 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004196/0.8609, allocations: 301.5 kB / 1.044 GB, free: 8.352 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.8609, allocations: 0 / 1.044 GB, free: 8.352 MB / 0.795 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001619/0.8626, allocations: 0.9216 MB / 1.045 GB, free: 7.414 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.8626, allocations: 8 kB / 1.045 GB, free: 7.406 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.8626, allocations: 4 kB / 1.045 GB, free: 7.402 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007884/0.8634, allocations: 222.5 kB / 1.045 GB, free: 7.176 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005278/0.864, allocations: 115.8 kB / 1.045 GB, free: 7.062 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005252/0.8692, allocations: 5.005 MB / 1.05 GB, free: 1.656 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005964/0.8699, allocations: 32.03 kB / 1.05 GB, free: 1.625 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.09e-05/0.8699, allocations: 28 kB / 1.05 GB, free: 1.598 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * 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.0003803/0.8703, allocations: 229.5 kB / 1.051 GB, free: 1.363 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.647e-05/0.8704, allocations: 55.34 kB / 1.051 GB, free: 1.309 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001497/0.8719, allocations: 0.7658 MB / 1.051 GB, free: 0.5234 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.286e-06/0.8719, allocations: 4 kB / 1.051 GB, free: 0.5195 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.229e-05/0.872, allocations: 7.938 kB / 1.051 GB, free: 0.5117 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.84e-06/0.872, allocations: 0 / 1.051 GB, free: 0.5117 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002611/0.8746, allocations: 1.494 MB / 1.053 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.8746, allocations: 4.375 kB / 1.053 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003797/0.875, allocations: 71.88 kB / 1.053 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007212/0.8757, allocations: 206.6 kB / 1.053 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.07e-05/0.8758, allocations: 8 kB / 1.053 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005214/0.881, allocations: 4.959 MB / 1.058 GB, free: 9.277 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.881, allocations: 3.938 kB / 1.058 GB, free: 9.273 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002074/0.8831, allocations: 1.205 MB / 1.059 GB, free: 7.977 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003557/0.8835, allocations: 172.4 kB / 1.059 GB, free: 7.789 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001537/0.8837, allocations: 8 kB / 1.059 GB, free: 7.781 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004179/0.8841, allocations: 27.97 kB / 1.059 GB, free: 7.754 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.8842, allocations: 39.95 kB / 1.059 GB, free: 7.715 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-05/0.8842, allocations: 12 kB / 1.059 GB, free: 7.703 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0004014/0.8846, allocations: 306.8 kB / 1.06 GB, free: 7.406 MB / 0.8106 GB Notification: Performance of sort global known variables: time 3.31e-07/0.8846, allocations: 0 / 1.06 GB, free: 7.406 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0008444/0.8855, allocations: 172 kB / 1.06 GB, free: 7.238 MB / 0.8106 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.0002071/0.8857, allocations: 117.8 kB / 1.06 GB, free: 7.117 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001751/0.8875, allocations: 1.008 MB / 1.061 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.8875, allocations: 7.938 kB / 1.061 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.001113/0.8886, allocations: 0.6721 MB / 1.062 GB, free: 5.352 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009892/0.8896, allocations: 157.8 kB / 1.062 GB, free: 5.199 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002848/0.8925, allocations: 1.487 MB / 1.063 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000925/0.8934, allocations: 0.9572 MB / 1.064 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.000474/0.8939, allocations: 113 kB / 1.064 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001144/0.894, allocations: 39.42 kB / 1.064 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of SimCode: time 1.012e-06/0.894, allocations: 0 / 1.064 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of Templates: time 0.01733/0.9114, allocations: 8.135 MB / 1.072 GB, free: 10.5 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches