Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001465/0.001465, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001803/0.001803, allocations: 195.1 kB / 16.14 MB, free: 6.645 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.429/1.429, allocations: 222.9 MB / 239.8 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.615/2.615, allocations: 437 MB / 0.7099 GB, free: 5.359 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 63.91 kB / 0.8686 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7988/0.8, allocations: 151.6 MB / 1.017 GB, free: 2.805 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04414/0.8442, allocations: 37.61 MB / 1.053 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.01914/0.8634, allocations: 10.95 MB / 1.064 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00472/0.8682, allocations: 143.2 kB / 1.064 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.01132/0.8796, allocations: 4.075 MB / 1.068 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.007588/0.8872, allocations: 2.084 MB / 1.07 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.006472/0.8937, allocations: 1.973 MB / 1.072 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.01771/0.9114, allocations: 13.18 MB / 1.085 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02376/0.9352, allocations: 12.45 MB / 1.097 GB, free: 32 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009014/0.9443, allocations: 3.41 MB / 1.1 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009773/0.9541, allocations: 4.595 MB / 1.105 GB, free: 8 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.003331/0.9575, allocations: 0.5586 MB / 1.106 GB, free: 7.441 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005896/0.9634, allocations: 1.549 MB / 1.107 GB, free: 5.891 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.005872/0.9693, allocations: 2.888 MB / 1.11 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.008142/0.9775, allocations: 3.36 MB / 1.113 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.01605/0.9936, allocations: 12.08 MB / 1.125 GB, free: 3.504 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/0.9936, allocations: 0 / 1.125 GB, free: 3.504 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.244e-06/0.9936, allocations: 0 / 1.125 GB, free: 3.504 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0004583/0.9941, allocations: 0 / 1.125 GB, free: 3.504 MB / 0.8731 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.02016/1.014, allocations: 6.315 MB / 1.131 GB, free: 13.12 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/1.014, allocations: 8.031 kB / 1.131 GB, free: 13.11 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007395/1.022, allocations: 1.063 MB / 1.132 GB, free: 12.04 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008986/1.031, allocations: 3.427 MB / 1.135 GB, free: 8.559 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005593/1.031, allocations: 423.7 kB / 1.136 GB, free: 8.145 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002557/1.034, allocations: 0.5471 MB / 1.136 GB, free: 7.598 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02483/1.059, allocations: 9.374 MB / 1.146 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002949/1.059, allocations: 19.88 kB / 1.146 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001895/1.061, allocations: 251.9 kB / 1.146 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006812/1.062, allocations: 422.9 kB / 1.146 GB, free: 13.21 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01664/1.078, allocations: 7.123 MB / 1.153 GB, free: 6.078 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0541/1.132, allocations: 41.31 MB / 1.194 GB, free: 9.016 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005245/1.138, allocations: 3.108 MB / 1.197 GB, free: 5.906 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003432/1.141, allocations: 2.133 MB / 1.199 GB, free: 3.77 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000176/1.141, allocations: 26 kB / 1.199 GB, free: 3.746 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.986e-05/1.142, allocations: 60.56 kB / 1.199 GB, free: 3.676 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=209): time 4.228e-06/1.142, allocations: 0 / 1.199 GB, free: 3.676 MB / 0.9512 GB Notification: Performance of matching and sorting (n=212): time 0.02614/1.168, allocations: 10.55 MB / 1.209 GB, free: 9.031 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.778e-05/1.168, allocations: 81.34 kB / 1.209 GB, free: 8.941 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004197/1.172, allocations: 2.009 MB / 1.211 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0004043/1.172, allocations: 65.7 kB / 1.211 GB, free: 6.844 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.002139/1.175, allocations: 2.392 MB / 1.213 GB, free: 4.418 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.000906/1.176, allocations: 0.7356 MB / 1.214 GB, free: 3.672 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001043/1.177, allocations: 481.2 kB / 1.215 GB, free: 3.195 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001268/1.177, allocations: 301.1 kB / 1.215 GB, free: 2.898 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002248/1.179, allocations: 1.372 MB / 1.216 GB, free: 1.523 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00262/1.182, allocations: 2.112 MB / 1.218 GB, free: 15.09 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005035/1.187, allocations: 3.766 MB / 1.222 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.383e-05/1.187, allocations: 8 kB / 1.222 GB, free: 11.01 MB / 0.9825 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.00885/1.196, allocations: 5.057 MB / 1.227 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.589e-05/1.196, allocations: 16.94 kB / 1.227 GB, free: 5.914 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.447e-05/1.196, allocations: 24 kB / 1.227 GB, free: 5.891 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00387/1.2, allocations: 1.58 MB / 1.229 GB, free: 4.301 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001703/1.201, allocations: 455.2 kB / 1.229 GB, free: 3.855 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02258/1.224, allocations: 17.07 MB / 1.246 GB, free: 2.262 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002308/1.226, allocations: 147.9 kB / 1.246 GB, free: 2.117 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004778/1.227, allocations: 108 kB / 1.246 GB, free: 2.012 MB / 0.9981 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.003741/1.23, allocations: 1.946 MB / 1.248 GB, free: 56 kB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.6117/1.842, allocations: 289.2 kB / 1.248 GB, free: 210.9 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008857/1.851, allocations: 4.446 MB / 1.252 GB, free: 210.5 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.794e-05/1.851, allocations: 22.91 kB / 1.252 GB, free: 210.5 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.546e-05/1.851, allocations: 16.28 kB / 1.252 GB, free: 210.5 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.142e-05/1.851, allocations: 14.77 kB / 1.252 GB, free: 210.5 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01994/1.871, allocations: 9.67 MB / 1.262 GB, free: 206.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.289e-05/1.871, allocations: 3.562 kB / 1.262 GB, free: 206.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009851/1.872, allocations: 234.3 kB / 1.262 GB, free: 206.6 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003561/1.876, allocations: 1.427 MB / 1.264 GB, free: 206.2 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000226/1.876, allocations: 43.73 kB / 1.264 GB, free: 206.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02033/1.896, allocations: 17.06 MB / 1.28 GB, free: 196.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/1.896, allocations: 3.938 kB / 1.28 GB, free: 196.2 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007047/1.904, allocations: 4.547 MB / 1.285 GB, free: 194.4 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001877/1.905, allocations: 0.6325 MB / 1.285 GB, free: 194.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005232/1.906, allocations: 42.92 kB / 1.285 GB, free: 194.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001499/1.907, allocations: 115.5 kB / 1.285 GB, free: 194.1 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006771/1.908, allocations: 183.1 kB / 1.286 GB, free: 194 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001285/1.908, allocations: 59.84 kB / 1.286 GB, free: 194 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002298/1.911, allocations: 1.314 MB / 1.287 GB, free: 193.5 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.41e-07/1.911, allocations: 3.875 kB / 1.287 GB, free: 193.5 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.004195/1.915, allocations: 1.14 MB / 1.288 GB, free: 193.4 MB / 0.9981 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.0003339/1.915, allocations: 164.7 kB / 1.288 GB, free: 193.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.006205/1.921, allocations: 4.69 MB / 1.293 GB, free: 191.2 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-05/1.921, allocations: 2.938 kB / 1.293 GB, free: 191.2 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.004248/1.926, allocations: 2.916 MB / 1.296 GB, free: 189.4 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004032/1.93, allocations: 0.8343 MB / 1.296 GB, free: 188.9 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01609/1.946, allocations: 11.77 MB / 1.308 GB, free: 177.1 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003685/1.95, allocations: 3.694 MB / 1.312 GB, free: 173.4 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002135/1.952, allocations: 0.5518 MB / 1.312 GB, free: 172.8 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004164/1.952, allocations: 147.4 kB / 1.312 GB, free: 172.7 MB / 0.9981 GB Notification: Performance of SimCode: time 1.292e-06/1.952, allocations: 0 / 1.312 GB, free: 172.7 MB / 0.9981 GB Notification: Performance of Templates: time 0.0774/2.03, allocations: 51.13 MB / 1.362 GB, free: 122.2 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches