Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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_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_10_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_10_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.001798/0.001799, allocations: 109.5 kB / 16.41 MB, free: 5.996 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.002245/0.002245, allocations: 188.9 kB / 17.35 MB, free: 5.582 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.478/1.478, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.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.784/2.784, allocations: 437.1 MB / 0.7112 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 68.11 kB / 1.019 GB, free: 9.398 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.097/1.099, allocations: 151.6 MB / 1.167 GB, free: 3.848 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.009689/1.108, allocations: 6.083 MB / 1.173 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.006178/1.115, allocations: 3.149 MB / 1.176 GB, free: 10.58 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008435/1.116, allocations: 27.81 kB / 1.176 GB, free: 10.55 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002865/1.118, allocations: 0.9312 MB / 1.177 GB, free: 9.617 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.00176/1.12, allocations: 493.5 kB / 1.178 GB, free: 9.133 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001514/1.122, allocations: 486.1 kB / 1.178 GB, free: 8.66 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0016/1.123, allocations: 1.108 MB / 1.179 GB, free: 7.547 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009511/1.124, allocations: 0.6348 MB / 1.18 GB, free: 6.906 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006356/1.125, allocations: 442.4 kB / 1.18 GB, free: 6.473 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006003/1.126, allocations: 470.2 kB / 1.181 GB, free: 6.012 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 9.118e-05/1.126, allocations: 60 kB / 1.181 GB, free: 5.953 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001027/1.127, allocations: 494.9 kB / 1.181 GB, free: 5.469 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0002981/1.127, allocations: 283.2 kB / 1.182 GB, free: 5.191 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0004104/1.127, allocations: 405.9 kB / 1.182 GB, free: 4.793 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001392/1.129, allocations: 1.164 MB / 1.183 GB, free: 3.629 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 8.456e-06/1.129, allocations: 7.938 kB / 1.183 GB, free: 3.621 MB / 0.9044 GB Notification: Performance of FrontEnd: time 3.437e-06/1.129, allocations: 0 / 1.183 GB, free: 3.621 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.19e-05/1.129, allocations: 3.938 kB / 1.183 GB, free: 3.617 MB / 0.9044 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.001724/1.131, allocations: 1.078 MB / 1.184 GB, free: 2.484 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/1.131, allocations: 12.88 kB / 1.184 GB, free: 2.473 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00147/1.132, allocations: 220.2 kB / 1.184 GB, free: 2.258 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009323/1.133, allocations: 0.5887 MB / 1.185 GB, free: 1.629 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.008e-05/1.133, allocations: 45.67 kB / 1.185 GB, free: 1.586 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001097/1.133, allocations: 68.34 kB / 1.185 GB, free: 1.52 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001377/1.135, allocations: 1.041 MB / 1.186 GB, free: 368 kB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.251e-05/1.135, allocations: 7.953 kB / 1.186 GB, free: 360 kB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.739e-05/1.135, allocations: 31.98 kB / 1.186 GB, free: 328 kB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.815e-05/1.135, allocations: 69.2 kB / 1.186 GB, free: 260 kB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001019/1.136, allocations: 0.6996 MB / 1.187 GB, free: 15.55 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005466/1.141, allocations: 5.722 MB / 1.192 GB, free: 9.406 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008749/1.142, allocations: 0.602 MB / 1.193 GB, free: 8.758 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007822/1.143, allocations: 436.6 kB / 1.193 GB, free: 8.328 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.974e-05/1.143, allocations: 4.688 kB / 1.193 GB, free: 8.324 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.014e-05/1.143, allocations: 34.56 kB / 1.194 GB, free: 8.281 MB / 0.92 GB Notification: Performance of pre-optimization done (n=41): time 2.484e-06/1.143, allocations: 4 kB / 1.194 GB, free: 8.277 MB / 0.92 GB Notification: Performance of matching and sorting (n=42): time 0.004399/1.148, allocations: 2.023 MB / 1.195 GB, free: 6.16 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.084e-05/1.148, allocations: 55.41 kB / 1.196 GB, free: 6.094 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005022/1.148, allocations: 454.8 kB / 1.196 GB, free: 5.641 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.934e-05/1.148, allocations: 37.69 kB / 1.196 GB, free: 5.598 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002786/1.148, allocations: 404 kB / 1.196 GB, free: 5.199 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001299/1.149, allocations: 154.6 kB / 1.197 GB, free: 5.047 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001734/1.149, allocations: 114.2 kB / 1.197 GB, free: 4.93 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001741/1.149, allocations: 362.8 kB / 1.197 GB, free: 4.566 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003418/1.149, allocations: 241.2 kB / 1.197 GB, free: 4.332 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000477/1.15, allocations: 449 kB / 1.198 GB, free: 3.797 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008846/1.151, allocations: 0.7517 MB / 1.198 GB, free: 2.949 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/1.151, allocations: 0 / 1.198 GB, free: 2.949 MB / 0.92 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001776/1.152, allocations: 1.043 MB / 1.199 GB, free: 1.887 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.526e-05/1.152, allocations: 12 kB / 1.199 GB, free: 1.875 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/1.153, allocations: 8 kB / 1.199 GB, free: 1.867 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001026/1.154, allocations: 319 kB / 1.2 GB, free: 1.543 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003108/1.154, allocations: 95.83 kB / 1.2 GB, free: 1.449 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007189/1.161, allocations: 7.486 MB / 1.207 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004949/1.162, allocations: 28.03 kB / 1.207 GB, free: 9.371 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.699e-05/1.162, allocations: 27.98 kB / 1.207 GB, free: 9.344 MB / 0.9356 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.0003868/1.162, allocations: 245.6 kB / 1.207 GB, free: 9.094 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.801e-05/1.162, allocations: 59.62 kB / 1.207 GB, free: 9.035 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001654/1.164, allocations: 0.8963 MB / 1.208 GB, free: 8.117 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/1.164, allocations: 0 / 1.208 GB, free: 8.117 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/1.164, allocations: 0 / 1.208 GB, free: 8.117 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002195/1.164, allocations: 176.7 kB / 1.209 GB, free: 7.926 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.879e-05/1.164, allocations: 8 kB / 1.209 GB, free: 7.918 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002341/1.164, allocations: 19.97 kB / 1.209 GB, free: 7.898 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.347e-05/1.164, allocations: 43.92 kB / 1.209 GB, free: 7.855 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001847/1.166, allocations: 0.9447 MB / 1.21 GB, free: 6.891 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001141/1.167, allocations: 0.985 MB / 1.21 GB, free: 5.891 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003242/1.168, allocations: 243.8 kB / 1.211 GB, free: 5.652 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003388/1.168, allocations: 306.9 kB / 1.211 GB, free: 5.355 MB / 0.9356 GB Notification: Performance of Backend: time 9.52e-07/1.168, allocations: 0 / 1.211 GB, free: 5.355 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.002572/1.171, allocations: 1.306 MB / 1.212 GB, free: 3.988 MB / 0.9356 GB Notification: Performance of SimCode: time 0.002643/1.173, allocations: 1.903 MB / 1.214 GB, free: 2.043 MB / 0.9356 GB Notification: Performance of Templates: time 0.02004/1.193, allocations: 11.97 MB / 1.226 GB, free: 6.156 MB / 0.9512 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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