Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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_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_latest_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_latest_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.001106/0.001106, 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.001144/0.001144, allocations: 194.1 kB / 16.14 MB, free: 6.648 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.386/1.386, allocations: 222.9 MB / 239.8 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.891/2.891, allocations: 472.6 MB / 0.7447 GB, free: 4.914 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 69.48 kB / 0.9114 GB, free: 33.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3436/0.3449, allocations: 159.9 MB / 1.068 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L): time 0.03623/0.3812, allocations: 32.31 MB / 1.099 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01921/0.4005, allocations: 10.27 MB / 1.109 GB, free: 108 kB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004035/0.4045, allocations: 135.3 kB / 1.109 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.009951/0.4146, allocations: 3.485 MB / 1.113 GB, free: 12.48 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.006907/0.4215, allocations: 1.743 MB / 1.114 GB, free: 10.73 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.008491/0.43, allocations: 1.936 MB / 1.116 GB, free: 8.801 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.01416/0.4442, allocations: 10.59 MB / 1.127 GB, free: 14.19 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01949/0.4638, allocations: 10.61 MB / 1.137 GB, free: 3.469 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005627/0.4694, allocations: 2.705 MB / 1.14 GB, free: 0.7539 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0066/0.4761, allocations: 3.551 MB / 1.143 GB, free: 13.19 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.00237/0.4785, allocations: 455.9 kB / 1.144 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005787/0.4843, allocations: 1.872 MB / 1.145 GB, free: 10.87 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.004835/0.4892, allocations: 2.343 MB / 1.148 GB, free: 8.523 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.007698/0.4969, allocations: 2.66 MB / 1.15 GB, free: 5.852 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.01529/0.5122, allocations: 9.983 MB / 1.16 GB, free: 11.84 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 9.298e-06/0.5123, allocations: 0 / 1.16 GB, free: 11.84 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.394e-06/0.5123, allocations: 4 kB / 1.16 GB, free: 11.84 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0003532/0.5127, allocations: 0 / 1.16 GB, free: 11.84 MB / 0.92 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.01439/0.527, allocations: 4.99 MB / 1.165 GB, free: 6.773 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.5271, allocations: 8.031 kB / 1.165 GB, free: 6.766 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006174/0.5333, allocations: 0.9629 MB / 1.166 GB, free: 5.797 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007112/0.5404, allocations: 2.855 MB / 1.169 GB, free: 2.883 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003463/0.5408, allocations: 349.7 kB / 1.169 GB, free: 2.539 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001984/0.5428, allocations: 468.2 kB / 1.169 GB, free: 2.082 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02021/0.563, allocations: 7.663 MB / 1.177 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002363/0.5633, allocations: 27.77 kB / 1.177 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001276/0.5646, allocations: 196 kB / 1.177 GB, free: 9.852 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004024/0.565, allocations: 313 kB / 1.177 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0138/0.5788, allocations: 5.714 MB / 1.183 GB, free: 3.812 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04354/0.6224, allocations: 35.09 MB / 1.217 GB, free: 13.51 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003379/0.6258, allocations: 2.16 MB / 1.219 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002062/0.6279, allocations: 1.272 MB / 1.221 GB, free: 9.949 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001124/0.6281, allocations: 17.31 kB / 1.221 GB, free: 9.934 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.566e-05/0.6281, allocations: 47.81 kB / 1.221 GB, free: 9.879 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=133): time 5.14e-06/0.6281, allocations: 0 / 1.221 GB, free: 9.879 MB / 0.9825 GB Notification: Performance of matching and sorting (n=136): time 0.01459/0.6427, allocations: 7.081 MB / 1.228 GB, free: 2.527 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.488e-05/0.6428, allocations: 68.72 kB / 1.228 GB, free: 2.449 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002458/0.6453, allocations: 1.484 MB / 1.229 GB, free: 0.918 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0001467/0.6454, allocations: 45.7 kB / 1.229 GB, free: 0.8672 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.001384/0.6468, allocations: 2.016 MB / 1.231 GB, free: 14.82 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005294/0.6474, allocations: 485.1 kB / 1.232 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006214/0.648, allocations: 347.2 kB / 1.232 GB, free: 14 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001122/0.6481, allocations: 301.1 kB / 1.232 GB, free: 13.7 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001474/0.6496, allocations: 0.9135 MB / 1.233 GB, free: 12.79 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001927/0.6515, allocations: 1.597 MB / 1.235 GB, free: 10.88 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003535/0.6551, allocations: 2.733 MB / 1.237 GB, free: 7.836 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.197e-05/0.6551, allocations: 8 kB / 1.237 GB, free: 7.828 MB / 0.9981 GB Notification: Performance of matching and sorting (n=239) (initialization): time 0.006647/0.6618, allocations: 3.53 MB / 1.241 GB, free: 4.25 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.325e-05/0.6618, allocations: 12 kB / 1.241 GB, free: 4.238 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.29e-05/0.6619, allocations: 27.98 kB / 1.241 GB, free: 4.211 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002779/0.6647, allocations: 0.9006 MB / 1.242 GB, free: 3.273 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/0.666, allocations: 351.4 kB / 1.242 GB, free: 2.93 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6076/1.274, allocations: 21.21 MB / 1.263 GB, free: 150.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001588/1.275, allocations: 104.2 kB / 1.263 GB, free: 150.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001297/1.275, allocations: 82.95 kB / 1.263 GB, free: 150.4 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 (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.002547/1.278, allocations: 1.606 MB / 1.264 GB, free: 150 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003666/1.278, allocations: 209.2 kB / 1.265 GB, free: 149.9 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005035/1.283, allocations: 2.991 MB / 1.268 GB, free: 148.7 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/1.283, allocations: 13.12 kB / 1.268 GB, free: 148.7 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.527e-05/1.283, allocations: 7.875 kB / 1.268 GB, free: 148.7 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-05/1.283, allocations: 13.36 kB / 1.268 GB, free: 148.7 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01256/1.296, allocations: 7.352 MB / 1.275 GB, free: 145.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-05/1.296, allocations: 4.562 kB / 1.275 GB, free: 145.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008401/1.297, allocations: 177.8 kB / 1.275 GB, free: 145.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0026/1.299, allocations: 0.8237 MB / 1.276 GB, free: 145.1 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000107/1.3, allocations: 29.62 kB / 1.276 GB, free: 145.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01663/1.316, allocations: 20.31 MB / 1.296 GB, free: 127.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.605e-06/1.316, allocations: 8.75 kB / 1.296 GB, free: 127.5 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005521/1.322, allocations: 3.025 MB / 1.299 GB, free: 126.2 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001015/1.323, allocations: 459.8 kB / 1.299 GB, free: 126 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002692/1.323, allocations: 33.16 kB / 1.299 GB, free: 126 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007528/1.324, allocations: 74.08 kB / 1.299 GB, free: 125.9 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004471/1.324, allocations: 124.6 kB / 1.299 GB, free: 125.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.612e-05/1.324, allocations: 40.56 kB / 1.299 GB, free: 125.9 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001343/1.326, allocations: 0.9758 MB / 1.3 GB, free: 125.5 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.7e-07/1.326, allocations: 0 / 1.3 GB, free: 125.5 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003079/1.329, allocations: 0.7844 MB / 1.301 GB, free: 125.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.0002524/1.329, allocations: 152.1 kB / 1.301 GB, free: 125.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.005732/1.335, allocations: 4.005 MB / 1.305 GB, free: 123 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/1.335, allocations: 4.062 kB / 1.305 GB, free: 123 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003386/1.338, allocations: 2.735 MB / 1.308 GB, free: 121.1 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00311/1.341, allocations: 0.6673 MB / 1.308 GB, free: 120.9 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01327/1.355, allocations: 9.148 MB / 1.317 GB, free: 115.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003686/1.358, allocations: 3.108 MB / 1.32 GB, free: 114.4 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001894/1.36, allocations: 454.9 kB / 1.321 GB, free: 114.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003233/1.361, allocations: 117.2 kB / 1.321 GB, free: 114.3 MB / 0.9981 GB Notification: Performance of SimCode: time 1.503e-06/1.361, allocations: 0 / 1.321 GB, free: 114.3 MB / 0.9981 GB Notification: Performance of Templates: time 0.05602/1.417, allocations: 34.72 MB / 1.355 GB, free: 86.39 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches