Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.OnePhase.Lines.Examples.ACLine,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_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine,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_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001221/0.001221, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.01102/0.01102, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.606/1.606, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.952/2.952, allocations: 462.6 MB / 0.7363 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005205/0.0005207, allocations: 8.469 kB / 0.9027 GB, free: 36.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4223/0.4228, allocations: 159.6 MB / 1.059 GB, free: 5.055 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01289/0.4358, allocations: 10.37 MB / 1.069 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01372/0.4495, allocations: 8.683 MB / 1.077 GB, free: 1.938 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001603/0.4512, allocations: 51.62 kB / 1.077 GB, free: 1.887 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.00101/0.4522, allocations: 281.8 kB / 1.078 GB, free: 1.609 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.005175/0.4574, allocations: 1.385 MB / 1.079 GB, free: 228 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.002156/0.4596, allocations: 0.616 MB / 1.079 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.004116/0.4637, allocations: 2.902 MB / 1.082 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004071/0.4678, allocations: 1.957 MB / 1.084 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002324/0.4701, allocations: 0.8206 MB / 1.085 GB, free: 9.863 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002567/0.4727, allocations: 0.9375 MB / 1.086 GB, free: 8.922 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0004073/0.4731, allocations: 60 kB / 1.086 GB, free: 8.863 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002351/0.4755, allocations: 0.8811 MB / 1.087 GB, free: 7.98 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0008053/0.4763, allocations: 486.3 kB / 1.087 GB, free: 7.504 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.001642/0.478, allocations: 0.8057 MB / 1.088 GB, free: 6.688 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.003163/0.4811, allocations: 2.491 MB / 1.091 GB, free: 4.188 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.4811, allocations: 0 / 1.091 GB, free: 4.188 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.224e-06/0.4812, allocations: 0 / 1.091 GB, free: 4.188 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 2.301e-05/0.4812, allocations: 0 / 1.091 GB, free: 4.188 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.003018/0.4842, allocations: 1.71 MB / 1.092 GB, free: 2.422 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.726e-05/0.4843, allocations: 15.97 kB / 1.092 GB, free: 2.406 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01134/0.4956, allocations: 2.113 MB / 1.094 GB, free: 296 kB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002504/0.4982, allocations: 1.122 MB / 1.095 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.903e-05/0.4983, allocations: 86.69 kB / 1.095 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002659/0.4985, allocations: 120.1 kB / 1.096 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005847/0.5044, allocations: 2.506 MB / 1.098 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.303e-05/0.5045, allocations: 15.84 kB / 1.098 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001732/0.5046, allocations: 55.98 kB / 1.098 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003795/0.505, allocations: 126.1 kB / 1.098 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007974/0.513, allocations: 2.596 MB / 1.101 GB, free: 9.449 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01643/0.5295, allocations: 10.1 MB / 1.111 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006627/0.5361, allocations: 2.009 MB / 1.113 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002938/0.5391, allocations: 0.9894 MB / 1.114 GB, free: 11.66 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 5.262e-05/0.5392, allocations: 8.438 kB / 1.114 GB, free: 11.65 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.178e-05/0.5393, allocations: 39 kB / 1.114 GB, free: 11.61 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=53): time 3.026e-06/0.5393, allocations: 4 kB / 1.114 GB, free: 11.6 MB / 0.8731 GB Notification: Performance of matching and sorting (n=81): time 0.0328/0.5721, allocations: 8.769 MB / 1.122 GB, free: 2.773 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/0.5722, allocations: 64 kB / 1.122 GB, free: 2.695 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001762/0.5739, allocations: 1.104 MB / 1.123 GB, free: 1.574 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001656/0.5741, allocations: 45.7 kB / 1.123 GB, free: 1.523 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005674/0.5747, allocations: 0.7302 MB / 1.124 GB, free: 0.7852 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003302/0.575, allocations: 283.9 kB / 1.124 GB, free: 0.5039 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001814/0.5752, allocations: 81.67 kB / 1.124 GB, free: 428 kB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001405/0.5754, allocations: 345.9 kB / 1.125 GB, free: 76 kB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00322/0.5786, allocations: 1.091 MB / 1.126 GB, free: 14.98 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0034/0.582, allocations: 1.329 MB / 1.127 GB, free: 13.55 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006531/0.5886, allocations: 2.413 MB / 1.129 GB, free: 11.04 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.196e-06/0.5886, allocations: 4 kB / 1.129 GB, free: 11.04 MB / 0.8887 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.009647/0.5983, allocations: 3.316 MB / 1.133 GB, free: 7.691 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.949e-05/0.5983, allocations: 12.12 kB / 1.133 GB, free: 7.68 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.514e-05/0.5984, allocations: 8 kB / 1.133 GB, free: 7.672 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002867/0.6012, allocations: 0.791 MB / 1.134 GB, free: 6.859 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002/0.6033, allocations: 423.2 kB / 1.134 GB, free: 6.445 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01725/0.6205, allocations: 14.71 MB / 1.148 GB, free: 6.656 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002545/0.6231, allocations: 303.6 kB / 1.149 GB, free: 6.359 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002321/0.6234, allocations: 51.97 kB / 1.149 GB, free: 6.309 MB / 0.9044 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,2,100.0%), (2,2,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,100.0%), (2,4,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.001115/0.6245, allocations: 401.3 kB / 1.149 GB, free: 5.906 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004632/0.625, allocations: 142.3 kB / 1.149 GB, free: 5.766 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009416/0.6344, allocations: 3.249 MB / 1.152 GB, free: 2.473 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.581e-05/0.6345, allocations: 8.188 kB / 1.152 GB, free: 2.465 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.327e-05/0.6345, allocations: 7.828 kB / 1.152 GB, free: 2.461 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.497e-05/0.6345, allocations: 11.97 kB / 1.152 GB, free: 2.449 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01211/0.6466, allocations: 4.952 MB / 1.157 GB, free: 13.37 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.185e-05/0.6467, allocations: 4 kB / 1.157 GB, free: 13.37 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001717/0.6484, allocations: 363.3 kB / 1.158 GB, free: 13.01 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002432/0.6509, allocations: 0.6897 MB / 1.158 GB, free: 12.3 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001067/0.651, allocations: 31.97 kB / 1.158 GB, free: 12.27 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01505/0.666, allocations: 14.34 MB / 1.172 GB, free: 12.86 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.869e-06/0.6661, allocations: 11.88 kB / 1.172 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008995/0.6751, allocations: 3.077 MB / 1.175 GB, free: 9.691 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001017/0.6762, allocations: 383.2 kB / 1.176 GB, free: 9.297 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003715/0.6766, allocations: 19.94 kB / 1.176 GB, free: 9.277 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002179/0.6788, allocations: 303.5 kB / 1.176 GB, free: 8.98 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003181/0.6791, allocations: 80.48 kB / 1.176 GB, free: 8.902 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000109/0.6792, allocations: 39.97 kB / 1.176 GB, free: 8.863 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001256/0.6805, allocations: 0.7405 MB / 1.177 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1e-07/0.6805, allocations: 0 / 1.177 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001944/0.6824, allocations: 439.9 kB / 1.177 GB, free: 7.691 MB / 0.9356 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,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000315/0.6828, allocations: 135 kB / 1.177 GB, free: 7.551 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.009003/0.6918, allocations: 3.66 MB / 1.181 GB, free: 3.785 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.17e-05/0.6918, allocations: 4.125 kB / 1.181 GB, free: 3.781 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.005265/0.6971, allocations: 2.375 MB / 1.183 GB, free: 1.297 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003301/0.7004, allocations: 492.5 kB / 1.184 GB, free: 0.8242 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008947/0.7094, allocations: 4.107 MB / 1.188 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001274/0.7107, allocations: 1.392 MB / 1.189 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001785/0.7125, allocations: 371.9 kB / 1.189 GB, free: 10.87 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004101/0.7129, allocations: 107.4 kB / 1.189 GB, free: 10.76 MB / 0.9512 GB Notification: Performance of SimCode: time 1.062e-06/0.7129, allocations: 0 / 1.189 GB, free: 10.76 MB / 0.9512 GB Notification: Performance of Templates: time 0.05012/0.7631, allocations: 28.86 MB / 1.218 GB, free: 14.29 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches