Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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.OnePhase.Lines.Examples.ACLine_R,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.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,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.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009884/0.009885, allocations: 99.78 kB / 15.73 MB, free: 6.059 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.001772/0.001772, allocations: 191.7 kB / 16.67 MB, free: 5.969 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.605/1.605, allocations: 222.9 MB / 240.4 MB, free: 4.168 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.887/2.887, allocations: 437 MB / 0.7105 GB, free: 4.938 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 71.89 kB / 1.019 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4155/0.4167, allocations: 151.6 MB / 1.167 GB, free: 6.781 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.01195/0.4287, allocations: 6.736 MB / 1.173 GB, free: 8 kB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.006924/0.4357, allocations: 3.032 MB / 1.176 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006972/0.4364, allocations: 23.88 kB / 1.176 GB, free: 12.94 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.003127/0.4396, allocations: 0.9563 MB / 1.177 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.001929/0.4415, allocations: 0.5051 MB / 1.178 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001585/0.4431, allocations: 422.6 kB / 1.178 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.002193/0.4453, allocations: 1.232 MB / 1.179 GB, free: 9.828 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001342/0.4467, allocations: 0.67 MB / 1.18 GB, free: 9.152 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000915/0.4476, allocations: 470.3 kB / 1.18 GB, free: 8.691 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001004/0.4486, allocations: 0.5175 MB / 1.181 GB, free: 8.172 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001412/0.4488, allocations: 64 kB / 1.181 GB, free: 8.109 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001089/0.4499, allocations: 379.3 kB / 1.181 GB, free: 7.738 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0004265/0.4503, allocations: 307.2 kB / 1.182 GB, free: 7.438 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0006455/0.451, allocations: 453.7 kB / 1.182 GB, free: 6.992 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.002129/0.4531, allocations: 1.222 MB / 1.183 GB, free: 5.766 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.4532, allocations: 4 kB / 1.183 GB, free: 5.762 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.477e-06/0.4532, allocations: 0 / 1.183 GB, free: 5.762 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 2.229e-05/0.4532, allocations: 0 / 1.183 GB, free: 5.762 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.002868/0.4561, allocations: 1.179 MB / 1.184 GB, free: 4.527 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.286e-05/0.4562, allocations: 11.98 kB / 1.184 GB, free: 4.516 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002617/0.4588, allocations: 240.1 kB / 1.185 GB, free: 4.281 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001482/0.4603, allocations: 0.6003 MB / 1.185 GB, free: 3.641 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.748e-05/0.4604, allocations: 49.67 kB / 1.185 GB, free: 3.594 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001834/0.4606, allocations: 72.3 kB / 1.185 GB, free: 3.523 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002329/0.4629, allocations: 1.081 MB / 1.186 GB, free: 2.332 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.413e-05/0.463, allocations: 11.89 kB / 1.186 GB, free: 2.32 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001099/0.4631, allocations: 35.92 kB / 1.186 GB, free: 2.285 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002361/0.4633, allocations: 85.25 kB / 1.186 GB, free: 2.199 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001631/0.465, allocations: 0.7543 MB / 1.187 GB, free: 1.445 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005632/0.4706, allocations: 5.871 MB / 1.193 GB, free: 11.15 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001019/0.4717, allocations: 0.5685 MB / 1.193 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004361/0.4721, allocations: 326 kB / 1.194 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.949e-05/0.4722, allocations: 4.438 kB / 1.194 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.831e-05/0.4722, allocations: 35 kB / 1.194 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=47): time 2.846e-06/0.4722, allocations: 4 kB / 1.194 GB, free: 10.2 MB / 0.9512 GB Notification: Performance of matching and sorting (n=48): time 0.003909/0.4761, allocations: 1.988 MB / 1.196 GB, free: 8.121 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.783e-05/0.4762, allocations: 59.84 kB / 1.196 GB, free: 8.051 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006628/0.4769, allocations: 0.5625 MB / 1.196 GB, free: 7.48 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.936e-05/0.4769, allocations: 33.7 kB / 1.196 GB, free: 7.441 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002863/0.4772, allocations: 424.1 kB / 1.197 GB, free: 7.02 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001547/0.4774, allocations: 182.5 kB / 1.197 GB, free: 6.84 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000205/0.4776, allocations: 122.6 kB / 1.197 GB, free: 6.715 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001736/0.4778, allocations: 382.7 kB / 1.197 GB, free: 6.332 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000423/0.4782, allocations: 269.9 kB / 1.198 GB, free: 6.066 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005761/0.4788, allocations: 0.4892 MB / 1.198 GB, free: 5.484 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001058/0.4798, allocations: 0.8093 MB / 1.199 GB, free: 4.578 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.4798, allocations: 0 / 1.199 GB, free: 4.578 MB / 0.9512 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001847/0.4817, allocations: 1.087 MB / 1.2 GB, free: 3.473 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.4817, allocations: 8 kB / 1.2 GB, free: 3.465 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.4818, allocations: 12.06 kB / 1.2 GB, free: 3.453 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008878/0.4826, allocations: 279.1 kB / 1.2 GB, free: 3.168 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004779/0.4831, allocations: 127.8 kB / 1.2 GB, free: 3.043 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006888/0.49, allocations: 7.138 MB / 1.207 GB, free: 11.34 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006332/0.4907, allocations: 35.97 kB / 1.207 GB, free: 11.3 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.005e-05/0.4908, allocations: 28 kB / 1.207 GB, free: 11.28 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 (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,6,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.0003871/0.4911, allocations: 261.4 kB / 1.208 GB, free: 11.01 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001082/0.4913, allocations: 71.58 kB / 1.208 GB, free: 10.94 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001619/0.4929, allocations: 0.8886 MB / 1.209 GB, free: 10.04 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.4929, allocations: 8.125 kB / 1.209 GB, free: 10.03 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.4929, allocations: 8 kB / 1.209 GB, free: 10.02 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.4929, allocations: 3.984 kB / 1.209 GB, free: 10.02 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002596/0.4955, allocations: 1.72 MB / 1.21 GB, free: 8.207 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/0.4956, allocations: 8.188 kB / 1.21 GB, free: 8.199 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002652/0.4958, allocations: 59.89 kB / 1.21 GB, free: 8.141 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007647/0.4966, allocations: 271.4 kB / 1.211 GB, free: 7.863 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.336e-05/0.4966, allocations: 8 kB / 1.211 GB, free: 7.855 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006886/0.5035, allocations: 7.128 MB / 1.218 GB, free: 172 kB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/0.5036, allocations: 7.969 kB / 1.218 GB, free: 164 kB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001714/0.5053, allocations: 0.98 MB / 1.219 GB, free: 15.13 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002779/0.5056, allocations: 192.6 kB / 1.219 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.678e-05/0.5057, allocations: 12 kB / 1.219 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003612/0.506, allocations: 35.89 kB / 1.219 GB, free: 14.88 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.747e-05/0.5061, allocations: 43.89 kB / 1.219 GB, free: 14.84 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.154e-05/0.5062, allocations: 16 kB / 1.219 GB, free: 14.82 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004509/0.5066, allocations: 383.1 kB / 1.219 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5066, allocations: 0 / 1.219 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0008977/0.5075, allocations: 224 kB / 1.219 GB, free: 14.23 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (31): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001982/0.5077, allocations: 119.2 kB / 1.22 GB, free: 14.1 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.00215/0.5099, allocations: 1.279 MB / 1.221 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 8.065e-06/0.5099, allocations: 4 kB / 1.221 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.001264/0.5112, allocations: 0.8893 MB / 1.222 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.5122, allocations: 227.6 kB / 1.222 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002272/0.5145, allocations: 1.328 MB / 1.223 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005962/0.5151, allocations: 1.012 MB / 1.224 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0003583/0.5155, allocations: 126 kB / 1.224 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.5156, allocations: 47.38 kB / 1.224 GB, free: 9.02 MB / 0.9825 GB Notification: Performance of SimCode: time 6.31e-07/0.5156, allocations: 3.938 kB / 1.224 GB, free: 9.016 MB / 0.9825 GB Notification: Performance of Templates: time 0.01967/0.5353, allocations: 11.31 MB / 1.235 GB, free: 13.84 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches