Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001818/0.001818, allocations: 105.3 kB / 15.98 MB, free: 6.355 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.001525/0.001525, allocations: 195.9 kB / 16.91 MB, free: 6.188 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.445/1.445, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.762/2.762, allocations: 482.4 MB / 0.755 GB, free: 7.207 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.00189/0.00189, allocations: 64.25 kB / 0.924 GB, free: 328 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8925/0.8944, allocations: 162.2 MB / 1.082 GB, free: 1.645 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.05005/0.9445, allocations: 37.61 MB / 1.119 GB, free: 8.254 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.02458/0.9691, allocations: 10.89 MB / 1.13 GB, free: 0.7656 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006229/0.9754, allocations: 137.4 kB / 1.13 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.01276/0.9882, allocations: 4.089 MB / 1.134 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.009728/0.998, allocations: 2.053 MB / 1.136 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.007584/1.006, allocations: 1.96 MB / 1.138 GB, free: 11.37 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.01597/1.022, allocations: 9.309 MB / 1.147 GB, free: 6.121 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02476/1.046, allocations: 13.58 MB / 1.16 GB, free: 15.18 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009345/1.056, allocations: 4.053 MB / 1.164 GB, free: 11.23 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009705/1.066, allocations: 4.728 MB / 1.169 GB, free: 6.492 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.003325/1.069, allocations: 0.8203 MB / 1.17 GB, free: 5.672 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006265/1.075, allocations: 1.58 MB / 1.171 GB, free: 4.09 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.006427/1.082, allocations: 3.154 MB / 1.174 GB, free: 0.9297 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.01002/1.092, allocations: 3.657 MB / 1.178 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0165/1.108, allocations: 10.53 MB / 1.188 GB, free: 2.699 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 1.145e-05/1.108, allocations: 4 kB / 1.188 GB, free: 2.695 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.964e-06/1.108, allocations: 0 / 1.188 GB, free: 2.695 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0004708/1.109, allocations: 0 / 1.188 GB, free: 2.695 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: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.02005/1.129, allocations: 6.318 MB / 1.194 GB, free: 12.3 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/1.129, allocations: 8.031 kB / 1.194 GB, free: 12.29 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007136/1.136, allocations: 1.063 MB / 1.195 GB, free: 11.22 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008987/1.145, allocations: 3.415 MB / 1.199 GB, free: 7.754 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000541/1.146, allocations: 431.7 kB / 1.199 GB, free: 7.332 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002366/1.148, allocations: 0.5471 MB / 1.2 GB, free: 6.785 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02535/1.173, allocations: 9.377 MB / 1.209 GB, free: 13.07 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002893/1.174, allocations: 15.88 kB / 1.209 GB, free: 13.06 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001988/1.176, allocations: 244 kB / 1.209 GB, free: 12.82 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008311/1.177, allocations: 422.8 kB / 1.209 GB, free: 12.41 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01752/1.194, allocations: 7.123 MB / 1.216 GB, free: 5.273 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06209/1.256, allocations: 41.32 MB / 1.257 GB, free: 8.207 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006021/1.262, allocations: 3.1 MB / 1.26 GB, free: 5.098 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003666/1.266, allocations: 2.137 MB / 1.262 GB, free: 2.969 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002/1.266, allocations: 22 kB / 1.262 GB, free: 2.949 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.827e-05/1.266, allocations: 60.5 kB / 1.262 GB, free: 2.879 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=209): time 4.148e-06/1.266, allocations: 4 kB / 1.262 GB, free: 2.875 MB / 0.9825 GB Notification: Performance of matching and sorting (n=212): time 0.02832/1.295, allocations: 10.55 MB / 1.272 GB, free: 8.227 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.51e-05/1.295, allocations: 81.28 kB / 1.272 GB, free: 8.137 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004281/1.299, allocations: 2.009 MB / 1.274 GB, free: 6.109 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003576/1.299, allocations: 61.7 kB / 1.274 GB, free: 6.043 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002247/1.302, allocations: 2.404 MB / 1.277 GB, free: 3.605 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001071/1.303, allocations: 0.7278 MB / 1.277 GB, free: 2.867 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001211/1.304, allocations: 481.2 kB / 1.278 GB, free: 2.391 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001482/1.304, allocations: 305.1 kB / 1.278 GB, free: 2.09 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002409/1.307, allocations: 1.372 MB / 1.279 GB, free: 0.7148 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00318/1.31, allocations: 2.108 MB / 1.281 GB, free: 14.29 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005821/1.316, allocations: 3.766 MB / 1.285 GB, free: 10.21 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-05/1.316, allocations: 4 kB / 1.285 GB, free: 10.21 MB / 1.014 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.009751/1.325, allocations: 5.068 MB / 1.29 GB, free: 5.113 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 5.588e-05/1.325, allocations: 20.98 kB / 1.29 GB, free: 5.094 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.275e-05/1.326, allocations: 20 kB / 1.29 GB, free: 5.074 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004001/1.33, allocations: 1.602 MB / 1.292 GB, free: 3.465 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001891/1.331, allocations: 455.1 kB / 1.292 GB, free: 3.023 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02743/1.359, allocations: 18.59 MB / 1.31 GB, free: 15.88 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002567/1.361, allocations: 143.9 kB / 1.31 GB, free: 15.73 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005161/1.362, allocations: 108 kB / 1.311 GB, free: 15.63 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (231): * Single equations (assignments): 227 * 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 {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004433/1.366, allocations: 1.946 MB / 1.312 GB, free: 13.67 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009626/1.367, allocations: 284.7 kB / 1.313 GB, free: 13.39 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009084/1.377, allocations: 4.455 MB / 1.317 GB, free: 8.906 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.299e-05/1.377, allocations: 23.94 kB / 1.317 GB, free: 8.883 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.291e-05/1.377, allocations: 16 kB / 1.317 GB, free: 8.867 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.52e-05/1.377, allocations: 11.95 kB / 1.317 GB, free: 8.855 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02106/1.398, allocations: 9.664 MB / 1.327 GB, free: 15.04 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.117e-05/1.398, allocations: 8.125 kB / 1.327 GB, free: 15.04 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001135/1.399, allocations: 231.6 kB / 1.327 GB, free: 14.81 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003745/1.403, allocations: 1.439 MB / 1.328 GB, free: 13.36 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000237/1.403, allocations: 40 kB / 1.328 GB, free: 13.32 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02922/1.432, allocations: 18.58 MB / 1.346 GB, free: 10.17 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.614e-06/1.432, allocations: 4 kB / 1.346 GB, free: 10.17 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009318/1.442, allocations: 4.541 MB / 1.351 GB, free: 5.543 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001979/1.444, allocations: 0.6304 MB / 1.351 GB, free: 4.891 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008254/1.444, allocations: 43.94 kB / 1.351 GB, free: 4.848 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00169/1.446, allocations: 119.8 kB / 1.352 GB, free: 4.73 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006147/1.447, allocations: 177.6 kB / 1.352 GB, free: 4.555 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001514/1.447, allocations: 56 kB / 1.352 GB, free: 4.5 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.002365/1.449, allocations: 1.327 MB / 1.353 GB, free: 3.164 MB / 1.076 GB Notification: Performance of sort global known variables: time 3.31e-07/1.449, allocations: 4 kB / 1.353 GB, free: 3.16 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.003821/1.453, allocations: 1.141 MB / 1.354 GB, free: 2.02 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (107): * Single equations (assignments): 103 * 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 {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003645/1.454, allocations: 163 kB / 1.354 GB, free: 1.852 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.01092/1.464, allocations: 5.907 MB / 1.36 GB, free: 11.9 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/1.465, allocations: 192 / 1.36 GB, free: 11.9 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.00503/1.47, allocations: 2.929 MB / 1.363 GB, free: 8.91 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004352/1.474, allocations: 0.8833 MB / 1.364 GB, free: 8.039 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02387/1.498, allocations: 12.55 MB / 1.376 GB, free: 11.4 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005612/1.503, allocations: 3.78 MB / 1.38 GB, free: 7.59 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008518/1.504, allocations: 175.4 kB / 1.38 GB, free: 7.422 MB / 1.107 GB Notification: Performance of SimCode: time 1.273e-06/1.504, allocations: 0 / 1.38 GB, free: 7.422 MB / 1.107 GB Notification: Performance of Templates: time 0.7732/2.278, allocations: 171.8 MB / 1.548 GB, free: 407.9 MB / 1.264 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches