Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.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_10_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_10_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.001449/0.001449, allocations: 112.3 kB / 16.41 MB, free: 6.008 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.001685/0.001685, allocations: 185 kB / 17.34 MB, free: 5.629 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.389/1.389, allocations: 222.9 MB / 241 MB, free: 15.21 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.51/2.51, allocations: 437 MB / 0.7112 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 63.84 kB / 1.019 GB, free: 9.395 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9259/0.9275, allocations: 151.6 MB / 1.167 GB, free: 3.848 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.03934/0.9669, allocations: 37.96 MB / 1.204 GB, free: 13.76 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.01861/0.9855, allocations: 11 MB / 1.215 GB, free: 2.734 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004427/0.99, allocations: 151.3 kB / 1.215 GB, free: 2.586 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.01119/1.001, allocations: 4.37 MB / 1.22 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.00767/1.009, allocations: 2.332 MB / 1.222 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.006635/1.016, allocations: 2.162 MB / 1.224 GB, free: 9.703 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.01289/1.029, allocations: 9.311 MB / 1.233 GB, free: 372 kB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01886/1.047, allocations: 11.25 MB / 1.244 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009264/1.057, allocations: 4.066 MB / 1.248 GB, free: 0.9141 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009246/1.066, allocations: 4.506 MB / 1.252 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.003543/1.07, allocations: 0.8281 MB / 1.253 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006378/1.076, allocations: 1.58 MB / 1.255 GB, free: 9.984 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.006369/1.082, allocations: 3.154 MB / 1.258 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.01003/1.093, allocations: 3.653 MB / 1.261 GB, free: 3.156 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.01876/1.111, allocations: 12.31 MB / 1.273 GB, free: 6.812 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 1.009e-05/1.111, allocations: 0 / 1.273 GB, free: 6.812 MB / 0.9981 GB Notification: Performance of FrontEnd: time 5.992e-06/1.111, allocations: 0 / 1.273 GB, free: 6.812 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0005235/1.112, allocations: 7.875 kB / 1.273 GB, free: 6.805 MB / 0.9981 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.02116/1.133, allocations: 6.322 MB / 1.28 GB, free: 420 kB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/1.133, allocations: 8.922 kB / 1.28 GB, free: 412 kB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006923/1.14, allocations: 1.071 MB / 1.281 GB, free: 15.32 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01056/1.151, allocations: 3.606 MB / 1.284 GB, free: 11.66 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004803/1.151, allocations: 423.8 kB / 1.285 GB, free: 11.25 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00253/1.154, allocations: 0.547 MB / 1.285 GB, free: 10.7 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02137/1.175, allocations: 9.378 MB / 1.294 GB, free: 0.9922 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001356/1.175, allocations: 19.81 kB / 1.294 GB, free: 0.9727 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009002/1.176, allocations: 248 kB / 1.295 GB, free: 0.7305 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005514/1.177, allocations: 418.9 kB / 1.295 GB, free: 328 kB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01405/1.191, allocations: 7.127 MB / 1.302 GB, free: 9.184 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05396/1.245, allocations: 40.99 MB / 1.342 GB, free: 12.45 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006214/1.251, allocations: 3.112 MB / 1.345 GB, free: 9.328 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003741/1.255, allocations: 2.157 MB / 1.347 GB, free: 7.172 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002154/1.255, allocations: 22 kB / 1.347 GB, free: 7.148 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.204e-05/1.255, allocations: 56.56 kB / 1.347 GB, free: 7.086 MB / 1.076 GB Notification: Performance of pre-optimization done (n=209): time 5.691e-06/1.255, allocations: 0 / 1.347 GB, free: 7.086 MB / 1.076 GB Notification: Performance of matching and sorting (n=212): time 0.02531/1.281, allocations: 10.56 MB / 1.357 GB, free: 12.43 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.61e-05/1.281, allocations: 85.34 kB / 1.358 GB, free: 12.33 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003498/1.284, allocations: 2.005 MB / 1.359 GB, free: 10.3 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 0.0003086/1.285, allocations: 61.7 kB / 1.36 GB, free: 10.24 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 0.001662/1.286, allocations: 2.404 MB / 1.362 GB, free: 7.805 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008947/1.287, allocations: 0.7278 MB / 1.363 GB, free: 7.066 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001234/1.288, allocations: 477.2 kB / 1.363 GB, free: 6.594 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001347/1.289, allocations: 305.1 kB / 1.363 GB, free: 6.293 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002416/1.291, allocations: 1.372 MB / 1.365 GB, free: 4.918 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002919/1.294, allocations: 2.112 MB / 1.367 GB, free: 2.492 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005183/1.299, allocations: 3.762 MB / 1.37 GB, free: 14.42 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.44e-05/1.299, allocations: 8 kB / 1.37 GB, free: 14.41 MB / 1.107 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.008814/1.308, allocations: 5.076 MB / 1.375 GB, free: 9.309 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 7.023e-05/1.308, allocations: 18.81 kB / 1.375 GB, free: 9.293 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-05/1.308, allocations: 20 kB / 1.375 GB, free: 9.273 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004056/1.312, allocations: 1.59 MB / 1.377 GB, free: 7.676 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002187/1.314, allocations: 455.2 kB / 1.377 GB, free: 7.23 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0239/1.338, allocations: 18.58 MB / 1.396 GB, free: 4.09 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002683/1.341, allocations: 143.9 kB / 1.396 GB, free: 3.949 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005294/1.342, allocations: 108 kB / 1.396 GB, free: 3.844 MB / 1.123 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.005015/1.347, allocations: 1.938 MB / 1.398 GB, free: 1.895 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001145/1.348, allocations: 288.7 kB / 1.398 GB, free: 1.609 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008978/1.357, allocations: 4.455 MB / 1.402 GB, free: 13.12 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.311e-05/1.357, allocations: 20 kB / 1.402 GB, free: 13.1 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.643e-05/1.357, allocations: 16 kB / 1.402 GB, free: 13.09 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.202e-05/1.357, allocations: 11.95 kB / 1.402 GB, free: 13.07 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01979/1.377, allocations: 9.664 MB / 1.412 GB, free: 3.266 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-05/1.377, allocations: 8.094 kB / 1.412 GB, free: 3.258 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001062/1.378, allocations: 235.6 kB / 1.412 GB, free: 3.027 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00343/1.381, allocations: 1.427 MB / 1.413 GB, free: 1.59 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001793/1.382, allocations: 40 kB / 1.413 GB, free: 1.551 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02376/1.405, allocations: 18.57 MB / 1.432 GB, free: 14.42 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.813e-06/1.405, allocations: 8.188 kB / 1.432 GB, free: 14.41 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008581/1.414, allocations: 4.552 MB / 1.436 GB, free: 9.766 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002131/1.416, allocations: 0.6265 MB / 1.437 GB, free: 9.117 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009154/1.417, allocations: 47.98 kB / 1.437 GB, free: 9.07 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001811/1.419, allocations: 115.9 kB / 1.437 GB, free: 8.957 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006253/1.42, allocations: 173.6 kB / 1.437 GB, free: 8.789 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002053/1.42, allocations: 60 kB / 1.437 GB, free: 8.73 MB / 1.17 GB Notification: Performance of sorting global known variables: time 0.002902/1.423, allocations: 1.323 MB / 1.438 GB, free: 7.398 MB / 1.17 GB Notification: Performance of sort global known variables: time 3.31e-07/1.423, allocations: 0 / 1.438 GB, free: 7.398 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.004707/1.427, allocations: 1.141 MB / 1.439 GB, free: 6.258 MB / 1.17 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.0004623/1.428, allocations: 160.4 kB / 1.44 GB, free: 6.094 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.008245/1.436, allocations: 4.724 MB / 1.444 GB, free: 1.324 MB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 1.027e-05/1.436, allocations: 0 / 1.444 GB, free: 1.324 MB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 0.004972/1.441, allocations: 2.91 MB / 1.447 GB, free: 14.37 MB / 1.186 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005604/1.447, allocations: 0.8913 MB / 1.448 GB, free: 13.49 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02586/1.473, allocations: 10.05 MB / 1.458 GB, free: 3.355 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006029/1.479, allocations: 3.788 MB / 1.461 GB, free: 15.53 MB / 1.201 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008713/1.48, allocations: 167.4 kB / 1.462 GB, free: 15.36 MB / 1.201 GB Notification: Performance of SimCode: time 9.12e-07/1.48, allocations: 0 / 1.462 GB, free: 15.36 MB / 1.201 GB Notification: Performance of Templates: time 0.8193/2.299, allocations: 172.1 MB / 1.63 GB, free: 304.8 MB / 1.279 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches