Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.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_10_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_10_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.00142/0.00142, allocations: 111.7 kB / 16.41 MB, free: 6.484 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.001496/0.001496, allocations: 187 kB / 17.34 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.433/1.433, allocations: 222.9 MB / 241 MB, free: 15.16 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.428/2.428, allocations: 437 MB / 0.7112 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 64.12 kB / 1.019 GB, free: 9.445 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8163/0.8176, allocations: 151.6 MB / 1.167 GB, free: 4.016 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.008728/0.8264, allocations: 6.165 MB / 1.173 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.005653/0.8321, allocations: 3.164 MB / 1.176 GB, free: 10.65 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000662/0.8328, allocations: 31.81 kB / 1.176 GB, free: 10.62 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002614/0.8354, allocations: 0.9315 MB / 1.177 GB, free: 9.684 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.001859/0.8373, allocations: 497.5 kB / 1.178 GB, free: 9.195 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001657/0.839, allocations: 0.4887 MB / 1.178 GB, free: 8.707 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.001615/0.8406, allocations: 1.108 MB / 1.179 GB, free: 7.594 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001066/0.8417, allocations: 0.6444 MB / 1.18 GB, free: 6.945 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007761/0.8425, allocations: 442.4 kB / 1.18 GB, free: 6.512 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000831/0.8433, allocations: 474.2 kB / 1.181 GB, free: 6.047 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.00016/0.8435, allocations: 60 kB / 1.181 GB, free: 5.988 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009722/0.8445, allocations: 483 kB / 1.181 GB, free: 5.516 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003595/0.8448, allocations: 287.3 kB / 1.182 GB, free: 5.234 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0005949/0.8454, allocations: 401.9 kB / 1.182 GB, free: 4.84 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001734/0.8472, allocations: 1.184 MB / 1.183 GB, free: 3.652 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.8472, allocations: 4 kB / 1.183 GB, free: 3.648 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.563e-06/0.8472, allocations: 0 / 1.183 GB, free: 3.648 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 3.956e-05/0.8473, allocations: 0 / 1.183 GB, free: 3.648 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.002078/0.8493, allocations: 1.063 MB / 1.184 GB, free: 2.531 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.8494, allocations: 16.91 kB / 1.184 GB, free: 2.516 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001568/0.851, allocations: 211.7 kB / 1.184 GB, free: 2.309 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00106/0.852, allocations: 0.596 MB / 1.185 GB, free: 1.672 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.119e-05/0.8521, allocations: 53.67 kB / 1.185 GB, free: 1.621 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001219/0.8522, allocations: 68.34 kB / 1.185 GB, free: 1.555 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00152/0.8538, allocations: 1.034 MB / 1.186 GB, free: 416 kB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.753e-05/0.8538, allocations: 11.84 kB / 1.186 GB, free: 404 kB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.181e-05/0.8539, allocations: 27.98 kB / 1.186 GB, free: 376 kB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.051e-05/0.854, allocations: 69.27 kB / 1.186 GB, free: 308 kB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001129/0.8551, allocations: 0.6957 MB / 1.187 GB, free: 15.61 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005444/0.8606, allocations: 5.725 MB / 1.193 GB, free: 9.453 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009398/0.8616, allocations: 0.6048 MB / 1.193 GB, free: 8.805 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007869/0.8624, allocations: 433.8 kB / 1.194 GB, free: 8.379 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.087e-05/0.8624, allocations: 4 kB / 1.194 GB, free: 8.375 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.8624, allocations: 38.56 kB / 1.194 GB, free: 8.328 MB / 0.92 GB Notification: Performance of pre-optimization done (n=41): time 3.537e-06/0.8624, allocations: 0 / 1.194 GB, free: 8.328 MB / 0.92 GB Notification: Performance of matching and sorting (n=42): time 0.00429/0.8667, allocations: 2.018 MB / 1.196 GB, free: 6.215 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.286e-05/0.8668, allocations: 55.41 kB / 1.196 GB, free: 6.148 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006417/0.8675, allocations: 466.8 kB / 1.196 GB, free: 5.684 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.027e-05/0.8675, allocations: 29.7 kB / 1.196 GB, free: 5.648 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003196/0.8678, allocations: 395 kB / 1.196 GB, free: 5.258 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001452/0.868, allocations: 145.9 kB / 1.197 GB, free: 5.113 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002148/0.8682, allocations: 110.2 kB / 1.197 GB, free: 5 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0002993/0.8685, allocations: 366.8 kB / 1.197 GB, free: 4.633 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003711/0.8689, allocations: 245.2 kB / 1.197 GB, free: 4.395 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005059/0.8694, allocations: 453 kB / 1.198 GB, free: 3.855 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001019/0.8704, allocations: 0.7441 MB / 1.198 GB, free: 3.016 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.8705, allocations: 4 kB / 1.198 GB, free: 3.012 MB / 0.92 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001899/0.8724, allocations: 1.042 MB / 1.199 GB, free: 1.949 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.387e-05/0.8724, allocations: 8 kB / 1.199 GB, free: 1.941 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/0.8724, allocations: 11.98 kB / 1.2 GB, free: 1.93 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/0.8734, allocations: 315.4 kB / 1.2 GB, free: 1.609 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003235/0.8738, allocations: 99.81 kB / 1.2 GB, free: 1.512 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007489/0.8813, allocations: 7.47 MB / 1.207 GB, free: 9.477 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004437/0.8817, allocations: 32.02 kB / 1.207 GB, free: 9.445 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.538e-05/0.8818, allocations: 28 kB / 1.207 GB, free: 9.418 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.0003533/0.8822, allocations: 245.5 kB / 1.207 GB, free: 9.168 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001211/0.8823, allocations: 67.22 kB / 1.208 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001636/0.8839, allocations: 0.8887 MB / 1.208 GB, free: 8.191 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.313e-06/0.884, allocations: 7.984 kB / 1.208 GB, free: 8.184 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/0.884, allocations: 4 kB / 1.208 GB, free: 8.18 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.884, allocations: 3.938 kB / 1.208 GB, free: 8.176 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00276/0.8868, allocations: 1.675 MB / 1.21 GB, free: 6.414 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.8868, allocations: 0 / 1.21 GB, free: 6.414 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001694/0.887, allocations: 43.91 kB / 1.21 GB, free: 6.371 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009195/0.8879, allocations: 311.3 kB / 1.21 GB, free: 6.055 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.953e-05/0.8879, allocations: 4 kB / 1.21 GB, free: 6.051 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007418/0.8953, allocations: 7.469 MB / 1.218 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.8954, allocations: 7.938 kB / 1.218 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001725/0.8971, allocations: 0.9954 MB / 1.219 GB, free: 12.97 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003508/0.8975, allocations: 184.3 kB / 1.219 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.573e-05/0.8976, allocations: 12 kB / 1.219 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002809/0.8979, allocations: 19.97 kB / 1.219 GB, free: 12.74 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.898, allocations: 43.83 kB / 1.219 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.634e-05/0.8981, allocations: 12 kB / 1.219 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0003765/0.8984, allocations: 318.8 kB / 1.219 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8985, allocations: 0 / 1.219 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0008586/0.8993, allocations: 200 kB / 1.219 GB, free: 12.18 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (23): * Single equations (assignments): 19 * 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%), (2,2,100.0%), (1,3,100.0%), (1,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.0001781/0.8995, allocations: 107.2 kB / 1.22 GB, free: 12.06 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002052/0.9016, allocations: 1.187 MB / 1.221 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.9016, allocations: 0 / 1.221 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001292/0.9029, allocations: 0.8657 MB / 1.222 GB, free: 9.91 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.9039, allocations: 205.8 kB / 1.222 GB, free: 9.719 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002267/0.9062, allocations: 1.292 MB / 1.223 GB, free: 8.375 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000713/0.9069, allocations: 0.9921 MB / 1.224 GB, free: 7.352 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001088/0.9071, allocations: 39.44 kB / 1.224 GB, free: 7.312 MB / 0.9512 GB Notification: Performance of SimCode: time 4.21e-07/0.9071, allocations: 0 / 1.224 GB, free: 7.312 MB / 0.9512 GB Notification: Performance of Templates: time 0.02208/0.9291, allocations: 18.69 MB / 1.242 GB, free: 4.656 MB / 0.9669 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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:R1.i[1],R1.i[2],R1.v[1],R1.v[2],R2.i[1],R2.i[2],R2.v[1],R2.v[2],R3.i[1],R3.i[2],R3.v[1],R3.v[2],load_sc.i[1],load_sc.i[2],time