Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_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_L_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001613/0.001613, allocations: 105.7 kB / 16.27 MB, free: 6.414 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.001886/0.001886, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.408/1.408, allocations: 222.9 MB / 240.9 MB, free: 15.22 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.538/2.538, allocations: 437.1 MB / 0.711 GB, free: 4.48 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 68.23 kB / 0.8699 GB, free: 2.203 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2949/0.2962, allocations: 151.6 MB / 1.018 GB, free: 10.64 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N): time 0.04071/0.337, allocations: 34.84 MB / 1.052 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01927/0.3563, allocations: 11.5 MB / 1.063 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003312/0.3597, allocations: 159.2 kB / 1.063 GB, free: 12 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.01095/0.3707, allocations: 4.253 MB / 1.068 GB, free: 7.734 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.005894/0.3766, allocations: 1.986 MB / 1.069 GB, free: 5.738 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.006636/0.3833, allocations: 2.41 MB / 1.072 GB, free: 3.332 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.5445/0.9279, allocations: 8.462 MB / 1.08 GB, free: 20.39 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01822/0.9461, allocations: 11.2 MB / 1.091 GB, free: 18.34 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006896/0.9531, allocations: 3.728 MB / 1.095 GB, free: 18.14 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008803/0.9619, allocations: 4.184 MB / 1.099 GB, free: 17.67 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.003816/0.9658, allocations: 0.7793 MB / 1.1 GB, free: 17.67 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007849/0.9736, allocations: 2.025 MB / 1.101 GB, free: 17.67 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.006647/0.9803, allocations: 3.056 MB / 1.104 GB, free: 17.47 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.009702/0.99, allocations: 3.406 MB / 1.108 GB, free: 16.32 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.01804/1.008, allocations: 11.92 MB / 1.119 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.313e-06/1.008, allocations: 0 / 1.119 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.454e-06/1.008, allocations: 0 / 1.119 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0004106/1.009, allocations: 1.5 kB / 1.119 GB, free: 12.87 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: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.02122/1.03, allocations: 5.795 MB / 1.125 GB, free: 9.762 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/1.03, allocations: 10.61 kB / 1.125 GB, free: 9.762 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008285/1.038, allocations: 1.061 MB / 1.126 GB, free: 9.43 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008116/1.046, allocations: 3.267 MB / 1.129 GB, free: 7.938 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006118/1.047, allocations: 417.1 kB / 1.13 GB, free: 7.758 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00326/1.05, allocations: 0.5362 MB / 1.13 GB, free: 7.586 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02284/1.073, allocations: 9.072 MB / 1.139 GB, free: 2.301 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002331/1.073, allocations: 38.22 kB / 1.139 GB, free: 2.285 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001708/1.075, allocations: 232.3 kB / 1.139 GB, free: 2.121 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003986/1.075, allocations: 351.6 kB / 1.14 GB, free: 2.047 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01459/1.09, allocations: 6.832 MB / 1.146 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0471/1.137, allocations: 40.1 MB / 1.186 GB, free: 4.516 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003879/1.141, allocations: 3.116 MB / 1.189 GB, free: 1.262 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002683/1.144, allocations: 1.971 MB / 1.191 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 9.022e-05/1.144, allocations: 22 kB / 1.191 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.148e-05/1.144, allocations: 48.56 kB / 1.191 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=179): time 3.587e-06/1.144, allocations: 0 / 1.191 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of matching and sorting (n=182): time 0.02525/1.169, allocations: 9.974 MB / 1.2 GB, free: 5.223 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.953e-05/1.169, allocations: 79.78 kB / 1.2 GB, free: 5.137 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002114/1.171, allocations: 1.526 MB / 1.202 GB, free: 3.566 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001653/1.172, allocations: 57.7 kB / 1.202 GB, free: 3.504 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.001447/1.173, allocations: 2.255 MB / 1.204 GB, free: 1.223 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006096/1.174, allocations: 0.6283 MB / 1.205 GB, free: 0.5977 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006194/1.174, allocations: 403.9 kB / 1.205 GB, free: 200 kB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001287/1.174, allocations: 305.1 kB / 1.205 GB, free: 15.89 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001668/1.176, allocations: 1.179 MB / 1.207 GB, free: 14.71 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002156/1.178, allocations: 1.878 MB / 1.208 GB, free: 12.52 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004236/1.183, allocations: 3.373 MB / 1.212 GB, free: 8.93 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.326e-05/1.183, allocations: 8 kB / 1.212 GB, free: 8.922 MB / 0.92 GB Notification: Performance of matching and sorting (n=285) (initialization): time 0.008007/1.191, allocations: 4.584 MB / 1.216 GB, free: 4.504 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.327e-05/1.191, allocations: 19.98 kB / 1.216 GB, free: 4.484 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.197e-05/1.191, allocations: 20 kB / 1.216 GB, free: 4.465 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003898/1.195, allocations: 1.595 MB / 1.218 GB, free: 2.863 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00129/1.196, allocations: 350.3 kB / 1.218 GB, free: 2.547 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02459/1.221, allocations: 18.62 MB / 1.236 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002635/1.223, allocations: 119.9 kB / 1.236 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005571/1.224, allocations: 92 kB / 1.236 GB, free: 15.24 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 (177): * Single equations (assignments): 173 * 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 {(12,26,30.6%), (6,24,66.7%), (6,16,66.7%), (6,16,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004798/1.229, allocations: 1.894 MB / 1.238 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007601/1.229, allocations: 225.3 kB / 1.239 GB, free: 13.13 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007619/1.237, allocations: 4.083 MB / 1.243 GB, free: 9.078 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.982e-05/1.237, allocations: 29.53 kB / 1.243 GB, free: 9.051 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.736e-05/1.237, allocations: 16 kB / 1.243 GB, free: 9.035 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.208e-05/1.237, allocations: 15.42 kB / 1.243 GB, free: 9.023 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01916/1.256, allocations: 9.476 MB / 1.252 GB, free: 15.42 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.481e-05/1.256, allocations: 4 kB / 1.252 GB, free: 15.42 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009207/1.257, allocations: 183 kB / 1.252 GB, free: 15.25 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003596/1.261, allocations: 1.368 MB / 1.253 GB, free: 13.87 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002062/1.261, allocations: 32 kB / 1.253 GB, free: 13.84 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02245/1.284, allocations: 17.36 MB / 1.27 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.284e-06/1.284, allocations: 17.95 kB / 1.27 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007433/1.291, allocations: 4.068 MB / 1.274 GB, free: 7.84 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001455/1.293, allocations: 0.5218 MB / 1.275 GB, free: 7.297 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006687/1.293, allocations: 36 kB / 1.275 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00143/1.295, allocations: 87.89 kB / 1.275 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005203/1.295, allocations: 168.6 kB / 1.275 GB, free: 7.016 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001325/1.295, allocations: 48 kB / 1.275 GB, free: 6.969 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001675/1.297, allocations: 1.005 MB / 1.276 GB, free: 5.941 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.91e-07/1.297, allocations: 0 / 1.276 GB, free: 5.941 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.003958/1.301, allocations: 0.9844 MB / 1.277 GB, free: 4.957 MB / 0.9825 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 (85): * Single equations (assignments): 81 * 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 {(6,16,66.7%), (6,16,66.7%), (6,24,66.7%), (6,24,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003692/1.301, allocations: 148.5 kB / 1.277 GB, free: 4.812 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.009399/1.311, allocations: 5.194 MB / 1.282 GB, free: 15.65 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/1.311, allocations: 0 / 1.282 GB, free: 15.65 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.004876/1.316, allocations: 2.664 MB / 1.285 GB, free: 12.97 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004348/1.32, allocations: 0.7833 MB / 1.286 GB, free: 12.22 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01986/1.34, allocations: 9.476 MB / 1.295 GB, free: 2.676 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005896/1.346, allocations: 3.67 MB / 1.299 GB, free: 14.97 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000614/1.347, allocations: 123.4 kB / 1.299 GB, free: 14.85 MB / 1.014 GB Notification: Performance of SimCode: time 8.22e-07/1.347, allocations: 0 / 1.299 GB, free: 14.85 MB / 1.014 GB Notification: Performance of Templates: time 0.2045/1.551, allocations: 159.4 MB / 1.454 GB, free: 15.55 MB / 1.17 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches