Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.ThreePhasesBalanced.Lines.Examples.ACLine,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_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,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_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008494/0.0008493, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 179.3 kB / 16.92 MB, free: 6.652 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.436/1.436, allocations: 223.3 MB / 241 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.796/2.796, allocations: 437.8 MB / 0.7128 GB, free: 6.988 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003579/0.0003581, allocations: 20 kB / 0.8735 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6955/0.6959, allocations: 153.8 MB / 1.024 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01472/0.7107, allocations: 13.43 MB / 1.037 GB, free: 2.398 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.01361/0.7243, allocations: 9.257 MB / 1.046 GB, free: 9.113 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001449/0.7258, allocations: 55.62 kB / 1.046 GB, free: 9.059 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001161/0.727, allocations: 277.8 kB / 1.046 GB, free: 8.785 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.004521/0.7315, allocations: 1.408 MB / 1.048 GB, free: 7.375 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001947/0.7335, allocations: 0.6901 MB / 1.048 GB, free: 6.688 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.003973/0.7375, allocations: 3.168 MB / 1.051 GB, free: 3.508 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003753/0.7412, allocations: 1.988 MB / 1.053 GB, free: 1.469 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001665/0.7429, allocations: 0.8674 MB / 1.054 GB, free: 0.5977 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001853/0.7448, allocations: 1.062 MB / 1.055 GB, free: 15.53 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0003767/0.7452, allocations: 72 kB / 1.055 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001901/0.7471, allocations: 0.8539 MB / 1.056 GB, free: 14.6 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0007774/0.7479, allocations: 0.5139 MB / 1.057 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.001427/0.7493, allocations: 0.8447 MB / 1.057 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.002706/0.752, allocations: 2.143 MB / 1.059 GB, free: 11.08 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.7521, allocations: 0 / 1.059 GB, free: 11.08 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.334e-06/0.7521, allocations: 0 / 1.059 GB, free: 11.08 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.84e-05/0.7522, allocations: 4 kB / 1.059 GB, free: 11.08 MB / 0.8106 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.004102/0.7563, allocations: 1.809 MB / 1.061 GB, free: 9.215 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.7563, allocations: 15.97 kB / 1.061 GB, free: 9.199 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01235/0.7687, allocations: 2.152 MB / 1.063 GB, free: 7.043 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002786/0.7715, allocations: 1.197 MB / 1.065 GB, free: 5.789 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.623e-05/0.7716, allocations: 90.67 kB / 1.065 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000483/0.7721, allocations: 128 kB / 1.065 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006822/0.779, allocations: 2.694 MB / 1.067 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.285e-05/0.779, allocations: 15.94 kB / 1.067 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000251/0.7793, allocations: 47.98 kB / 1.067 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006848/0.78, allocations: 182.1 kB / 1.068 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008293/0.7883, allocations: 2.85 MB / 1.07 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01581/0.8041, allocations: 10.57 MB / 1.081 GB, free: 4.484 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007344/0.8115, allocations: 2.568 MB / 1.083 GB, free: 1.855 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003436/0.815, allocations: 1.307 MB / 1.084 GB, free: 0.5391 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.693e-05/0.8151, allocations: 13 kB / 1.084 GB, free: 0.5273 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.308e-05/0.8151, allocations: 43.5 kB / 1.085 GB, free: 488 kB / 0.8262 GB Notification: Performance of pre-optimization done (n=89): time 2.876e-06/0.8152, allocations: 0 / 1.085 GB, free: 488 kB / 0.8262 GB Notification: Performance of matching and sorting (n=131): time 0.04899/0.8642, allocations: 13.46 MB / 1.098 GB, free: 2.797 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.316e-05/0.8642, allocations: 64.72 kB / 1.098 GB, free: 2.723 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001652/0.8659, allocations: 1.113 MB / 1.099 GB, free: 1.594 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0002464/0.8662, allocations: 49.7 kB / 1.099 GB, free: 1.539 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005276/0.8667, allocations: 0.7155 MB / 1.1 GB, free: 0.8164 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005339/0.8672, allocations: 461.4 kB / 1.1 GB, free: 368 kB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002442/0.8675, allocations: 105.7 kB / 1.1 GB, free: 256 kB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001673/0.8677, allocations: 361.9 kB / 1.1 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003598/0.8713, allocations: 1.358 MB / 1.102 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003785/0.8751, allocations: 1.628 MB / 1.103 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007298/0.8824, allocations: 3.033 MB / 1.106 GB, free: 9.676 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.845e-06/0.8825, allocations: 0 / 1.106 GB, free: 9.676 MB / 0.8575 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01224/0.8947, allocations: 4.481 MB / 1.111 GB, free: 5.141 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.339e-05/0.8948, allocations: 8 kB / 1.111 GB, free: 5.133 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.732e-05/0.8948, allocations: 11.94 kB / 1.111 GB, free: 5.121 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005462/0.9003, allocations: 1.439 MB / 1.112 GB, free: 3.641 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002215/0.9025, allocations: 443.2 kB / 1.113 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0254/0.9279, allocations: 24.56 MB / 1.137 GB, free: 8.895 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002808/0.9308, allocations: 315.5 kB / 1.137 GB, free: 8.586 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002601/0.931, allocations: 55.97 kB / 1.137 GB, free: 8.531 MB / 0.8887 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 (99): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(2,4,100.0%), (1,1,100.0%), (2,4,100.0%), (3,9,100.0%), (1,1,100.0%), (1,1,100.0%), (3,9,100.0%), (3,9,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009513/0.932, allocations: 447 kB / 1.137 GB, free: 8.086 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003995/0.9324, allocations: 166 kB / 1.137 GB, free: 7.922 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01232/0.9447, allocations: 4.496 MB / 1.142 GB, free: 3.371 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.594e-05/0.9448, allocations: 12 kB / 1.142 GB, free: 3.359 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.698e-05/0.9448, allocations: 12 kB / 1.142 GB, free: 3.348 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.768e-05/0.9449, allocations: 3.984 kB / 1.142 GB, free: 3.344 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01583/0.9607, allocations: 6.841 MB / 1.149 GB, free: 12.33 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/0.9607, allocations: 0 / 1.149 GB, free: 12.33 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001942/0.9627, allocations: 391.7 kB / 1.149 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004891/0.9676, allocations: 1.306 MB / 1.15 GB, free: 10.6 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001728/0.9678, allocations: 35.97 kB / 1.15 GB, free: 10.57 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02365/0.9915, allocations: 23.53 MB / 1.173 GB, free: 1.293 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.561e-06/0.9915, allocations: 4.031 kB / 1.173 GB, free: 1.289 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01151/1.003, allocations: 4.243 MB / 1.177 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009639/1.004, allocations: 462.9 kB / 1.178 GB, free: 12.48 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003535/1.004, allocations: 24 kB / 1.178 GB, free: 12.45 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002375/1.007, allocations: 323.5 kB / 1.178 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004739/1.007, allocations: 124.7 kB / 1.178 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001496/1.007, allocations: 47.95 kB / 1.178 GB, free: 11.97 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001165/1.009, allocations: 0.7565 MB / 1.179 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.21e-07/1.009, allocations: 0 / 1.179 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.00226/1.011, allocations: 0.5664 MB / 1.18 GB, free: 10.64 MB / 0.9356 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 (67): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (1,1,100.0%), (3,7,100.0%), (2,4,100.0%), (3,9,100.0%), (2,4,100.0%), (3,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003328/1.011, allocations: 139.1 kB / 1.18 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.01185/1.023, allocations: 5.146 MB / 1.185 GB, free: 5.184 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 9.678e-06/1.023, allocations: 4 kB / 1.185 GB, free: 5.18 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.007257/1.03, allocations: 3.519 MB / 1.188 GB, free: 1.492 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003655/1.034, allocations: 0.5161 MB / 1.189 GB, free: 0.9805 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009876/1.044, allocations: 4.791 MB / 1.193 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001424/1.045, allocations: 1.481 MB / 1.195 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006995/1.046, allocations: 135.3 kB / 1.195 GB, free: 10.49 MB / 0.9512 GB Notification: Performance of SimCode: time 6.61e-07/1.046, allocations: 0 / 1.195 GB, free: 10.49 MB / 0.9512 GB Notification: Performance of Templates: time 0.5961/1.642, allocations: 112.3 MB / 1.305 GB, free: 185.2 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches