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.001369/0.001369, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.001872/0.001872, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.514/1.514, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.959/2.959, allocations: 462.6 MB / 0.736 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003971/0.0003972, allocations: 8.469 kB / 0.9021 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3858/0.3862, allocations: 159.6 MB / 1.058 GB, free: 5.277 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01242/0.3987, allocations: 9.781 MB / 1.068 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01245/0.4112, allocations: 8.188 MB / 1.076 GB, free: 3.254 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001823/0.4131, allocations: 55.62 kB / 1.076 GB, free: 3.199 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001144/0.4143, allocations: 269.8 kB / 1.076 GB, free: 2.934 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.005655/0.4199, allocations: 1.264 MB / 1.077 GB, free: 1.668 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001786/0.4217, allocations: 464.8 kB / 1.078 GB, free: 1.215 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.005273/0.427, allocations: 2.438 MB / 1.08 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004601/0.4316, allocations: 1.775 MB / 1.082 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002104/0.4338, allocations: 0.7935 MB / 1.082 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002648/0.4364, allocations: 0.8988 MB / 1.083 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0004834/0.4369, allocations: 60 kB / 1.083 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001867/0.4388, allocations: 467.3 kB / 1.084 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0008079/0.4396, allocations: 482.4 kB / 1.084 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0006182/0.4402, allocations: 340.8 kB / 1.085 GB, free: 9.926 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.002522/0.4428, allocations: 1.952 MB / 1.087 GB, free: 7.969 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.4428, allocations: 0 / 1.087 GB, free: 7.969 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.665e-06/0.4428, allocations: 0 / 1.087 GB, free: 7.969 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 2.508e-05/0.4428, allocations: 0 / 1.087 GB, free: 7.969 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.002934/0.4458, allocations: 1.735 MB / 1.088 GB, free: 6.18 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.4458, allocations: 12.03 kB / 1.088 GB, free: 6.168 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009632/0.4555, allocations: 2.112 MB / 1.09 GB, free: 4.051 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002622/0.4581, allocations: 1.079 MB / 1.091 GB, free: 2.914 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001003/0.4582, allocations: 86.27 kB / 1.091 GB, free: 2.828 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004248/0.4587, allocations: 119.9 kB / 1.092 GB, free: 2.711 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005863/0.4646, allocations: 2.49 MB / 1.094 GB, free: 72 kB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.233e-05/0.4646, allocations: 11.92 kB / 1.094 GB, free: 60 kB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001924/0.4648, allocations: 48 kB / 1.094 GB, free: 12 kB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003631/0.4652, allocations: 134.1 kB / 1.094 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006851/0.4721, allocations: 2.58 MB / 1.097 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01545/0.4875, allocations: 10.12 MB / 1.107 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005475/0.4931, allocations: 1.991 MB / 1.109 GB, free: 496 kB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002794/0.4959, allocations: 0.9998 MB / 1.109 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 9.327e-05/0.4961, allocations: 12.38 kB / 1.109 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.613e-05/0.4961, allocations: 43 kB / 1.11 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=53): time 6.652e-06/0.4962, allocations: 0 / 1.11 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of matching and sorting (n=81): time 0.02891/0.5251, allocations: 8.758 MB / 1.118 GB, free: 6.602 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.041e-05/0.5252, allocations: 60.06 kB / 1.118 GB, free: 6.531 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002152/0.5273, allocations: 1.093 MB / 1.119 GB, free: 5.422 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001288/0.5275, allocations: 41.7 kB / 1.119 GB, free: 5.375 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006758/0.5282, allocations: 0.7379 MB / 1.12 GB, free: 4.629 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003256/0.5285, allocations: 279.9 kB / 1.12 GB, free: 4.352 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.945e-05/0.5286, allocations: 20 kB / 1.12 GB, free: 4.332 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001641/0.5288, allocations: 341.9 kB / 1.121 GB, free: 3.992 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002665/0.5315, allocations: 1.087 MB / 1.122 GB, free: 2.906 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002873/0.5344, allocations: 1.325 MB / 1.123 GB, free: 1.484 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00275/0.5371, allocations: 1.154 MB / 1.124 GB, free: 336 kB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/0.5371, allocations: 0 / 1.124 GB, free: 336 kB / 0.8731 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.008131/0.5453, allocations: 3.304 MB / 1.127 GB, free: 12.99 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 3.605e-05/0.5453, allocations: 11.95 kB / 1.127 GB, free: 12.98 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/0.5454, allocations: 4 kB / 1.127 GB, free: 12.98 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002606/0.548, allocations: 0.7912 MB / 1.128 GB, free: 12.16 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001741/0.5497, allocations: 423.3 kB / 1.128 GB, free: 11.75 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01579/0.5656, allocations: 14.68 MB / 1.143 GB, free: 11.99 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002487/0.5681, allocations: 311.5 kB / 1.143 GB, free: 11.69 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003503/0.5685, allocations: 47.97 kB / 1.143 GB, free: 11.64 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 (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 2,(2,100.0%) 2,(3,100.0%) 5,(3,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001341/0.5698, allocations: 399.8 kB / 1.144 GB, free: 11.24 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005958/0.5704, allocations: 142.3 kB / 1.144 GB, free: 11.1 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008837/0.5793, allocations: 3.237 MB / 1.147 GB, free: 7.828 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.645e-05/0.5794, allocations: 8 kB / 1.147 GB, free: 7.82 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.234e-05/0.5794, allocations: 8 kB / 1.147 GB, free: 7.812 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.473e-05/0.5794, allocations: 3.984 kB / 1.147 GB, free: 7.809 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01176/0.5912, allocations: 4.948 MB / 1.152 GB, free: 2.734 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.631e-05/0.5913, allocations: 4 kB / 1.152 GB, free: 2.73 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001477/0.5927, allocations: 367.7 kB / 1.152 GB, free: 2.371 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002549/0.5953, allocations: 0.6979 MB / 1.153 GB, free: 1.648 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001241/0.5955, allocations: 35.95 kB / 1.153 GB, free: 1.613 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01702/0.6125, allocations: 14.3 MB / 1.167 GB, free: 2.254 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.175e-06/0.6126, allocations: 8.062 kB / 1.167 GB, free: 2.246 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007847/0.6204, allocations: 3.081 MB / 1.17 GB, free: 15.08 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009574/0.6214, allocations: 379.2 kB / 1.17 GB, free: 14.69 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004031/0.6218, allocations: 19.98 kB / 1.17 GB, free: 14.67 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001862/0.6237, allocations: 307.5 kB / 1.17 GB, free: 14.37 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003041/0.624, allocations: 80.5 kB / 1.171 GB, free: 14.29 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001258/0.6242, allocations: 39.95 kB / 1.171 GB, free: 14.25 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001326/0.6255, allocations: 0.7287 MB / 1.171 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6255, allocations: 0 / 1.171 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.002081/0.6276, allocations: 432 kB / 1.172 GB, free: 13.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(3,100.0%) 5,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(3,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003322/0.628, allocations: 131.1 kB / 1.172 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.008451/0.6364, allocations: 3.652 MB / 1.175 GB, free: 9.199 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-05/0.6365, allocations: 0 / 1.175 GB, free: 9.199 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.005361/0.6419, allocations: 2.387 MB / 1.178 GB, free: 6.711 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004303/0.6462, allocations: 495.2 kB / 1.178 GB, free: 6.23 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009557/0.6558, allocations: 3.951 MB / 1.182 GB, free: 2.223 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001741/0.6576, allocations: 1.388 MB / 1.183 GB, free: 0.8008 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.002043/0.6597, allocations: 375.9 kB / 1.184 GB, free: 440 kB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000465/0.6601, allocations: 103.4 kB / 1.184 GB, free: 336 kB / 0.9356 GB Notification: Performance of SimCode: time 2.104e-06/0.6602, allocations: 0 / 1.184 GB, free: 336 kB / 0.9356 GB Notification: Performance of Templates: time 0.05574/0.7159, allocations: 28.11 MB / 1.211 GB, free: 4.609 MB / 0.9669 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