Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.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.ThreePhasesBalanced.Lines.Examples.ACLine_L") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.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.001404/0.001404, allocations: 111.9 kB / 16.42 MB, free: 6.496 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.001516/0.001516, allocations: 185.7 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.456/1.456, allocations: 222.9 MB / 241 MB, free: 15.17 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.357/2.357, allocations: 390.3 MB / 0.6655 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 63.91 kB / 0.9516 GB, free: 7.613 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8907/0.8921, allocations: 140.4 MB / 1.089 GB, free: 5.492 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.007542/0.8997, allocations: 6.154 MB / 1.095 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.005344/0.9051, allocations: 3.178 MB / 1.098 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006248/0.9057, allocations: 29.53 kB / 1.098 GB, free: 15.17 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.002529/0.9083, allocations: 0.9361 MB / 1.099 GB, free: 14.6 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001384/0.9097, allocations: 495.5 kB / 1.099 GB, free: 14.31 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001555/0.9113, allocations: 0.4895 MB / 1.1 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001636/0.9129, allocations: 1.108 MB / 1.101 GB, free: 13.57 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001032/0.914, allocations: 0.6319 MB / 1.101 GB, free: 13.31 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007642/0.9147, allocations: 451.1 kB / 1.102 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007/0.9155, allocations: 474.5 kB / 1.102 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001352/0.9156, allocations: 58.41 kB / 1.102 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001195/0.9168, allocations: 494 kB / 1.103 GB, free: 12.74 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0003853/0.9172, allocations: 287.5 kB / 1.103 GB, free: 12.63 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0005178/0.9177, allocations: 400.7 kB / 1.103 GB, free: 12.39 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001906/0.9196, allocations: 1.178 MB / 1.105 GB, free: 11.98 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.9197, allocations: 0 / 1.105 GB, free: 11.98 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.855e-06/0.9197, allocations: 0.7031 kB / 1.105 GB, free: 11.98 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.677e-05/0.9197, allocations: 0 / 1.105 GB, free: 11.98 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.001948/0.9216, allocations: 1.053 MB / 1.106 GB, free: 11.22 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/0.9217, allocations: 11.72 kB / 1.106 GB, free: 11.21 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001732/0.9234, allocations: 224.2 kB / 1.106 GB, free: 11.16 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001335/0.9248, allocations: 0.6043 MB / 1.106 GB, free: 10.77 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.944e-05/0.9249, allocations: 46.45 kB / 1.106 GB, free: 10.75 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001447/0.925, allocations: 65.91 kB / 1.106 GB, free: 10.73 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00208/0.9271, allocations: 1.033 MB / 1.108 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.231e-05/0.9272, allocations: 11.61 kB / 1.108 GB, free: 10.11 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.578e-05/0.9272, allocations: 33.5 kB / 1.108 GB, free: 10.09 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001415/0.9274, allocations: 69.8 kB / 1.108 GB, free: 10.08 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001397/0.9288, allocations: 0.6908 MB / 1.108 GB, free: 9.832 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006891/0.9357, allocations: 5.729 MB / 1.114 GB, free: 4.875 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009952/0.9367, allocations: 0.5977 MB / 1.114 GB, free: 4.5 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008941/0.9376, allocations: 436 kB / 1.115 GB, free: 4.355 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 3.687e-05/0.9377, allocations: 5.672 kB / 1.115 GB, free: 4.355 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.647e-05/0.9377, allocations: 32.22 kB / 1.115 GB, free: 4.316 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=41): time 3.707e-06/0.9377, allocations: 0 / 1.115 GB, free: 4.316 MB / 0.8731 GB Notification: Performance of matching and sorting (n=42): time 0.00503/0.9428, allocations: 2.017 MB / 1.117 GB, free: 3.277 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.734e-05/0.9428, allocations: 60.11 kB / 1.117 GB, free: 3.211 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006374/0.9435, allocations: 464.4 kB / 1.117 GB, free: 2.996 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.031e-05/0.9435, allocations: 34.98 kB / 1.117 GB, free: 2.957 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003265/0.9439, allocations: 386 kB / 1.118 GB, free: 2.648 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001956/0.9441, allocations: 147.2 kB / 1.118 GB, free: 2.535 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002047/0.9443, allocations: 113.5 kB / 1.118 GB, free: 2.473 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001733/0.9444, allocations: 364.6 kB / 1.118 GB, free: 2.137 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000392/0.9448, allocations: 238.5 kB / 1.119 GB, free: 2.059 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005579/0.9454, allocations: 460.1 kB / 1.119 GB, free: 1.699 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001084/0.9465, allocations: 0.7519 MB / 1.12 GB, free: 1.184 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.9465, allocations: 1.312 kB / 1.12 GB, free: 1.184 MB / 0.8731 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002059/0.9486, allocations: 1.034 MB / 1.121 GB, free: 0.7539 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.663e-05/0.9486, allocations: 9.344 kB / 1.121 GB, free: 0.7539 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.595e-05/0.9486, allocations: 6.594 kB / 1.121 GB, free: 0.7539 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001133/0.9498, allocations: 327.4 kB / 1.121 GB, free: 0.6484 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003645/0.9502, allocations: 98.81 kB / 1.121 GB, free: 0.6367 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008549/0.9587, allocations: 7.468 MB / 1.129 GB, free: 10.26 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006157/0.9594, allocations: 33.69 kB / 1.129 GB, free: 10.25 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.049e-05/0.9594, allocations: 25.16 kB / 1.129 GB, free: 10.24 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.0004477/0.9599, allocations: 245.7 kB / 1.129 GB, free: 10.06 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.789e-05/0.96, allocations: 61.64 kB / 1.129 GB, free: 10.03 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002242/0.9622, allocations: 0.8975 MB / 1.13 GB, free: 9.637 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.145e-05/0.9623, allocations: 2.156 kB / 1.13 GB, free: 9.637 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.9623, allocations: 5.812 kB / 1.13 GB, free: 9.633 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003497/0.9626, allocations: 172.9 kB / 1.13 GB, free: 9.492 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.912e-05/0.9627, allocations: 6.781 kB / 1.13 GB, free: 9.488 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002671/0.963, allocations: 22.05 kB / 1.13 GB, free: 9.48 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.9631, allocations: 41.86 kB / 1.13 GB, free: 9.48 MB / 0.8887 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002586/0.9657, allocations: 0.9498 MB / 1.131 GB, free: 9.105 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001761/0.9675, allocations: 0.9765 MB / 1.132 GB, free: 8.633 MB / 0.8887 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004511/0.9679, allocations: 254.9 kB / 1.132 GB, free: 8.555 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0006379/0.9686, allocations: 311 kB / 1.132 GB, free: 8.41 MB / 0.8887 GB Notification: Performance of Backend: time 1.182e-06/0.9686, allocations: 0 / 1.132 GB, free: 8.41 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.003804/0.9724, allocations: 1.285 MB / 1.134 GB, free: 7.641 MB / 0.8887 GB Notification: Performance of SimCode: time 0.003285/0.9757, allocations: 1.893 MB / 1.136 GB, free: 6.469 MB / 0.8887 GB Notification: Performance of Templates: time 0.02652/1.002, allocations: 12.01 MB / 1.147 GB, free: 3.84 MB / 0.8887 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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.star,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.star,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.star,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.star,load_sc.use_C_in,load_sc.use_L_in,load_sc.use_R_in,time