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 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.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.001463/0.001463, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001788/0.001788, allocations: 193 kB / 16.14 MB, free: 6.719 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.376/1.376, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.802/2.802, allocations: 472.6 MB / 0.7447 GB, free: 4.875 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 63 kB / 0.9114 GB, free: 33.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3403/0.3417, allocations: 159.9 MB / 1.068 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01609/0.3579, allocations: 10.87 MB / 1.078 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01317/0.3711, allocations: 8.803 MB / 1.087 GB, free: 7.047 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001461/0.3726, allocations: 51.69 kB / 1.087 GB, free: 6.996 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.004197/0.3768, allocations: 1.545 MB / 1.088 GB, free: 5.449 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.004694/0.3815, allocations: 1.401 MB / 1.09 GB, free: 4.047 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001932/0.3835, allocations: 0.6161 MB / 1.09 GB, free: 3.43 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.003566/0.387, allocations: 2.902 MB / 1.093 GB, free: 0.5234 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00234/0.3894, allocations: 1.329 MB / 1.094 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001815/0.3912, allocations: 0.8831 MB / 1.095 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001877/0.3931, allocations: 1.035 MB / 1.096 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0004148/0.3936, allocations: 88 kB / 1.096 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002121/0.3957, allocations: 0.9045 MB / 1.097 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0008092/0.3965, allocations: 0.5179 MB / 1.098 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.00154/0.3981, allocations: 0.8275 MB / 1.099 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.003598/0.4017, allocations: 2.535 MB / 1.101 GB, free: 8.344 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.4017, allocations: 4 kB / 1.101 GB, free: 8.34 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.443e-06/0.4017, allocations: 4 kB / 1.101 GB, free: 8.336 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0001001/0.4018, allocations: 0 / 1.101 GB, free: 8.336 MB / 0.8575 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.003855/0.4057, allocations: 2.021 MB / 1.103 GB, free: 6.258 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.4057, allocations: 8.031 kB / 1.103 GB, free: 6.25 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01084/0.4166, allocations: 2.05 MB / 1.105 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002472/0.4191, allocations: 1.119 MB / 1.106 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.642e-05/0.4192, allocations: 90.69 kB / 1.106 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002623/0.4195, allocations: 120.1 kB / 1.106 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005494/0.425, allocations: 2.482 MB / 1.109 GB, free: 184 kB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.223e-05/0.425, allocations: 11.84 kB / 1.109 GB, free: 172 kB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001746/0.4252, allocations: 51.98 kB / 1.109 GB, free: 120 kB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003869/0.4256, allocations: 134.2 kB / 1.109 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006951/0.4326, allocations: 2.537 MB / 1.111 GB, free: 13.44 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01399/0.4466, allocations: 10.06 MB / 1.121 GB, free: 2.719 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005725/0.4524, allocations: 1.96 MB / 1.123 GB, free: 0.7305 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002573/0.455, allocations: 0.966 MB / 1.124 GB, free: 15.76 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 6.013e-05/0.4551, allocations: 12.42 kB / 1.124 GB, free: 15.75 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.139e-05/0.4551, allocations: 46.97 kB / 1.124 GB, free: 15.69 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=53): time 2.645e-06/0.4551, allocations: 0 / 1.124 GB, free: 15.69 MB / 0.8887 GB Notification: Performance of matching and sorting (n=81): time 0.03141/0.4865, allocations: 8.707 MB / 1.133 GB, free: 6.926 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.867e-05/0.4866, allocations: 60.06 kB / 1.133 GB, free: 6.852 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001876/0.4885, allocations: 1.105 MB / 1.134 GB, free: 5.73 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001214/0.4886, allocations: 37.7 kB / 1.134 GB, free: 5.688 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.000556/0.4892, allocations: 0.7341 MB / 1.135 GB, free: 4.945 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003061/0.4895, allocations: 287.9 kB / 1.135 GB, free: 4.66 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004613/0.49, allocations: 198.4 kB / 1.135 GB, free: 4.461 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001398/0.4901, allocations: 341.9 kB / 1.135 GB, free: 4.121 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002766/0.4929, allocations: 1.075 MB / 1.136 GB, free: 3.043 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00292/0.4958, allocations: 1.309 MB / 1.138 GB, free: 1.641 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005719/0.5016, allocations: 2.37 MB / 1.14 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.03e-05/0.5016, allocations: 7.938 kB / 1.14 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.008869/0.5105, allocations: 3.281 MB / 1.143 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.041e-05/0.5106, allocations: 8 kB / 1.143 GB, free: 11.85 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.97e-05/0.5106, allocations: 11.94 kB / 1.143 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003018/0.5136, allocations: 0.7872 MB / 1.144 GB, free: 11.02 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001856/0.5155, allocations: 411.2 kB / 1.144 GB, free: 10.62 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01556/0.5311, allocations: 14.7 MB / 1.159 GB, free: 10.84 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002329/0.5334, allocations: 291.6 kB / 1.159 GB, free: 10.56 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002527/0.5337, allocations: 52.42 kB / 1.159 GB, free: 10.51 MB / 0.92 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.001004/0.5347, allocations: 405.3 kB / 1.159 GB, free: 10.11 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004412/0.5352, allocations: 146.2 kB / 1.16 GB, free: 9.961 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00854/0.5437, allocations: 3.206 MB / 1.163 GB, free: 6.711 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.249e-05/0.5438, allocations: 8 kB / 1.163 GB, free: 6.703 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.013e-05/0.5438, allocations: 8 kB / 1.163 GB, free: 6.695 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.331e-05/0.5438, allocations: 3.984 kB / 1.163 GB, free: 6.691 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01132/0.5552, allocations: 4.908 MB / 1.168 GB, free: 1.656 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-05/0.5552, allocations: 352 / 1.168 GB, free: 1.656 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001488/0.5567, allocations: 363.3 kB / 1.168 GB, free: 1.301 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002482/0.5592, allocations: 0.6937 MB / 1.169 GB, free: 0.582 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001196/0.5594, allocations: 31.97 kB / 1.169 GB, free: 0.5508 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01425/0.5736, allocations: 14.31 MB / 1.183 GB, free: 1.168 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.223e-06/0.5737, allocations: 7.969 kB / 1.183 GB, free: 1.16 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008008/0.5817, allocations: 3.046 MB / 1.186 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008498/0.5826, allocations: 383.2 kB / 1.186 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003724/0.583, allocations: 15.94 kB / 1.186 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001881/0.5848, allocations: 291.5 kB / 1.186 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003011/0.5852, allocations: 84.48 kB / 1.186 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/0.5853, allocations: 35.97 kB / 1.186 GB, free: 13.22 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001232/0.5865, allocations: 0.7405 MB / 1.187 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of sort global known variables: time 5.61e-07/0.5865, allocations: 0 / 1.187 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.00179/0.5883, allocations: 435.9 kB / 1.187 GB, free: 12.05 MB / 0.9512 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.0002988/0.5886, allocations: 127.1 kB / 1.188 GB, free: 11.92 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.008021/0.5967, allocations: 3.629 MB / 1.191 GB, free: 8.184 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 7.124e-06/0.5967, allocations: 0 / 1.191 GB, free: 8.184 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.004737/0.6015, allocations: 2.364 MB / 1.193 GB, free: 5.715 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002759/0.6042, allocations: 494.5 kB / 1.194 GB, free: 5.242 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00826/0.6125, allocations: 4.05 MB / 1.198 GB, free: 1.133 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001381/0.614, allocations: 1.388 MB / 1.199 GB, free: 15.71 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001877/0.6158, allocations: 375.9 kB / 1.2 GB, free: 15.34 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004489/0.6163, allocations: 103.4 kB / 1.2 GB, free: 15.24 MB / 0.9669 GB Notification: Performance of SimCode: time 1.072e-06/0.6163, allocations: 0 / 1.2 GB, free: 15.24 MB / 0.9669 GB Notification: Performance of Templates: time 0.04912/0.6655, allocations: 29.31 MB / 1.228 GB, free: 2.309 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