Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_L,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_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L,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_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001683/0.001683, allocations: 115.2 kB / 16.42 MB, free: 6.5 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.001829/0.001829, allocations: 187.9 kB / 17.35 MB, free: 5.762 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.453/1.453, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.259/2.259, allocations: 390.2 MB / 0.6655 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001555/0.001555, allocations: 63.89 kB / 0.9515 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9988/1, allocations: 140.4 MB / 1.089 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.008011/1.008, allocations: 6.09 MB / 1.095 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.005396/1.014, allocations: 3.144 MB / 1.098 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005243/1.014, allocations: 28.91 kB / 1.098 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.002563/1.017, allocations: 0.9307 MB / 1.099 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001391/1.018, allocations: 0.4885 MB / 1.099 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001485/1.02, allocations: 476.5 kB / 1.1 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001589/1.021, allocations: 1.1 MB / 1.101 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0011/1.023, allocations: 0.6363 MB / 1.101 GB, free: 13.4 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007724/1.023, allocations: 449.3 kB / 1.102 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007263/1.024, allocations: 474.3 kB / 1.102 GB, free: 13 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001108/1.024, allocations: 57.97 kB / 1.102 GB, free: 13 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001119/1.025, allocations: 489.8 kB / 1.103 GB, free: 12.83 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0003679/1.026, allocations: 283 kB / 1.103 GB, free: 12.72 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0004973/1.026, allocations: 404.5 kB / 1.103 GB, free: 12.48 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001981/1.028, allocations: 1.172 MB / 1.104 GB, free: 12.08 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/1.028, allocations: 0 / 1.104 GB, free: 12.08 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.603e-06/1.028, allocations: 0 / 1.104 GB, free: 12.08 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.282e-05/1.028, allocations: 0 / 1.104 GB, free: 12.08 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001866/1.03, allocations: 1.059 MB / 1.105 GB, free: 11.3 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/1.03, allocations: 8.547 kB / 1.105 GB, free: 11.3 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001583/1.032, allocations: 218.3 kB / 1.106 GB, free: 11.25 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001064/1.033, allocations: 0.5817 MB / 1.106 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.921e-05/1.033, allocations: 46.08 kB / 1.106 GB, free: 10.86 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/1.033, allocations: 70.31 kB / 1.106 GB, free: 10.83 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001659/1.035, allocations: 1.032 MB / 1.107 GB, free: 10.22 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.176e-05/1.035, allocations: 8.047 kB / 1.107 GB, free: 10.22 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.638e-05/1.035, allocations: 29.27 kB / 1.107 GB, free: 10.2 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001058/1.035, allocations: 68.53 kB / 1.107 GB, free: 10.19 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001171/1.036, allocations: 0.6917 MB / 1.108 GB, free: 9.945 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005616/1.042, allocations: 5.73 MB / 1.114 GB, free: 4.984 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009096/1.043, allocations: 0.5977 MB / 1.114 GB, free: 4.609 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008704/1.044, allocations: 432.2 kB / 1.115 GB, free: 4.473 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 3.888e-05/1.044, allocations: 4.594 kB / 1.115 GB, free: 4.473 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/1.044, allocations: 32.56 kB / 1.115 GB, free: 4.434 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=41): time 2.625e-06/1.044, allocations: 0 / 1.115 GB, free: 4.434 MB / 0.8731 GB Notification: Performance of matching and sorting (n=42): time 0.004864/1.049, allocations: 2.023 MB / 1.117 GB, free: 3.387 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.212e-05/1.049, allocations: 55.75 kB / 1.117 GB, free: 3.324 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005747/1.049, allocations: 455.2 kB / 1.117 GB, free: 3.113 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.033e-05/1.049, allocations: 31.02 kB / 1.117 GB, free: 3.078 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002788/1.049, allocations: 389.4 kB / 1.118 GB, free: 2.766 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001276/1.05, allocations: 151.4 kB / 1.118 GB, free: 2.648 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001835/1.05, allocations: 108.7 kB / 1.118 GB, free: 2.59 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0002125/1.05, allocations: 363.9 kB / 1.118 GB, free: 2.254 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003975/1.05, allocations: 247.9 kB / 1.118 GB, free: 2.168 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005265/1.051, allocations: 446.7 kB / 1.119 GB, free: 1.82 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/1.052, allocations: 0.7475 MB / 1.12 GB, free: 1.309 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/1.052, allocations: 2.625 kB / 1.12 GB, free: 1.309 MB / 0.8731 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002023/1.054, allocations: 1.035 MB / 1.121 GB, free: 0.8789 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/1.054, allocations: 12.47 kB / 1.121 GB, free: 0.875 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/1.054, allocations: 7.625 kB / 1.121 GB, free: 0.875 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001035/1.055, allocations: 322.8 kB / 1.121 GB, free: 0.7734 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003326/1.055, allocations: 97.62 kB / 1.121 GB, free: 0.7617 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008203/1.064, allocations: 7.473 MB / 1.128 GB, free: 10.38 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005825/1.064, allocations: 28.61 kB / 1.128 GB, free: 10.38 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.16e-05/1.064, allocations: 37.86 kB / 1.128 GB, free: 10.36 MB / 0.8887 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 (53): * Single equations (assignments): 49 * 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 {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004693/1.065, allocations: 249.5 kB / 1.129 GB, free: 10.18 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/1.065, allocations: 60.44 kB / 1.129 GB, free: 10.14 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001857/1.067, allocations: 0.8915 MB / 1.13 GB, free: 9.758 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.311e-06/1.067, allocations: 4.078 kB / 1.13 GB, free: 9.758 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/1.067, allocations: 1.094 kB / 1.13 GB, free: 9.758 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002584/1.067, allocations: 166.9 kB / 1.13 GB, free: 9.621 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.681e-05/1.067, allocations: 10.12 kB / 1.13 GB, free: 9.613 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002512/1.067, allocations: 22.67 kB / 1.13 GB, free: 9.605 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.432e-05/1.068, allocations: 43.5 kB / 1.13 GB, free: 9.602 MB / 0.8887 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002131/1.07, allocations: 0.9555 MB / 1.131 GB, free: 9.223 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001337/1.071, allocations: 0.975 MB / 1.132 GB, free: 8.75 MB / 0.8887 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003802/1.071, allocations: 251.3 kB / 1.132 GB, free: 8.676 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0004255/1.072, allocations: 307.7 kB / 1.132 GB, free: 8.531 MB / 0.8887 GB Notification: Performance of Backend: time 7.72e-07/1.072, allocations: 4 kB / 1.132 GB, free: 8.527 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.00289/1.075, allocations: 1.282 MB / 1.133 GB, free: 7.758 MB / 0.8887 GB Notification: Performance of SimCode: time 0.002933/1.078, allocations: 1.869 MB / 1.135 GB, free: 6.598 MB / 0.8887 GB Notification: Performance of Templates: time 0.026/1.104, allocations: 11.99 MB / 1.147 GB, free: 4 MB / 0.8887 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference: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] Variables in the result:$cse1,E.V,E.definiteReference,E.f,E.phiSou,E.potentialReference,Lbase,Lline_1.L,Lline_1.mode,Lline_2a.L,Lline_2a.mode,Lline_2b.L,Lline_2b.mode,Lline_3.L,Lline_3.mode,Lline_3b.L,Lline_3b.mode,Lline_sc.L,Lline_sc.mode,R1.C,R1.CMax,R1.CMin,R1.C_internal,R1.L,R1.LMax,R1.LMin,R1.L_internal,R1.P_nominal,R1.R,R1.RMax,R1.RMin,R1.R_internal,R1.V_nominal,R1.i[1],R1.i[2],R1.inductive,R1.initMode,R1.linearized,R1.mode,R1.use_C_in,R1.use_L_in,R1.use_R_in,R1.v[1],R1.v[2],R2.C,R2.CMax,R2.CMin,R2.C_internal,R2.L,R2.LMax,R2.LMin,R2.L_internal,R2.P_nominal,R2.R,R2.RMax,R2.RMin,R2.R_internal,R2.V_nominal,R2.i[1],R2.i[2],R2.inductive,R2.initMode,R2.linearized,R2.mode,R2.use_C_in,R2.use_L_in,R2.use_R_in,R2.v[1],R2.v[2],R3.C,R3.CMax,R3.CMin,R3.C_internal,R3.L,R3.LMax,R3.LMin,R3.L_internal,R3.P_nominal,R3.R,R3.RMax,R3.RMin,R3.R_internal,R3.V_nominal,R3.i[1],R3.i[2],R3.inductive,R3.initMode,R3.linearized,R3.mode,R3.use_C_in,R3.use_L_in,R3.use_R_in,R3.v[1],R3.v[2],load_sc.C,load_sc.CMax,load_sc.CMin,load_sc.C_internal,load_sc.L,load_sc.LMax,load_sc.LMin,load_sc.L_internal,load_sc.P_nominal,load_sc.R,load_sc.RMax,load_sc.RMin,load_sc.R_internal,load_sc.V_nominal,load_sc.i[1],load_sc.i[2],load_sc.inductive,load_sc.initMode,load_sc.linearized,load_sc.mode,load_sc.use_C_in,load_sc.use_L_in,load_sc.use_R_in,time