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.0009874/0.0009875, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 183.8 kB / 16.92 MB, free: 6.77 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.431/1.431, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.914/2.914, allocations: 462.6 MB / 0.7371 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003644/0.0003644, allocations: 9.469 kB / 0.9034 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3384/0.3388, allocations: 159.6 MB / 1.059 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01347/0.3523, allocations: 10.37 MB / 1.069 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01426/0.3667, allocations: 8.675 MB / 1.078 GB, free: 1.82 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002136/0.3689, allocations: 51.62 kB / 1.078 GB, free: 1.77 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.00152/0.3704, allocations: 281.8 kB / 1.078 GB, free: 1.492 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.005537/0.376, allocations: 1.401 MB / 1.08 GB, free: 92 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.002163/0.3782, allocations: 0.6155 MB / 1.08 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.004156/0.3823, allocations: 2.895 MB / 1.083 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003957/0.3863, allocations: 1.957 MB / 1.085 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00197/0.3883, allocations: 0.8206 MB / 1.086 GB, free: 9.738 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002021/0.3903, allocations: 0.9414 MB / 1.087 GB, free: 8.793 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0004206/0.3908, allocations: 60 kB / 1.087 GB, free: 8.734 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002214/0.393, allocations: 0.881 MB / 1.088 GB, free: 7.852 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0007947/0.3938, allocations: 490.3 kB / 1.088 GB, free: 7.371 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.001514/0.3953, allocations: 0.798 MB / 1.089 GB, free: 6.562 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.002978/0.3983, allocations: 1.983 MB / 1.091 GB, free: 4.574 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3983, allocations: 0 / 1.091 GB, free: 4.574 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.285e-06/0.3983, allocations: 0 / 1.091 GB, free: 4.574 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0001078/0.3985, allocations: 0 / 1.091 GB, free: 4.574 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.00399/0.4025, allocations: 1.71 MB / 1.092 GB, free: 2.809 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.4025, allocations: 11.97 kB / 1.092 GB, free: 2.797 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01185/0.4144, allocations: 2.113 MB / 1.095 GB, free: 0.6797 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002678/0.4171, allocations: 1.126 MB / 1.096 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001135/0.4172, allocations: 90.69 kB / 1.096 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004841/0.4177, allocations: 112.1 kB / 1.096 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006558/0.4243, allocations: 2.506 MB / 1.098 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.415e-05/0.4244, allocations: 15.83 kB / 1.098 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002452/0.4246, allocations: 52 kB / 1.098 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003899/0.425, allocations: 126.1 kB / 1.098 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007918/0.433, allocations: 2.592 MB / 1.101 GB, free: 9.848 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0146/0.4476, allocations: 10.11 MB / 1.111 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006578/0.4542, allocations: 2.003 MB / 1.113 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002988/0.4572, allocations: 0.9916 MB / 1.114 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 5.51e-05/0.4573, allocations: 4.438 kB / 1.114 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.208e-05/0.4574, allocations: 39 kB / 1.114 GB, free: 12 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=53): time 2.275e-06/0.4574, allocations: 4 kB / 1.114 GB, free: 12 MB / 0.8731 GB Notification: Performance of matching and sorting (n=81): time 0.0333/0.4907, allocations: 8.773 MB / 1.122 GB, free: 3.164 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.99e-05/0.4908, allocations: 60.06 kB / 1.122 GB, free: 3.09 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001849/0.4926, allocations: 1.104 MB / 1.124 GB, free: 1.969 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001901/0.4928, allocations: 41.7 kB / 1.124 GB, free: 1.922 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005951/0.4934, allocations: 0.7341 MB / 1.124 GB, free: 1.18 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003468/0.4938, allocations: 291.8 kB / 1.125 GB, free: 0.8906 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001965/0.494, allocations: 77.67 kB / 1.125 GB, free: 0.8086 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001304/0.4942, allocations: 341.9 kB / 1.125 GB, free: 480 kB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003206/0.4974, allocations: 1.091 MB / 1.126 GB, free: 15.38 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003383/0.5008, allocations: 1.332 MB / 1.127 GB, free: 13.95 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006477/0.5073, allocations: 2.421 MB / 1.13 GB, free: 11.43 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.486e-06/0.5073, allocations: 4 kB / 1.13 GB, free: 11.43 MB / 0.8887 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.009482/0.5168, allocations: 3.312 MB / 1.133 GB, free: 8.082 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 3.509e-05/0.5169, allocations: 12.16 kB / 1.133 GB, free: 8.07 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.97e-05/0.5169, allocations: 8 kB / 1.133 GB, free: 8.062 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002894/0.5198, allocations: 0.7872 MB / 1.134 GB, free: 7.25 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002109/0.5219, allocations: 427.3 kB / 1.134 GB, free: 6.832 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01756/0.5395, allocations: 14.71 MB / 1.148 GB, free: 7.051 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002684/0.5422, allocations: 311.5 kB / 1.149 GB, free: 6.746 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002751/0.5425, allocations: 51.97 kB / 1.149 GB, free: 6.695 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.001112/0.5437, allocations: 393.5 kB / 1.149 GB, free: 6.301 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004701/0.5441, allocations: 142.3 kB / 1.149 GB, free: 6.16 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009869/0.554, allocations: 3.249 MB / 1.153 GB, free: 2.867 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-05/0.5541, allocations: 8 kB / 1.153 GB, free: 2.859 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.851e-05/0.5541, allocations: 8 kB / 1.153 GB, free: 2.852 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.564e-05/0.5541, allocations: 3.984 kB / 1.153 GB, free: 2.848 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0129/0.567, allocations: 4.959 MB / 1.157 GB, free: 13.76 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.335e-05/0.5671, allocations: 4 kB / 1.157 GB, free: 13.76 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001813/0.5689, allocations: 359.4 kB / 1.158 GB, free: 13.41 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002534/0.5715, allocations: 0.6975 MB / 1.158 GB, free: 12.68 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001549/0.5717, allocations: 31.97 kB / 1.158 GB, free: 12.65 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01663/0.5883, allocations: 14.34 MB / 1.172 GB, free: 13.25 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.757e-06/0.5884, allocations: 7.984 kB / 1.172 GB, free: 13.24 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009178/0.5975, allocations: 3.081 MB / 1.175 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001077/0.5987, allocations: 383.2 kB / 1.176 GB, free: 9.684 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004351/0.5991, allocations: 19.94 kB / 1.176 GB, free: 9.664 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002168/0.6013, allocations: 303.5 kB / 1.176 GB, free: 9.367 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003143/0.6016, allocations: 76.48 kB / 1.176 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001241/0.6018, allocations: 44.16 kB / 1.176 GB, free: 9.25 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001253/0.603, allocations: 0.7405 MB / 1.177 GB, free: 8.508 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.91e-07/0.603, allocations: 0 / 1.177 GB, free: 8.508 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001892/0.6049, allocations: 435.9 kB / 1.177 GB, free: 8.082 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.000297/0.6052, allocations: 127.1 kB / 1.177 GB, free: 7.949 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.009243/0.6145, allocations: 3.66 MB / 1.181 GB, free: 4.184 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.249e-05/0.6145, allocations: 4.125 kB / 1.181 GB, free: 4.18 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.005441/0.62, allocations: 2.379 MB / 1.183 GB, free: 1.691 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003447/0.6235, allocations: 0.4885 MB / 1.184 GB, free: 1.211 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009116/0.6326, allocations: 4.221 MB / 1.188 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001405/0.6341, allocations: 1.384 MB / 1.189 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006648/0.6347, allocations: 123.3 kB / 1.189 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of SimCode: time 1.082e-06/0.6348, allocations: 3.938 kB / 1.189 GB, free: 11.38 MB / 0.9512 GB Notification: Performance of Templates: time 0.5895/1.224, allocations: 74.77 MB / 1.262 GB, free: 175.3 MB / 0.9981 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/jenkins1/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