Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_3.load1.v.1.|load_sc_3.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_3.load1.v.1.|load_sc_3.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.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.001511/0.001511, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001916/0.001916, allocations: 197.7 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.896/2.896, allocations: 472.6 MB / 0.7451 GB, free: 4.605 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00222/0.00222, allocations: 68.95 kB / 0.9121 GB, free: 33.31 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3809/0.3831, allocations: 159.9 MB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.03511/0.4183, allocations: 26.67 MB / 1.094 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01592/0.4343, allocations: 8.059 MB / 1.102 GB, free: 7.527 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003255/0.4375, allocations: 115.4 kB / 1.102 GB, free: 7.414 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.007728/0.4454, allocations: 2.764 MB / 1.105 GB, free: 4.645 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.005533/0.4509, allocations: 1.586 MB / 1.107 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00556/0.4565, allocations: 1.681 MB / 1.108 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.00954/0.466, allocations: 6.139 MB / 1.114 GB, free: 11.21 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01399/0.4801, allocations: 7.421 MB / 1.121 GB, free: 3.684 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005603/0.4858, allocations: 2.563 MB / 1.124 GB, free: 1.113 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005818/0.4916, allocations: 2.823 MB / 1.127 GB, free: 14.28 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.00201/0.4937, allocations: 0.5117 MB / 1.127 GB, free: 13.77 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005243/0.4989, allocations: 1.287 MB / 1.128 GB, free: 12.48 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.004267/0.5032, allocations: 2.051 MB / 1.13 GB, free: 10.43 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.006601/0.5098, allocations: 2.381 MB / 1.133 GB, free: 8.035 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.01257/0.5224, allocations: 7.997 MB / 1.141 GB, free: 16 kB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.5225, allocations: 0 / 1.141 GB, free: 16 kB / 0.8887 GB Notification: Performance of FrontEnd: time 2.014e-06/0.5225, allocations: 0 / 1.141 GB, free: 16 kB / 0.8887 GB Notification: Performance of Transformations before backend: time 0.0003326/0.5228, allocations: 0 / 1.141 GB, free: 16 kB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.01316/0.536, allocations: 4.235 MB / 1.145 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.5361, allocations: 8.031 kB / 1.145 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005585/0.5417, allocations: 0.804 MB / 1.145 GB, free: 10.9 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00651/0.5482, allocations: 2.428 MB / 1.148 GB, free: 8.414 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000319/0.5486, allocations: 275.6 kB / 1.148 GB, free: 8.145 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001669/0.5502, allocations: 372.5 kB / 1.148 GB, free: 7.781 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01578/0.566, allocations: 5.992 MB / 1.154 GB, free: 1.535 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002303/0.5663, allocations: 23.78 kB / 1.154 GB, free: 1.512 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001421/0.5677, allocations: 156 kB / 1.154 GB, free: 1.359 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000798/0.5686, allocations: 278.9 kB / 1.155 GB, free: 1.086 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01101/0.5796, allocations: 4.524 MB / 1.159 GB, free: 12.55 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03676/0.6164, allocations: 27.66 MB / 1.186 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001954/0.6184, allocations: 1.127 MB / 1.187 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001533/0.6199, allocations: 1.015 MB / 1.188 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 9.582e-05/0.62, allocations: 13 kB / 1.188 GB, free: 12.22 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.466e-05/0.6201, allocations: 43.56 kB / 1.188 GB, free: 12.17 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=110): time 3.707e-06/0.6201, allocations: 0 / 1.188 GB, free: 12.17 MB / 0.9512 GB Notification: Performance of matching and sorting (n=131): time 0.02331/0.6434, allocations: 9.662 MB / 1.198 GB, free: 2.293 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.099e-05/0.6435, allocations: 76.64 kB / 1.198 GB, free: 2.207 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002637/0.6462, allocations: 1.498 MB / 1.199 GB, free: 0.7109 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0001358/0.6463, allocations: 53.64 kB / 1.199 GB, free: 0.6523 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001256/0.6476, allocations: 1.663 MB / 1.201 GB, free: 14.96 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005116/0.6481, allocations: 473.3 kB / 1.201 GB, free: 14.5 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005963/0.6487, allocations: 327.2 kB / 1.202 GB, free: 14.17 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.614e-05/0.6488, allocations: 305.1 kB / 1.202 GB, free: 13.87 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001369/0.6502, allocations: 0.9174 MB / 1.203 GB, free: 12.95 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001748/0.6519, allocations: 1.467 MB / 1.204 GB, free: 11.25 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003278/0.6552, allocations: 2.546 MB / 1.207 GB, free: 8.461 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.417e-05/0.6553, allocations: 8 kB / 1.207 GB, free: 8.453 MB / 0.9669 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.0063/0.6616, allocations: 3.277 MB / 1.21 GB, free: 5.137 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4e-05/0.6616, allocations: 15.98 kB / 1.21 GB, free: 5.121 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.455e-05/0.6617, allocations: 20.84 kB / 1.21 GB, free: 5.102 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002333/0.664, allocations: 0.7413 MB / 1.211 GB, free: 4.332 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001538/0.6656, allocations: 387.3 kB / 1.211 GB, free: 3.953 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0166/0.6822, allocations: 17.05 MB / 1.228 GB, free: 1.637 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00185/0.6841, allocations: 99.91 kB / 1.228 GB, free: 1.539 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003192/0.6844, allocations: 79.98 kB / 1.228 GB, free: 1.461 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (193): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002505/0.6869, allocations: 1.311 MB / 1.229 GB, free: 144 kB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005845/0.6875, allocations: 201.7 kB / 1.229 GB, free: 15.94 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005339/0.6929, allocations: 2.784 MB / 1.232 GB, free: 13.11 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.318e-05/0.6929, allocations: 12 kB / 1.232 GB, free: 13.1 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.541e-05/0.6929, allocations: 8 kB / 1.232 GB, free: 13.09 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/0.6929, allocations: 3.984 kB / 1.232 GB, free: 13.09 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01146/0.7044, allocations: 6.225 MB / 1.238 GB, free: 6.695 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.374e-05/0.7044, allocations: 15.94 kB / 1.238 GB, free: 6.68 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001198/0.7056, allocations: 223.7 kB / 1.239 GB, free: 6.461 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002077/0.7077, allocations: 0.6712 MB / 1.239 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001181/0.7079, allocations: 31.98 kB / 1.239 GB, free: 5.73 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5923/1.3, allocations: 16.79 MB / 1.256 GB, free: 155.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.805e-06/1.3, allocations: 7.688 kB / 1.256 GB, free: 155.1 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005984/1.306, allocations: 4.012 MB / 1.26 GB, free: 154.7 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009068/1.307, allocations: 449.9 kB / 1.26 GB, free: 154.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002707/1.307, allocations: 41.7 kB / 1.26 GB, free: 154.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009355/1.308, allocations: 80.55 kB / 1.26 GB, free: 154.6 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003406/1.309, allocations: 116.1 kB / 1.26 GB, free: 154.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.713e-05/1.309, allocations: 39.56 kB / 1.26 GB, free: 154.6 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001206/1.31, allocations: 0.9941 MB / 1.261 GB, free: 154.4 MB / 0.9981 GB Notification: Performance of sort global known variables: time 3.3e-07/1.31, allocations: 0 / 1.261 GB, free: 154.4 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002135/1.312, allocations: 0.6853 MB / 1.262 GB, free: 154.4 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (RL_3.phase1.i_p[1],RL_3.phase1.i_p[2],RL_3.phase2.i_p[1],RL_3.phase2.i_p[2],RL_3.phase3.i_p[1],RL_3.phase3.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 (101): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002416/1.312, allocations: 152.2 kB / 1.262 GB, free: 154.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.006472/1.319, allocations: 4.104 MB / 1.266 GB, free: 152.3 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.467e-05/1.319, allocations: 1.438 kB / 1.266 GB, free: 152.3 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003534/1.322, allocations: 2.294 MB / 1.268 GB, free: 150.8 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003394/1.326, allocations: 0.6717 MB / 1.269 GB, free: 150.7 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01324/1.339, allocations: 6.533 MB / 1.275 GB, free: 147.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003191/1.342, allocations: 2.66 MB / 1.278 GB, free: 146.4 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.00188/1.344, allocations: 490.7 kB / 1.278 GB, free: 146.4 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003982/1.345, allocations: 121.7 kB / 1.278 GB, free: 146.4 MB / 0.9981 GB Notification: Performance of SimCode: time 8.82e-07/1.345, allocations: 0 / 1.278 GB, free: 146.4 MB / 0.9981 GB Notification: Performance of Templates: time 0.05691/1.402, allocations: 33.65 MB / 1.311 GB, free: 133.5 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches