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.001866/0.001866, allocations: 105.7 kB / 16.27 MB, free: 6.414 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.002021/0.002021, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.416/1.416, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.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.225/2.225, allocations: 390.3 MB / 0.6653 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001352, allocations: 64.72 kB / 0.8132 GB, free: 32.93 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.262, allocations: 140.4 MB / 0.9503 GB, free: 8.848 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.0418/0.3039, allocations: 37.97 MB / 0.9874 GB, free: 2.754 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01882/0.3227, allocations: 10.98 MB / 0.9981 GB, free: 7.738 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004242/0.327, allocations: 155.2 kB / 0.9982 GB, free: 7.586 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0113/0.3384, allocations: 4.358 MB / 1.002 GB, free: 3.215 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.007572/0.346, allocations: 2.215 MB / 1.005 GB, free: 0.9883 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.007893/0.354, allocations: 2.171 MB / 1.007 GB, free: 14.82 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.01121/0.3652, allocations: 9.284 MB / 1.016 GB, free: 5.512 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01823/0.3835, allocations: 11.36 MB / 1.027 GB, free: 10.03 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008303/0.3918, allocations: 3.981 MB / 1.031 GB, free: 6.035 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007697/0.3996, allocations: 4.506 MB / 1.035 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.002723/0.4023, allocations: 0.8203 MB / 1.036 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004817/0.4072, allocations: 1.592 MB / 1.038 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.005211/0.4124, allocations: 3.15 MB / 1.041 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.007481/0.4199, allocations: 3.657 MB / 1.044 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0147/0.4346, allocations: 12.24 MB / 1.056 GB, free: 12 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 1.511e-05/0.4347, allocations: 3.938 kB / 1.056 GB, free: 12 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.756e-06/0.4347, allocations: 0 / 1.056 GB, free: 12 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0004062/0.4351, allocations: 0 / 1.056 GB, free: 12 MB / 0.8419 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.01836/0.4535, allocations: 6.307 MB / 1.062 GB, free: 5.617 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.4536, allocations: 12.03 kB / 1.062 GB, free: 5.605 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00649/0.4601, allocations: 1.063 MB / 1.063 GB, free: 4.535 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007626/0.4677, allocations: 3.427 MB / 1.067 GB, free: 1.055 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004389/0.4682, allocations: 423.8 kB / 1.067 GB, free: 0.6406 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002031/0.4703, allocations: 0.5355 MB / 1.068 GB, free: 108 kB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02168/0.492, allocations: 9.385 MB / 1.077 GB, free: 6.387 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002326/0.4922, allocations: 27.77 kB / 1.077 GB, free: 6.359 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001627/0.4939, allocations: 244 kB / 1.077 GB, free: 6.121 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006729/0.4946, allocations: 414.9 kB / 1.077 GB, free: 5.715 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5449/1.039, allocations: 7.122 MB / 1.084 GB, free: 118.9 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05151/1.091, allocations: 41.32 MB / 1.125 GB, free: 85.92 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005075/1.096, allocations: 3.104 MB / 1.128 GB, free: 84.72 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003521/1.1, allocations: 2.134 MB / 1.13 GB, free: 83.9 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001134/1.1, allocations: 21.03 kB / 1.13 GB, free: 83.9 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.359e-05/1.1, allocations: 59.95 kB / 1.13 GB, free: 83.84 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=209): time 5.33e-06/1.1, allocations: 0 / 1.13 GB, free: 83.84 MB / 0.8575 GB Notification: Performance of matching and sorting (n=212): time 0.02614/1.126, allocations: 10.57 MB / 1.14 GB, free: 78.79 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.725e-05/1.126, allocations: 73.09 kB / 1.14 GB, free: 78.72 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004586/1.131, allocations: 1.998 MB / 1.142 GB, free: 77.64 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0003417/1.131, allocations: 63.14 kB / 1.142 GB, free: 77.58 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001615/1.133, allocations: 2.402 MB / 1.145 GB, free: 75.48 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008066/1.134, allocations: 0.7324 MB / 1.145 GB, free: 74.84 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001125/1.135, allocations: 481.2 kB / 1.146 GB, free: 74.58 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.352e-05/1.135, allocations: 309.2 kB / 1.146 GB, free: 74.28 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002138/1.137, allocations: 1.374 MB / 1.148 GB, free: 73.56 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00268/1.14, allocations: 2.102 MB / 1.15 GB, free: 71.9 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005161/1.145, allocations: 3.765 MB / 1.153 GB, free: 69.33 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.332e-05/1.145, allocations: 5.781 kB / 1.153 GB, free: 69.33 MB / 0.8575 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.008666/1.153, allocations: 5.075 MB / 1.158 GB, free: 66.64 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.484e-05/1.154, allocations: 15.88 kB / 1.158 GB, free: 66.64 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.214e-05/1.154, allocations: 23.62 kB / 1.158 GB, free: 66.64 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003123/1.157, allocations: 1.595 MB / 1.16 GB, free: 65.96 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001566/1.158, allocations: 454.7 kB / 1.16 GB, free: 65.85 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01886/1.177, allocations: 18.58 MB / 1.178 GB, free: 52.42 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002801/1.18, allocations: 147 kB / 1.179 GB, free: 52.34 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005096/1.181, allocations: 113.8 kB / 1.179 GB, free: 52.32 MB / 0.8575 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.003787/1.184, allocations: 1.94 MB / 1.181 GB, free: 50.73 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008958/1.185, allocations: 284.7 kB / 1.181 GB, free: 50.45 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006643/1.192, allocations: 4.458 MB / 1.185 GB, free: 45.96 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-05/1.192, allocations: 24 kB / 1.185 GB, free: 45.93 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.196e-05/1.192, allocations: 16 kB / 1.185 GB, free: 45.92 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-05/1.192, allocations: 15.89 kB / 1.185 GB, free: 45.9 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01707/1.209, allocations: 9.672 MB / 1.195 GB, free: 36.13 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/1.209, allocations: 8 kB / 1.195 GB, free: 36.12 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009468/1.21, allocations: 231.8 kB / 1.195 GB, free: 35.89 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002908/1.213, allocations: 1.429 MB / 1.196 GB, free: 34.46 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001739/1.213, allocations: 40 kB / 1.196 GB, free: 34.42 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01841/1.232, allocations: 18.58 MB / 1.214 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.922e-06/1.232, allocations: 7.938 kB / 1.214 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00719/1.239, allocations: 4.541 MB / 1.219 GB, free: 10.65 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001763/1.241, allocations: 0.6343 MB / 1.22 GB, free: 9.992 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009792/1.242, allocations: 36 kB / 1.22 GB, free: 9.957 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001906/1.244, allocations: 115.9 kB / 1.22 GB, free: 9.844 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000551/1.244, allocations: 181.6 kB / 1.22 GB, free: 9.664 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001656/1.244, allocations: 63.38 kB / 1.22 GB, free: 9.605 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.002234/1.247, allocations: 1.319 MB / 1.221 GB, free: 8.277 MB / 0.8575 GB Notification: Performance of sort global known variables: time 6.21e-07/1.247, allocations: 4 kB / 1.221 GB, free: 8.273 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.004293/1.251, allocations: 1.137 MB / 1.222 GB, free: 7.137 MB / 0.8575 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.0003685/1.251, allocations: 169 kB / 1.222 GB, free: 6.961 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.008776/1.26, allocations: 5.908 MB / 1.228 GB, free: 1.016 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.013e-05/1.26, allocations: 5 kB / 1.228 GB, free: 1.012 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.004598/1.265, allocations: 2.919 MB / 1.231 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005784/1.27, allocations: 0.8916 MB / 1.232 GB, free: 13.19 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02308/1.294, allocations: 10.17 MB / 1.242 GB, free: 2.934 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005647/1.299, allocations: 3.785 MB / 1.246 GB, free: 15.12 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001005/1.3, allocations: 163.4 kB / 1.246 GB, free: 14.96 MB / 0.8887 GB Notification: Performance of SimCode: time 9.32e-07/1.3, allocations: 4 kB / 1.246 GB, free: 14.95 MB / 0.8887 GB Notification: Performance of Templates: time 0.2344/1.535, allocations: 171.8 MB / 1.414 GB, free: 3.238 MB / 1.045 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