Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00153/0.001531, allocations: 103.8 kB / 15.98 MB, free: 5.891 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.001646/0.001646, allocations: 188.7 kB / 16.91 MB, free: 5.746 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.377/1.377, allocations: 222.9 MB / 240.6 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.473/2.473, allocations: 390.2 MB / 0.665 GB, free: 0.5664 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002051/0.002051, allocations: 63.91 kB / 0.8127 GB, free: 14.76 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7307/0.7327, allocations: 140.4 MB / 0.9498 GB, free: 9.211 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.03764/0.7704, allocations: 37.61 MB / 0.9865 GB, free: 12.35 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.0201/0.7905, allocations: 10.89 MB / 0.9972 GB, free: 1.434 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005445/0.796, allocations: 143.2 kB / 0.9973 GB, free: 1.293 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.01096/0.8071, allocations: 4.091 MB / 1.001 GB, free: 13.2 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.007811/0.8149, allocations: 2.053 MB / 1.003 GB, free: 11.13 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.005922/0.8208, allocations: 1.96 MB / 1.005 GB, free: 9.176 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01245/0.8333, allocations: 9.315 MB / 1.014 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02242/0.8558, allocations: 13.58 MB / 1.028 GB, free: 2.141 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008278/0.8641, allocations: 4.054 MB / 1.032 GB, free: 14.07 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008691/0.8728, allocations: 4.713 MB / 1.036 GB, free: 9.348 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0028/0.8756, allocations: 0.8281 MB / 1.037 GB, free: 8.52 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005471/0.8811, allocations: 1.592 MB / 1.038 GB, free: 6.926 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.005566/0.8867, allocations: 3.142 MB / 1.042 GB, free: 3.777 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.008483/0.8952, allocations: 3.657 MB / 1.045 GB, free: 108 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.01476/0.91, allocations: 10.53 MB / 1.055 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 1.195e-05/0.9101, allocations: 0 / 1.055 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.776e-06/0.9101, allocations: 0 / 1.055 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0005599/0.9107, allocations: 4 kB / 1.055 GB, free: 5.547 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.02046/0.9311, allocations: 6.314 MB / 1.062 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.9312, allocations: 12.03 kB / 1.062 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007844/0.9391, allocations: 1.067 MB / 1.063 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008415/0.9475, allocations: 3.423 MB / 1.066 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004556/0.948, allocations: 419.8 kB / 1.066 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002286/0.9503, allocations: 0.5432 MB / 1.067 GB, free: 9.645 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02406/0.9744, allocations: 9.381 MB / 1.076 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002001/0.9746, allocations: 23.75 kB / 1.076 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001713/0.9763, allocations: 244 kB / 1.076 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006503/0.977, allocations: 422.9 kB / 1.077 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01646/0.9935, allocations: 7.12 MB / 1.084 GB, free: 8.125 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0548/1.048, allocations: 41.31 MB / 1.124 GB, free: 11.07 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004871/1.053, allocations: 3.104 MB / 1.127 GB, free: 7.953 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003039/1.056, allocations: 2.145 MB / 1.129 GB, free: 5.805 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001534/1.057, allocations: 25.94 kB / 1.129 GB, free: 5.781 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.178e-05/1.057, allocations: 60.56 kB / 1.129 GB, free: 5.711 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=209): time 5.981e-06/1.057, allocations: 3.938 kB / 1.129 GB, free: 5.707 MB / 0.8887 GB Notification: Performance of matching and sorting (n=212): time 0.0252/1.082, allocations: 10.56 MB / 1.14 GB, free: 11.05 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.54e-05/1.082, allocations: 77.34 kB / 1.14 GB, free: 10.96 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002831/1.085, allocations: 2.005 MB / 1.142 GB, free: 8.941 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0003238/1.085, allocations: 61.7 kB / 1.142 GB, free: 8.875 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.001485/1.087, allocations: 2.4 MB / 1.144 GB, free: 6.441 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.000733/1.087, allocations: 0.7395 MB / 1.145 GB, free: 5.691 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007274/1.088, allocations: 477.2 kB / 1.145 GB, free: 5.219 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001039/1.088, allocations: 301.1 kB / 1.145 GB, free: 4.922 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001884/1.09, allocations: 1.376 MB / 1.147 GB, free: 3.543 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002451/1.093, allocations: 2.1 MB / 1.149 GB, free: 1.121 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004636/1.097, allocations: 3.766 MB / 1.153 GB, free: 13.04 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.274e-05/1.097, allocations: 8 kB / 1.153 GB, free: 13.04 MB / 0.92 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.007956/1.105, allocations: 5.065 MB / 1.157 GB, free: 7.945 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.835e-05/1.105, allocations: 18.12 kB / 1.157 GB, free: 7.93 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.138e-05/1.105, allocations: 24 kB / 1.158 GB, free: 7.906 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00349/1.109, allocations: 1.595 MB / 1.159 GB, free: 6.301 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001724/1.111, allocations: 455.2 kB / 1.16 GB, free: 5.855 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02389/1.134, allocations: 18.59 MB / 1.178 GB, free: 2.715 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002641/1.137, allocations: 147.9 kB / 1.178 GB, free: 2.57 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005399/1.138, allocations: 112 kB / 1.178 GB, free: 2.461 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (231): * Single equations (assignments): 227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004066/1.142, allocations: 1.937 MB / 1.18 GB, free: 0.5117 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009194/1.143, allocations: 288.6 kB / 1.18 GB, free: 232 kB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008061/1.151, allocations: 4.451 MB / 1.184 GB, free: 11.74 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.338e-05/1.151, allocations: 24 kB / 1.184 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.173e-05/1.151, allocations: 20 kB / 1.184 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-05/1.151, allocations: 7.969 kB / 1.184 GB, free: 11.69 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0176/1.169, allocations: 9.664 MB / 1.194 GB, free: 1.883 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-05/1.169, allocations: 4 kB / 1.194 GB, free: 1.879 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001058/1.17, allocations: 236.3 kB / 1.194 GB, free: 1.648 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003512/1.173, allocations: 1.442 MB / 1.196 GB, free: 200 kB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002923/1.174, allocations: 40 kB / 1.196 GB, free: 160 kB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0231/1.197, allocations: 18.58 MB / 1.214 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.722e-06/1.197, allocations: 4 kB / 1.214 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008282/1.205, allocations: 4.54 MB / 1.218 GB, free: 8.391 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001845/1.207, allocations: 0.6382 MB / 1.219 GB, free: 7.73 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008022/1.208, allocations: 43.94 kB / 1.219 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001813/1.209, allocations: 115.9 kB / 1.219 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006022/1.21, allocations: 181.6 kB / 1.219 GB, free: 7.395 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001871/1.21, allocations: 63.94 kB / 1.219 GB, free: 7.332 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.002317/1.213, allocations: 1.319 MB / 1.22 GB, free: 6.004 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.5e-07/1.213, allocations: 4 kB / 1.22 GB, free: 6 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.004113/1.217, allocations: 1.141 MB / 1.222 GB, free: 4.859 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004598/1.217, allocations: 166.9 kB / 1.222 GB, free: 4.684 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.01083/1.228, allocations: 5.908 MB / 1.228 GB, free: 14.73 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.539e-05/1.228, allocations: 4 kB / 1.228 GB, free: 14.72 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.005191/1.233, allocations: 2.91 MB / 1.23 GB, free: 11.76 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005537/1.239, allocations: 0.8918 MB / 1.231 GB, free: 10.89 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02408/1.263, allocations: 12.55 MB / 1.243 GB, free: 14.25 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006941/1.27, allocations: 3.784 MB / 1.247 GB, free: 10.43 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009347/1.271, allocations: 163.4 kB / 1.247 GB, free: 10.27 MB / 1.014 GB Notification: Performance of SimCode: time 7.52e-07/1.271, allocations: 0 / 1.247 GB, free: 10.27 MB / 1.014 GB Notification: Performance of Templates: time 0.6968/1.968, allocations: 171.8 MB / 1.415 GB, free: 138.4 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches