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.001603/0.001603, allocations: 105.9 kB / 16.27 MB, free: 6.348 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.001827/0.001827, allocations: 187.6 kB / 17.2 MB, free: 5.949 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.393/1.393, allocations: 222.9 MB / 240.9 MB, free: 15.23 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.462/2.462, allocations: 437 MB / 0.711 GB, free: 4.527 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 71.69 kB / 0.8699 GB, free: 2.23 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3075/0.309, allocations: 151.6 MB / 1.018 GB, free: 10.67 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04402/0.3531, allocations: 37.96 MB / 1.055 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01988/0.373, allocations: 10.99 MB / 1.066 GB, free: 9.562 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004511/0.3776, allocations: 155.2 kB / 1.066 GB, free: 9.41 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0114/0.3891, allocations: 4.361 MB / 1.07 GB, free: 5.039 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.006964/0.396, allocations: 2.219 MB / 1.072 GB, free: 2.809 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.006283/0.4024, allocations: 2.173 MB / 1.074 GB, free: 0.6406 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.5506/0.953, allocations: 9.275 MB / 1.084 GB, free: 20.43 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01919/0.9722, allocations: 11.35 MB / 1.095 GB, free: 18.34 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01003/0.9823, allocations: 3.979 MB / 1.098 GB, free: 18.08 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01644/0.9988, allocations: 4.51 MB / 1.103 GB, free: 17.57 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.005575/1.004, allocations: 0.8257 MB / 1.104 GB, free: 17.57 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007782/1.012, allocations: 1.586 MB / 1.105 GB, free: 17.57 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.007733/1.02, allocations: 3.153 MB / 1.108 GB, free: 16.96 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.01361/1.034, allocations: 3.653 MB / 1.112 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.02096/1.055, allocations: 12.24 MB / 1.124 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.543e-06/1.055, allocations: 0 / 1.124 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.954e-06/1.055, allocations: 0 / 1.124 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0004329/1.055, allocations: 5.094 kB / 1.124 GB, free: 11.08 MB / 0.8419 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.02429/1.079, allocations: 6.317 MB / 1.13 GB, free: 7.809 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/1.079, allocations: 11.12 kB / 1.13 GB, free: 7.809 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008559/1.088, allocations: 1.072 MB / 1.131 GB, free: 7.418 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009615/1.098, allocations: 3.419 MB / 1.134 GB, free: 5.395 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004854/1.098, allocations: 426.2 kB / 1.135 GB, free: 5.211 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003244/1.101, allocations: 0.5406 MB / 1.135 GB, free: 5.035 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02624/1.128, allocations: 9.372 MB / 1.144 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002198/1.128, allocations: 21.25 kB / 1.145 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002017/1.13, allocations: 247.3 kB / 1.145 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007149/1.131, allocations: 425.6 kB / 1.145 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01846/1.149, allocations: 7.12 MB / 1.152 GB, free: 9.516 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06138/1.211, allocations: 41.32 MB / 1.192 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005016/1.216, allocations: 3.105 MB / 1.196 GB, free: 9.949 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003123/1.219, allocations: 2.129 MB / 1.198 GB, free: 7.82 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001212/1.219, allocations: 25.05 kB / 1.198 GB, free: 7.801 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.803e-05/1.219, allocations: 64.56 kB / 1.198 GB, free: 7.727 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=209): time 4.839e-06/1.219, allocations: 0 / 1.198 GB, free: 7.727 MB / 0.9044 GB Notification: Performance of matching and sorting (n=212): time 0.02559/1.245, allocations: 10.56 MB / 1.208 GB, free: 13.14 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.965e-05/1.245, allocations: 77.34 kB / 1.208 GB, free: 13.05 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002982/1.248, allocations: 2.002 MB / 1.21 GB, free: 11.03 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.000386/1.248, allocations: 65.7 kB / 1.21 GB, free: 10.96 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.001604/1.25, allocations: 2.408 MB / 1.212 GB, free: 8.531 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008826/1.251, allocations: 0.7282 MB / 1.213 GB, free: 7.809 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007812/1.251, allocations: 481.2 kB / 1.214 GB, free: 7.332 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001015/1.252, allocations: 305.1 kB / 1.214 GB, free: 7.031 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001973/1.254, allocations: 1.375 MB / 1.215 GB, free: 5.656 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002448/1.256, allocations: 2.101 MB / 1.217 GB, free: 3.242 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004872/1.261, allocations: 3.765 MB / 1.221 GB, free: 15.26 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.7e-05/1.261, allocations: 8 kB / 1.221 GB, free: 15.25 MB / 0.9356 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.008688/1.27, allocations: 5.081 MB / 1.226 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.656e-05/1.27, allocations: 12.22 kB / 1.226 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.068e-05/1.27, allocations: 28 kB / 1.226 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003612/1.273, allocations: 1.588 MB / 1.228 GB, free: 8.707 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001962/1.275, allocations: 456.2 kB / 1.228 GB, free: 8.293 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.023/1.298, allocations: 18.59 MB / 1.246 GB, free: 5.207 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003146/1.302, allocations: 143.9 kB / 1.246 GB, free: 5.066 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006109/1.302, allocations: 108 kB / 1.246 GB, free: 4.961 MB / 0.9512 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.004646/1.307, allocations: 1.946 MB / 1.248 GB, free: 3.035 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000819/1.308, allocations: 288.6 kB / 1.249 GB, free: 2.75 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007131/1.315, allocations: 4.446 MB / 1.253 GB, free: 14.29 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.321e-05/1.315, allocations: 24.09 kB / 1.253 GB, free: 14.27 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.237e-05/1.315, allocations: 28.06 kB / 1.253 GB, free: 14.24 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.792e-05/1.315, allocations: 15.94 kB / 1.253 GB, free: 14.22 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0167/1.332, allocations: 9.662 MB / 1.262 GB, free: 4.449 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.484e-05/1.332, allocations: 8 kB / 1.262 GB, free: 4.441 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001129/1.333, allocations: 236 kB / 1.263 GB, free: 4.215 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003325/1.336, allocations: 1.442 MB / 1.264 GB, free: 2.762 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002628/1.337, allocations: 36 kB / 1.264 GB, free: 2.727 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02294/1.359, allocations: 18.57 MB / 1.282 GB, free: 15.61 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.168e-06/1.36, allocations: 7.938 kB / 1.282 GB, free: 15.6 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00764/1.367, allocations: 4.54 MB / 1.287 GB, free: 10.97 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001818/1.369, allocations: 0.6304 MB / 1.287 GB, free: 10.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005858/1.37, allocations: 47.89 kB / 1.287 GB, free: 10.27 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001476/1.371, allocations: 115.9 kB / 1.287 GB, free: 10.16 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005558/1.372, allocations: 177.4 kB / 1.288 GB, free: 9.98 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001451/1.372, allocations: 63.98 kB / 1.288 GB, free: 9.918 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001855/1.374, allocations: 1.315 MB / 1.289 GB, free: 8.594 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/1.374, allocations: 0 / 1.289 GB, free: 8.594 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.004553/1.378, allocations: 1.145 MB / 1.29 GB, free: 7.449 MB / 0.9981 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.0004282/1.379, allocations: 159 kB / 1.29 GB, free: 7.285 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01002/1.389, allocations: 5.919 MB / 1.296 GB, free: 1.324 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.155e-05/1.389, allocations: 5.781 kB / 1.296 GB, free: 1.32 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.004788/1.394, allocations: 2.917 MB / 1.299 GB, free: 14.35 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004999/1.399, allocations: 0.8831 MB / 1.3 GB, free: 13.48 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02306/1.422, allocations: 10.18 MB / 1.31 GB, free: 3.23 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006849/1.429, allocations: 3.792 MB / 1.313 GB, free: 15.41 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008767/1.43, allocations: 163.4 kB / 1.313 GB, free: 15.25 MB / 1.029 GB Notification: Performance of SimCode: time 3.226e-06/1.43, allocations: 4 kB / 1.313 GB, free: 15.24 MB / 1.029 GB Notification: Performance of Templates: time 0.2269/1.656, allocations: 171.8 MB / 1.481 GB, free: 3.676 MB / 1.186 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