Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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.ThreePhasesBalanced.Lines.Examples.ACLineMedium,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006523/0.006527, allocations: 101.3 kB / 15.73 MB, free: 6.047 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.001948/0.001948, allocations: 188.6 kB / 16.67 MB, free: 5.98 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.516/1.516, allocations: 222.9 MB / 240.4 MB, free: 4.332 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.633/2.633, allocations: 390.2 MB / 0.6648 GB, free: 212 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 66.44 kB / 0.9508 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3424/0.3436, allocations: 140.4 MB / 1.088 GB, free: 1.633 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.02299/0.3667, allocations: 14.79 MB / 1.102 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0229/0.3896, allocations: 10.34 MB / 1.112 GB, free: 8.41 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002654/0.3924, allocations: 59.62 kB / 1.113 GB, free: 8.352 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.005343/0.3978, allocations: 1.694 MB / 1.114 GB, free: 6.656 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.009733/0.4076, allocations: 1.853 MB / 1.116 GB, free: 4.801 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.003369/0.411, allocations: 0.7523 MB / 1.117 GB, free: 4.047 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.005959/0.4169, allocations: 2.758 MB / 1.119 GB, free: 1.281 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003139/0.4201, allocations: 1.415 MB / 1.121 GB, free: 15.83 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003544/0.4237, allocations: 1.527 MB / 1.122 GB, free: 14.3 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002783/0.4265, allocations: 1.164 MB / 1.123 GB, free: 13.13 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0004672/0.427, allocations: 160 kB / 1.124 GB, free: 12.98 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002296/0.4293, allocations: 0.7916 MB / 1.124 GB, free: 12.18 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0008348/0.4301, allocations: 0.6076 MB / 1.125 GB, free: 11.57 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.001695/0.4319, allocations: 0.9445 MB / 1.126 GB, free: 10.62 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.004288/0.4362, allocations: 2.776 MB / 1.129 GB, free: 7.84 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.4362, allocations: 0 / 1.129 GB, free: 7.84 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.503e-06/0.4362, allocations: 0 / 1.129 GB, free: 7.84 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 3.278e-05/0.4362, allocations: 0 / 1.129 GB, free: 7.84 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.00386/0.4401, allocations: 2.178 MB / 1.131 GB, free: 5.605 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.4401, allocations: 12.03 kB / 1.131 GB, free: 5.594 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01061/0.4508, allocations: 2.105 MB / 1.133 GB, free: 3.484 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003076/0.4539, allocations: 1.307 MB / 1.134 GB, free: 2.121 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.974e-05/0.454, allocations: 90.69 kB / 1.134 GB, free: 2.031 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002683/0.4542, allocations: 120.1 kB / 1.134 GB, free: 1.914 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00554/0.4598, allocations: 2.663 MB / 1.137 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.322e-05/0.4598, allocations: 15.83 kB / 1.137 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001692/0.46, allocations: 59.98 kB / 1.137 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005728/0.4606, allocations: 190.1 kB / 1.137 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007229/0.4678, allocations: 2.787 MB / 1.14 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01599/0.4839, allocations: 10.46 MB / 1.15 GB, free: 1 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006154/0.4901, allocations: 2.348 MB / 1.152 GB, free: 14.63 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002906/0.493, allocations: 1.286 MB / 1.154 GB, free: 13.34 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 8.368e-05/0.4931, allocations: 9 kB / 1.154 GB, free: 13.33 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.484e-05/0.4932, allocations: 43.56 kB / 1.154 GB, free: 13.28 MB / 0.92 GB Notification: Performance of pre-optimization done (n=89): time 2.695e-06/0.4932, allocations: 0 / 1.154 GB, free: 13.28 MB / 0.92 GB Notification: Performance of matching and sorting (n=153): time 0.05663/0.5498, allocations: 16.48 MB / 1.17 GB, free: 12.64 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.609e-05/0.5499, allocations: 72.72 kB / 1.17 GB, free: 12.55 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001633/0.5515, allocations: 1.184 MB / 1.171 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0002254/0.5518, allocations: 53.64 kB / 1.171 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005576/0.5523, allocations: 0.7437 MB / 1.172 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004965/0.5528, allocations: 0.512 MB / 1.172 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005715/0.5534, allocations: 287.5 kB / 1.172 GB, free: 9.746 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001449/0.5536, allocations: 309.1 kB / 1.173 GB, free: 9.441 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003483/0.5571, allocations: 1.507 MB / 1.174 GB, free: 7.934 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003606/0.5607, allocations: 1.784 MB / 1.176 GB, free: 6.055 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007163/0.5679, allocations: 3.369 MB / 1.179 GB, free: 2.59 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.583e-06/0.5679, allocations: 0 / 1.179 GB, free: 2.59 MB / 0.9356 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01384/0.5818, allocations: 5.277 MB / 1.184 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.07e-05/0.5818, allocations: 8 kB / 1.184 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.5818, allocations: 4 kB / 1.184 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00688/0.5887, allocations: 1.873 MB / 1.186 GB, free: 11.37 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001881/0.5906, allocations: 419.2 kB / 1.187 GB, free: 10.96 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02879/0.6194, allocations: 24.13 MB / 1.21 GB, free: 1.711 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002548/0.622, allocations: 311.6 kB / 1.211 GB, free: 1.406 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000196/0.6222, allocations: 68.52 kB / 1.211 GB, free: 1.34 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (2,8,100.0%), (3,17,100.0%), (3,17,100.0%), (2,16,100.0%), (2,16,100.0%), (2,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009026/0.6231, allocations: 467.4 kB / 1.211 GB, free: 0.875 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003889/0.6235, allocations: 177.9 kB / 1.211 GB, free: 0.6992 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01267/0.6362, allocations: 5.324 MB / 1.216 GB, free: 11.33 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.621e-05/0.6363, allocations: 16 kB / 1.216 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.951e-05/0.6363, allocations: 20 kB / 1.216 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.516e-05/0.6363, allocations: 11.91 kB / 1.216 GB, free: 11.28 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01612/0.6525, allocations: 7.419 MB / 1.224 GB, free: 3.738 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.261e-05/0.6525, allocations: 7.938 kB / 1.224 GB, free: 3.73 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001601/0.6541, allocations: 351.4 kB / 1.224 GB, free: 3.387 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005935/0.6601, allocations: 1.709 MB / 1.226 GB, free: 1.656 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000154/0.6602, allocations: 43.97 kB / 1.226 GB, free: 1.613 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02613/0.6864, allocations: 23.31 MB / 1.249 GB, free: 9.188 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/0.6864, allocations: 4 kB / 1.249 GB, free: 9.184 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01187/0.6983, allocations: 4.887 MB / 1.253 GB, free: 4.211 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00102/0.6993, allocations: 494.7 kB / 1.254 GB, free: 3.707 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002246/0.6996, allocations: 31.98 kB / 1.254 GB, free: 3.676 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001903/0.7015, allocations: 319.5 kB / 1.254 GB, free: 3.363 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005342/0.702, allocations: 149 kB / 1.254 GB, free: 3.215 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001376/0.7022, allocations: 55.97 kB / 1.254 GB, free: 3.16 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001009/0.7032, allocations: 0.7938 MB / 1.255 GB, free: 2.367 MB / 1.014 GB Notification: Performance of sort global known variables: time 5.81e-07/0.7032, allocations: 0 / 1.255 GB, free: 2.367 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001873/0.7051, allocations: 0.6562 MB / 1.256 GB, free: 1.711 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002648/0.7053, allocations: 139.7 kB / 1.256 GB, free: 1.566 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.7445/1.45, allocations: 5.135 MB / 1.261 GB, free: 157.8 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.114e-05/1.45, allocations: 2.812 kB / 1.261 GB, free: 157.8 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.008045/1.458, allocations: 3.353 MB / 1.264 GB, free: 156.8 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00291/1.461, allocations: 0.5591 MB / 1.265 GB, free: 156.8 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0111/1.472, allocations: 4.298 MB / 1.269 GB, free: 155.6 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002303/1.474, allocations: 1.565 MB / 1.27 GB, free: 154.9 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001908/1.476, allocations: 385.3 kB / 1.271 GB, free: 154.8 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004304/1.477, allocations: 108.5 kB / 1.271 GB, free: 154.8 MB / 1.014 GB Notification: Performance of SimCode: time 1.443e-06/1.477, allocations: 0 / 1.271 GB, free: 154.8 MB / 1.014 GB Notification: Performance of Templates: time 0.07508/1.552, allocations: 45.37 MB / 1.315 GB, free: 136.6 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches