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.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.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.001695/0.001695, 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.002197/0.002197, allocations: 192.2 kB / 16.14 MB, free: 6.711 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.63/1.63, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 3.011/3.011, allocations: 437 MB / 0.71 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.003231/0.003231, allocations: 63.91 kB / 0.8686 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7992/0.8025, allocations: 151.6 MB / 1.017 GB, free: 2.734 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01965/0.8222, allocations: 13.99 MB / 1.03 GB, free: 4.699 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.01622/0.8384, allocations: 9.37 MB / 1.039 GB, free: 11.3 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001744/0.8402, allocations: 55.62 kB / 1.04 GB, free: 11.25 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.004058/0.8443, allocations: 1.564 MB / 1.041 GB, free: 9.68 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.00486/0.8492, allocations: 1.411 MB / 1.042 GB, free: 8.27 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001925/0.8511, allocations: 0.6824 MB / 1.043 GB, free: 7.586 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.004195/0.8553, allocations: 3.179 MB / 1.046 GB, free: 4.395 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00241/0.8578, allocations: 1.35 MB / 1.048 GB, free: 3.012 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001941/0.8597, allocations: 0.9338 MB / 1.048 GB, free: 2.074 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001995/0.8617, allocations: 1.152 MB / 1.05 GB, free: 0.918 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0002613/0.862, allocations: 96 kB / 1.05 GB, free: 0.8242 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001947/0.864, allocations: 0.8851 MB / 1.05 GB, free: 15.94 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0006879/0.8647, allocations: 0.5607 MB / 1.051 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.001131/0.8658, allocations: 0.8664 MB / 1.052 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.003913/0.8697, allocations: 2.718 MB / 1.055 GB, free: 11.78 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.8697, allocations: 0 / 1.055 GB, free: 11.78 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.472e-06/0.8698, allocations: 0 / 1.055 GB, free: 11.78 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.799e-05/0.8698, allocations: 0 / 1.055 GB, free: 11.78 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.005218/0.8751, allocations: 2.143 MB / 1.057 GB, free: 9.578 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.8751, allocations: 12.03 kB / 1.057 GB, free: 9.566 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01131/0.8864, allocations: 2.089 MB / 1.059 GB, free: 7.473 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003169/0.8896, allocations: 1.197 MB / 1.06 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.307e-05/0.8897, allocations: 90.67 kB / 1.06 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000288/0.89, allocations: 124.1 kB / 1.06 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006006/0.896, allocations: 2.678 MB / 1.063 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.074e-05/0.8961, allocations: 11.84 kB / 1.063 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001818/0.8963, allocations: 55.98 kB / 1.063 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000602/0.8969, allocations: 178.1 kB / 1.063 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007776/0.9047, allocations: 2.795 MB / 1.066 GB, free: 136 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01727/0.922, allocations: 10.5 MB / 1.076 GB, free: 5.047 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006867/0.9289, allocations: 2.523 MB / 1.078 GB, free: 2.465 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003232/0.9322, allocations: 1.288 MB / 1.08 GB, free: 1.168 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 7.583e-05/0.9323, allocations: 16.98 kB / 1.08 GB, free: 1.152 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.3e-05/0.9323, allocations: 47.5 kB / 1.08 GB, free: 1.098 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=89): time 3.577e-06/0.9323, allocations: 0 / 1.08 GB, free: 1.098 MB / 0.8262 GB Notification: Performance of matching and sorting (n=131): time 0.0479/0.9802, allocations: 13.36 MB / 1.093 GB, free: 3.523 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.848e-05/0.9804, allocations: 68.72 kB / 1.093 GB, free: 3.445 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002046/0.9824, allocations: 1.117 MB / 1.094 GB, free: 2.312 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0002021/0.9826, allocations: 49.64 kB / 1.094 GB, free: 2.258 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006359/0.9833, allocations: 0.7194 MB / 1.095 GB, free: 1.531 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006311/0.9839, allocations: 449.4 kB / 1.095 GB, free: 1.086 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000674/0.9846, allocations: 259.5 kB / 1.095 GB, free: 0.8242 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0002136/0.9848, allocations: 365.9 kB / 1.096 GB, free: 472 kB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003452/0.9883, allocations: 1.339 MB / 1.097 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0036/0.9919, allocations: 1.6 MB / 1.099 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006955/0.9989, allocations: 2.994 MB / 1.101 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-06/0.9989, allocations: 4 kB / 1.101 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01233/1.011, allocations: 4.447 MB / 1.106 GB, free: 5.828 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.949e-05/1.011, allocations: 8 kB / 1.106 GB, free: 5.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.026e-05/1.011, allocations: 4 kB / 1.106 GB, free: 5.816 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005766/1.017, allocations: 1.427 MB / 1.107 GB, free: 4.348 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002123/1.019, allocations: 443.2 kB / 1.108 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03123/1.051, allocations: 24.55 MB / 1.132 GB, free: 9.613 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002516/1.053, allocations: 303.5 kB / 1.132 GB, free: 9.316 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002971/1.053, allocations: 64.03 kB / 1.132 GB, free: 9.254 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.0009974/1.054, allocations: 437.4 kB / 1.132 GB, free: 8.816 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005031/1.055, allocations: 166 kB / 1.133 GB, free: 8.652 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01174/1.067, allocations: 4.457 MB / 1.137 GB, free: 4.141 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.729e-05/1.067, allocations: 12 kB / 1.137 GB, free: 4.129 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-05/1.067, allocations: 16 kB / 1.137 GB, free: 4.113 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.022e-05/1.067, allocations: 7.969 kB / 1.137 GB, free: 4.105 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01887/1.086, allocations: 6.763 MB / 1.144 GB, free: 13.17 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-05/1.086, allocations: 4.062 kB / 1.144 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001818/1.088, allocations: 375.4 kB / 1.144 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005213/1.093, allocations: 1.315 MB / 1.145 GB, free: 11.44 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002328/1.093, allocations: 47.95 kB / 1.145 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02912/1.122, allocations: 23.5 MB / 1.168 GB, free: 2.152 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/1.122, allocations: 4.031 kB / 1.168 GB, free: 2.148 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01147/1.134, allocations: 4.2 MB / 1.172 GB, free: 13.85 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001093/1.135, allocations: 466.9 kB / 1.173 GB, free: 13.38 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004195/1.135, allocations: 24 kB / 1.173 GB, free: 13.35 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002151/1.137, allocations: 303.5 kB / 1.173 GB, free: 13.05 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005746/1.138, allocations: 128.7 kB / 1.173 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001578/1.138, allocations: 51.95 kB / 1.173 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001348/1.14, allocations: 0.7487 MB / 1.174 GB, free: 12.13 MB / 0.9356 GB Notification: Performance of sort global known variables: time 6.02e-07/1.14, allocations: 0 / 1.174 GB, free: 12.13 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.002442/1.142, allocations: 0.5703 MB / 1.174 GB, free: 11.56 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.0003341/1.142, allocations: 142.8 kB / 1.175 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.01184/1.154, allocations: 5.115 MB / 1.18 GB, free: 6.129 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/1.154, allocations: 4 kB / 1.18 GB, free: 6.125 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.007454/1.162, allocations: 3.495 MB / 1.183 GB, free: 2.461 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002691/1.164, allocations: 0.5024 MB / 1.184 GB, free: 1.965 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009624/1.174, allocations: 4.655 MB / 1.188 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001426/1.176, allocations: 1.481 MB / 1.19 GB, free: 11.75 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001885/1.177, allocations: 417.6 kB / 1.19 GB, free: 11.33 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004272/1.178, allocations: 123.4 kB / 1.19 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of SimCode: time 8.92e-07/1.178, allocations: 0 / 1.19 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of Templates: time 0.06647/1.244, allocations: 37.74 MB / 1.227 GB, free: 5.891 MB / 0.9825 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=400 -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/jenkins/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