Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.ThreePhasesBalanced.Lines.Examples.ACLineMedium,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_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,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_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001723/0.001723, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002275/0.002275, allocations: 191.9 kB / 16.14 MB, free: 6.719 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.394/1.394, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.779/2.779, allocations: 461.9 MB / 0.7342 GB, free: 15.01 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 64.69 kB / 0.8984 GB, free: 37.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3646/0.3661, allocations: 157.4 MB / 1.052 GB, free: 8.855 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.01645/0.3826, allocations: 14.69 MB / 1.066 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01547/0.3981, allocations: 10.37 MB / 1.077 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002023/0.4002, allocations: 47.69 kB / 1.077 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.004433/0.4047, allocations: 1.587 MB / 1.078 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.007074/0.4118, allocations: 1.598 MB / 1.08 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002644/0.4144, allocations: 0.6894 MB / 1.08 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.005299/0.4197, allocations: 3.398 MB / 1.084 GB, free: 8.375 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002793/0.4226, allocations: 1.352 MB / 1.085 GB, free: 6.988 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002776/0.4254, allocations: 1.39 MB / 1.086 GB, free: 5.594 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002497/0.4279, allocations: 1.171 MB / 1.088 GB, free: 4.418 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0005839/0.4285, allocations: 100 kB / 1.088 GB, free: 4.32 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002459/0.4309, allocations: 0.8851 MB / 1.089 GB, free: 3.434 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.001031/0.432, allocations: 0.5412 MB / 1.089 GB, free: 2.891 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.002222/0.4342, allocations: 0.8858 MB / 1.09 GB, free: 2 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.004518/0.4388, allocations: 2.725 MB / 1.093 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.4388, allocations: 0 / 1.093 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.403e-06/0.4388, allocations: 0 / 1.093 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.785e-05/0.4389, allocations: 0 / 1.093 GB, free: 15.27 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.004583/0.4435, allocations: 2.179 MB / 1.095 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.4435, allocations: 15.97 kB / 1.095 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01108/0.4546, allocations: 2.108 MB / 1.097 GB, free: 10.9 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002893/0.4575, allocations: 1.21 MB / 1.098 GB, free: 9.637 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.094e-05/0.4576, allocations: 86.69 kB / 1.098 GB, free: 9.551 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002671/0.4579, allocations: 124.1 kB / 1.098 GB, free: 9.43 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005619/0.4635, allocations: 2.666 MB / 1.101 GB, free: 6.613 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.159e-05/0.4636, allocations: 19.83 kB / 1.101 GB, free: 6.594 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001959/0.4638, allocations: 59.97 kB / 1.101 GB, free: 6.535 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006609/0.4645, allocations: 190.1 kB / 1.101 GB, free: 6.348 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007109/0.4716, allocations: 2.791 MB / 1.104 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01592/0.4876, allocations: 10.5 MB / 1.114 GB, free: 8.465 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00601/0.4936, allocations: 2.332 MB / 1.116 GB, free: 6.105 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002923/0.4966, allocations: 1.276 MB / 1.118 GB, free: 4.828 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 7.688e-05/0.4967, allocations: 13 kB / 1.118 GB, free: 4.812 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.669e-05/0.4967, allocations: 43.56 kB / 1.118 GB, free: 4.762 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=89): time 2.465e-06/0.4967, allocations: 4 kB / 1.118 GB, free: 4.758 MB / 0.8731 GB Notification: Performance of matching and sorting (n=153): time 0.05997/0.5567, allocations: 16.48 MB / 1.134 GB, free: 4.125 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.918e-05/0.5568, allocations: 72.66 kB / 1.134 GB, free: 4.039 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002127/0.5589, allocations: 1.172 MB / 1.135 GB, free: 2.855 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0002679/0.5592, allocations: 53.7 kB / 1.135 GB, free: 2.797 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006071/0.5598, allocations: 0.7397 MB / 1.136 GB, free: 2.051 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006684/0.5605, allocations: 0.516 MB / 1.136 GB, free: 1.527 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007377/0.5613, allocations: 291.4 kB / 1.136 GB, free: 1.234 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.5614, allocations: 309.1 kB / 1.137 GB, free: 0.9297 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003441/0.5649, allocations: 1.503 MB / 1.138 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003732/0.5686, allocations: 1.784 MB / 1.14 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007472/0.5761, allocations: 3.369 MB / 1.143 GB, free: 10.08 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.576e-05/0.5762, allocations: 4 kB / 1.143 GB, free: 10.07 MB / 0.9044 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01432/0.5905, allocations: 5.273 MB / 1.148 GB, free: 4.762 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.637e-05/0.5906, allocations: 8 kB / 1.148 GB, free: 4.754 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.308e-05/0.5906, allocations: 8 kB / 1.148 GB, free: 4.746 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007335/0.598, allocations: 1.88 MB / 1.15 GB, free: 2.844 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002025/0.6, allocations: 419.2 kB / 1.151 GB, free: 2.434 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03113/0.6312, allocations: 22.18 MB / 1.172 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002828/0.6341, allocations: 311.5 kB / 1.173 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004169/0.6345, allocations: 71.95 kB / 1.173 GB, free: 10.82 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (2,8,100.0%), (3,17,100.0%), (3,17,100.0%), (2,16,100.0%), (2,16,100.0%), (2,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001333/0.6359, allocations: 457.5 kB / 1.173 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006157/0.6365, allocations: 177.9 kB / 1.173 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01421/0.6507, allocations: 5.327 MB / 1.178 GB, free: 4.809 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.553e-05/0.6508, allocations: 16 kB / 1.178 GB, free: 4.793 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-05/0.6508, allocations: 20 kB / 1.179 GB, free: 4.773 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.654e-05/0.6509, allocations: 7.969 kB / 1.179 GB, free: 4.766 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01942/0.6703, allocations: 7.43 MB / 1.186 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-05/0.6704, allocations: 0 / 1.186 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001674/0.672, allocations: 347.4 kB / 1.186 GB, free: 12.87 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006566/0.6786, allocations: 1.712 MB / 1.188 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002504/0.6789, allocations: 43.91 kB / 1.188 GB, free: 11.09 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03019/0.7091, allocations: 21.35 MB / 1.209 GB, free: 4.68 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.644e-06/0.7092, allocations: 7.938 kB / 1.209 GB, free: 4.672 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01343/0.7226, allocations: 4.885 MB / 1.213 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001635/0.7243, allocations: 0.4909 MB / 1.214 GB, free: 15.19 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000769/0.7251, allocations: 28.09 kB / 1.214 GB, free: 15.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002545/0.7277, allocations: 323.4 kB / 1.214 GB, free: 14.84 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000789/0.7285, allocations: 149 kB / 1.214 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003206/0.7288, allocations: 55.97 kB / 1.214 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001993/0.7309, allocations: 0.7899 MB / 1.215 GB, free: 13.85 MB / 0.9825 GB Notification: Performance of sort global known variables: time 3.01e-07/0.7309, allocations: 0 / 1.215 GB, free: 13.85 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.003416/0.7343, allocations: 0.6523 MB / 1.216 GB, free: 13.2 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005064/0.7348, allocations: 151.1 kB / 1.216 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.01395/0.7488, allocations: 5.124 MB / 1.221 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.357e-05/0.7489, allocations: 0 / 1.221 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.007692/0.7566, allocations: 3.362 MB / 1.224 GB, free: 4.348 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003461/0.7601, allocations: 0.5127 MB / 1.225 GB, free: 3.836 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01065/0.7707, allocations: 4.991 MB / 1.23 GB, free: 14.8 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001928/0.7727, allocations: 1.561 MB / 1.231 GB, free: 13.21 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001991/0.7747, allocations: 390.4 kB / 1.232 GB, free: 12.82 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000477/0.7752, allocations: 103.4 kB / 1.232 GB, free: 12.72 MB / 0.9981 GB Notification: Performance of SimCode: time 9.12e-07/0.7752, allocations: 0 / 1.232 GB, free: 12.72 MB / 0.9981 GB Notification: Performance of Templates: time 0.6785/1.454, allocations: 43.31 MB / 1.274 GB, free: 169.2 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches