Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.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_L,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001552/0.001552, allocations: 108 kB / 15.61 MB, free: 152 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.00184/0.00184, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.553/1.553, allocations: 222.9 MB / 240.2 MB, free: 4.414 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.566/2.566, allocations: 437 MB / 0.7103 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 59.89 kB / 0.8692 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8253/0.8267, allocations: 151.6 MB / 1.017 GB, free: 2.516 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L): time 0.03959/0.8664, allocations: 32.6 MB / 1.049 GB, free: 1.809 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.02369/0.8901, allocations: 10.27 MB / 1.059 GB, free: 7.508 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004488/0.8947, allocations: 147.3 kB / 1.059 GB, free: 7.363 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.01055/0.9053, allocations: 3.725 MB / 1.063 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.007542/0.9129, allocations: 1.854 MB / 1.065 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.007334/0.9202, allocations: 2.131 MB / 1.067 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.01271/0.933, allocations: 7.326 MB / 1.074 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01807/0.9511, allocations: 9.48 MB / 1.083 GB, free: 14.69 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007091/0.9582, allocations: 3.159 MB / 1.086 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007273/0.9655, allocations: 3.493 MB / 1.09 GB, free: 8.02 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.002757/0.9683, allocations: 0.6445 MB / 1.09 GB, free: 7.375 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005727/0.9741, allocations: 1.763 MB / 1.092 GB, free: 5.609 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.005149/0.9793, allocations: 2.546 MB / 1.095 GB, free: 3.059 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.00811/0.9874, allocations: 2.894 MB / 1.097 GB, free: 156 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.01632/1.004, allocations: 10.05 MB / 1.107 GB, free: 6.07 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 1.022e-05/1.004, allocations: 0 / 1.107 GB, free: 6.07 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.164e-06/1.004, allocations: 0 / 1.107 GB, free: 6.07 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.000461/1.004, allocations: 0 / 1.107 GB, free: 6.07 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1256 * Number of variables: 1256 Notification: Performance of Generate backend data structure: time 0.01637/1.021, allocations: 5.002 MB / 1.112 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/1.021, allocations: 12.03 kB / 1.112 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006441/1.027, allocations: 0.9512 MB / 1.113 GB, free: 28 kB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006493/1.034, allocations: 2.847 MB / 1.116 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003633/1.034, allocations: 349.7 kB / 1.116 GB, free: 12.78 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001835/1.036, allocations: 476.1 kB / 1.117 GB, free: 12.31 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01796/1.054, allocations: 7.659 MB / 1.124 GB, free: 4.305 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002591/1.054, allocations: 35.77 kB / 1.124 GB, free: 4.27 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001354/1.056, allocations: 200 kB / 1.124 GB, free: 4.074 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000412/1.056, allocations: 312.9 kB / 1.125 GB, free: 3.766 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01328/1.069, allocations: 5.714 MB / 1.13 GB, free: 14.03 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04806/1.117, allocations: 35.1 MB / 1.164 GB, free: 7.734 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003265/1.121, allocations: 2.146 MB / 1.167 GB, free: 5.469 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001874/1.123, allocations: 1.266 MB / 1.168 GB, free: 4.203 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001116/1.123, allocations: 17.25 kB / 1.168 GB, free: 4.184 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.371e-05/1.123, allocations: 47.88 kB / 1.168 GB, free: 4.129 MB / 0.92 GB Notification: Performance of pre-optimization done (n=133): time 3.787e-06/1.123, allocations: 0 / 1.168 GB, free: 4.129 MB / 0.92 GB Notification: Performance of matching and sorting (n=136): time 0.01558/1.138, allocations: 7.084 MB / 1.175 GB, free: 12.77 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.229e-05/1.139, allocations: 72.7 kB / 1.175 GB, free: 12.69 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002795/1.141, allocations: 1.48 MB / 1.176 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001194/1.141, allocations: 45.7 kB / 1.176 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.001527/1.143, allocations: 2.008 MB / 1.178 GB, free: 9.078 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005007/1.144, allocations: 481.1 kB / 1.179 GB, free: 8.602 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005869/1.144, allocations: 355.1 kB / 1.179 GB, free: 8.25 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000138/1.144, allocations: 305.1 kB / 1.179 GB, free: 7.949 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001393/1.146, allocations: 0.9135 MB / 1.18 GB, free: 7.035 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001989/1.148, allocations: 1.597 MB / 1.182 GB, free: 5.129 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003859/1.152, allocations: 2.737 MB / 1.185 GB, free: 2.078 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.09e-05/1.152, allocations: 8 kB / 1.185 GB, free: 2.07 MB / 0.9356 GB Notification: Performance of matching and sorting (n=239) (initialization): time 0.00675/1.158, allocations: 3.526 MB / 1.188 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.364e-05/1.158, allocations: 16 kB / 1.188 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.879e-05/1.158, allocations: 20 kB / 1.188 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002762/1.161, allocations: 0.9157 MB / 1.189 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00116/1.162, allocations: 347.4 kB / 1.189 GB, free: 13.17 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02423/1.187, allocations: 23.13 MB / 1.212 GB, free: 4.359 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001984/1.189, allocations: 104 kB / 1.212 GB, free: 4.258 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003513/1.189, allocations: 84.47 kB / 1.212 GB, free: 4.176 MB / 0.9669 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 (185): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(3,5,77.8%), (3,5,77.8%), (3,5,77.8%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,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 prepare postOptimizeDAE: time 0.003644/1.193, allocations: 1.61 MB / 1.214 GB, free: 2.555 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007579/1.193, allocations: 209.5 kB / 1.214 GB, free: 2.348 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005977/1.199, allocations: 2.986 MB / 1.217 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.603e-05/1.2, allocations: 19.94 kB / 1.217 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-05/1.2, allocations: 8 kB / 1.217 GB, free: 15.28 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.374e-05/1.2, allocations: 7.969 kB / 1.217 GB, free: 15.27 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01472/1.214, allocations: 7.341 MB / 1.224 GB, free: 7.699 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.356e-05/1.214, allocations: 4 kB / 1.224 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008243/1.215, allocations: 179.8 kB / 1.224 GB, free: 7.52 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00247/1.218, allocations: 0.8179 MB / 1.225 GB, free: 6.664 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001287/1.218, allocations: 31.98 kB / 1.225 GB, free: 6.633 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6093/1.827, allocations: 21.95 MB / 1.246 GB, free: 206 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.999e-06/1.827, allocations: 9.5 kB / 1.246 GB, free: 206 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00805/1.835, allocations: 3.025 MB / 1.249 GB, free: 205.6 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001535/1.837, allocations: 460.2 kB / 1.25 GB, free: 205.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002905/1.837, allocations: 37.58 kB / 1.25 GB, free: 205.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008988/1.838, allocations: 70.73 kB / 1.25 GB, free: 205.5 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004683/1.839, allocations: 129.3 kB / 1.25 GB, free: 205.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.888e-05/1.839, allocations: 39.34 kB / 1.25 GB, free: 205.5 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001785/1.84, allocations: 0.9749 MB / 1.251 GB, free: 205.4 MB / 0.9981 GB Notification: Performance of sort global known variables: time 4.21e-07/1.84, allocations: 0 / 1.251 GB, free: 205.4 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.004055/1.844, allocations: 0.791 MB / 1.252 GB, free: 205.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 (91): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(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%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000363/1.845, allocations: 142.6 kB / 1.252 GB, free: 205.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.009628/1.855, allocations: 4.651 MB / 1.256 GB, free: 203.7 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.291e-05/1.855, allocations: 0.5938 kB / 1.256 GB, free: 203.7 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.004593/1.859, allocations: 2.734 MB / 1.259 GB, free: 201.9 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003838/1.863, allocations: 0.7349 MB / 1.26 GB, free: 201.7 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0154/1.878, allocations: 7.19 MB / 1.267 GB, free: 198.5 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005932/1.884, allocations: 3.11 MB / 1.27 GB, free: 197.3 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002358/1.887, allocations: 454.3 kB / 1.27 GB, free: 197.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005569/1.887, allocations: 113.3 kB / 1.27 GB, free: 197.2 MB / 0.9981 GB Notification: Performance of SimCode: time 1.142e-06/1.887, allocations: 1.156 kB / 1.27 GB, free: 197.2 MB / 0.9981 GB Notification: Performance of Templates: time 0.06094/1.948, allocations: 35.72 MB / 1.305 GB, free: 175.7 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches