Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.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.ThreePhasesUnbalanced.Lines.Examples.ACLine_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.load1.i.1.|R1.load1.i.2.|R2.load1.i.1.|R2.load1.i.2.|R3.load1.i.1.|R3.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.load1.i.1.|R1.load1.i.2.|R2.load1.i.1.|R2.load1.i.2.|R3.load1.i.1.|R3.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 91.92 kB / 16.02 MB, free: 80 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.001503/0.001503, allocations: 179.3 kB / 16.92 MB, free: 6.652 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.38/1.38, allocations: 223.3 MB / 241 MB, free: 5.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.806/2.806, allocations: 462.7 MB / 0.7371 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003364/0.0003364, allocations: 11.12 kB / 0.9034 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.303/0.3034, allocations: 159.6 MB / 1.059 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N): time 0.0339/0.3373, allocations: 32.22 MB / 1.091 GB, free: 4.578 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02233/0.3597, allocations: 14.61 MB / 1.105 GB, free: 5.926 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003707/0.3635, allocations: 139.2 kB / 1.105 GB, free: 5.789 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.002652/0.3661, allocations: 0.7288 MB / 1.106 GB, free: 5.055 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.008276/0.3744, allocations: 2.69 MB / 1.109 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00552/0.38, allocations: 1.995 MB / 1.11 GB, free: 368 kB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01458/0.3946, allocations: 12.19 MB / 1.122 GB, free: 4.137 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02007/0.4147, allocations: 11.51 MB / 1.134 GB, free: 8.523 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006855/0.4216, allocations: 2.973 MB / 1.137 GB, free: 5.539 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008065/0.4297, allocations: 3.503 MB / 1.14 GB, free: 2.023 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.001769/0.4315, allocations: 296 kB / 1.14 GB, free: 1.734 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004628/0.4362, allocations: 1.556 MB / 1.142 GB, free: 180 kB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.004252/0.4404, allocations: 2.299 MB / 1.144 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.00881/0.4493, allocations: 2.781 MB / 1.147 GB, free: 11.07 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.01234/0.4617, allocations: 9.202 MB / 1.156 GB, free: 1.844 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 8.776e-06/0.4617, allocations: 7.938 kB / 1.156 GB, free: 1.836 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.384e-06/0.4617, allocations: 0 / 1.156 GB, free: 1.836 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0004403/0.4622, allocations: 0 / 1.156 GB, free: 1.836 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1338 * Number of variables: 1338 Notification: Performance of Generate backend data structure: time 0.01381/0.476, allocations: 4.833 MB / 1.16 GB, free: 12.93 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.668e-05/0.4761, allocations: 15.97 kB / 1.16 GB, free: 12.91 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008129/0.4842, allocations: 1.141 MB / 1.162 GB, free: 11.76 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008315/0.4926, allocations: 3.325 MB / 1.165 GB, free: 8.359 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005029/0.4931, allocations: 374.4 kB / 1.165 GB, free: 7.992 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002079/0.4952, allocations: 499.9 kB / 1.166 GB, free: 7.504 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02131/0.5165, allocations: 8.005 MB / 1.173 GB, free: 15.22 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003385/0.5169, allocations: 19.78 kB / 1.173 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002042/0.519, allocations: 216 kB / 1.174 GB, free: 14.99 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001406/0.5204, allocations: 441.5 kB / 1.174 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01403/0.5345, allocations: 6.092 MB / 1.18 GB, free: 8.449 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04711/0.5816, allocations: 35.23 MB / 1.214 GB, free: 2.039 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003309/0.585, allocations: 2.025 MB / 1.216 GB, free: 0 / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002941/0.5879, allocations: 1.85 MB / 1.218 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001633/0.5881, allocations: 18 kB / 1.218 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.276e-05/0.5882, allocations: 64.45 kB / 1.218 GB, free: 14.06 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=171): time 3.917e-06/0.5882, allocations: 0 / 1.218 GB, free: 14.06 MB / 0.9825 GB Notification: Performance of matching and sorting (n=276): time 0.752/1.34, allocations: 38.99 MB / 1.256 GB, free: 171 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.421e-05/1.34, allocations: 81.55 kB / 1.256 GB, free: 171 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003796/1.344, allocations: 2.278 MB / 1.259 GB, free: 170.7 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0005364/1.345, allocations: 72.67 kB / 1.259 GB, free: 170.7 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001832/1.347, allocations: 2.279 MB / 1.261 GB, free: 169.6 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001021/1.348, allocations: 0.9314 MB / 1.262 GB, free: 169 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004085/1.348, allocations: 235.7 kB / 1.262 GB, free: 169 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.091e-05/1.348, allocations: 302.6 kB / 1.262 GB, free: 168.7 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003241/1.351, allocations: 1.972 MB / 1.264 GB, free: 168.7 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004088/1.355, allocations: 2.606 MB / 1.267 GB, free: 168.1 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007809/1.363, allocations: 4.94 MB / 1.272 GB, free: 165.5 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.527e-05/1.363, allocations: 4.344 kB / 1.272 GB, free: 165.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.01653/1.38, allocations: 7.757 MB / 1.279 GB, free: 162.4 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5.068e-05/1.38, allocations: 13.16 kB / 1.279 GB, free: 162.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.499e-05/1.38, allocations: 17.69 kB / 1.279 GB, free: 162.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009955/1.39, allocations: 3.213 MB / 1.282 GB, free: 161.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00188/1.392, allocations: 408 kB / 1.283 GB, free: 161.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03677/1.429, allocations: 31.17 MB / 1.313 GB, free: 142.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003434/1.432, allocations: 164.7 kB / 1.313 GB, free: 142.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003921/1.432, allocations: 107.2 kB / 1.314 GB, free: 142.1 MB / 0.9981 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 (202): * Single equations (assignments): 196 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(10,28,71.0%), (10,28,65.0%), (6,24,77.8%), (6,24,77.8%), (5,17,84.0%), (5,17,84.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003401/1.436, allocations: 1.8 MB / 1.315 GB, free: 140.9 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007446/1.437, allocations: 333.1 kB / 1.316 GB, free: 140.8 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01255/1.449, allocations: 7.361 MB / 1.323 GB, free: 134.3 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-05/1.449, allocations: 24 kB / 1.323 GB, free: 134.2 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.307e-05/1.449, allocations: 32 kB / 1.323 GB, free: 134.2 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-05/1.449, allocations: 15.94 kB / 1.323 GB, free: 134.2 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02083/1.47, allocations: 12.93 MB / 1.336 GB, free: 121.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-05/1.47, allocations: 8 kB / 1.336 GB, free: 121.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009512/1.471, allocations: 229.7 kB / 1.336 GB, free: 120.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007396/1.479, allocations: 2.849 MB / 1.339 GB, free: 118 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003258/1.479, allocations: 55.94 kB / 1.339 GB, free: 118 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03224/1.511, allocations: 29.97 MB / 1.368 GB, free: 87.23 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.306e-06/1.511, allocations: 15.3 kB / 1.368 GB, free: 87.22 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01095/1.522, allocations: 6.876 MB / 1.375 GB, free: 80.12 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002104/1.524, allocations: 0.786 MB / 1.375 GB, free: 79.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006839/1.525, allocations: 55.98 kB / 1.375 GB, free: 79.26 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001977/1.527, allocations: 171.7 kB / 1.376 GB, free: 79.1 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000876/1.528, allocations: 265.2 kB / 1.376 GB, free: 78.84 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001727/1.528, allocations: 72 kB / 1.376 GB, free: 78.77 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001923/1.53, allocations: 1.529 MB / 1.377 GB, free: 77.24 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.31e-07/1.53, allocations: 0 / 1.377 GB, free: 77.24 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.004748/1.535, allocations: 1.367 MB / 1.379 GB, free: 75.87 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (105): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(5,17,84.0%), (6,24,77.8%), (10,28,65.0%), (5,17,92.0%), (6,24,77.8%), (10,28,65.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004827/1.535, allocations: 177.4 kB / 1.379 GB, free: 75.69 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01034/1.546, allocations: 6.912 MB / 1.386 GB, free: 68.7 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.187e-05/1.546, allocations: 4.812 kB / 1.386 GB, free: 68.7 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.006926/1.553, allocations: 4.42 MB / 1.39 GB, free: 64.21 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00837/1.561, allocations: 1.031 MB / 1.391 GB, free: 63.22 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01854/1.58, allocations: 13.18 MB / 1.404 GB, free: 49.95 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003822/1.584, allocations: 3.754 MB / 1.407 GB, free: 46.16 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008259/1.584, allocations: 167.4 kB / 1.408 GB, free: 45.99 MB / 0.9981 GB Notification: Performance of SimCode: time 1.232e-06/1.584, allocations: 0 / 1.408 GB, free: 45.99 MB / 0.9981 GB Notification: Performance of Templates: time 0.2738/1.858, allocations: 226.7 MB / 1.629 GB, free: 11.37 MB / 1.186 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches