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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001598/0.001598, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001674/0.001674, allocations: 193 kB / 16.26 MB, free: 6.621 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.418/1.418, allocations: 222.9 MB / 239.9 MB, free: 4.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.909/2.909, allocations: 482.3 MB / 0.7543 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002356/0.002357, allocations: 66.06 kB / 0.9233 GB, free: 29.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3339/0.3363, allocations: 162.2 MB / 1.082 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.0184/0.3547, allocations: 14.7 MB / 1.096 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01531/0.3701, allocations: 10.24 MB / 1.106 GB, free: 4.574 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00137/0.3715, allocations: 51.62 kB / 1.106 GB, free: 4.523 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.004322/0.3759, allocations: 1.585 MB / 1.108 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.005045/0.3809, allocations: 1.62 MB / 1.109 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001879/0.3828, allocations: 0.6902 MB / 1.11 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.003935/0.3868, allocations: 2.749 MB / 1.113 GB, free: 13.87 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002236/0.389, allocations: 1.598 MB / 1.114 GB, free: 12.24 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002257/0.3913, allocations: 1.511 MB / 1.116 GB, free: 10.72 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002617/0.3939, allocations: 1.21 MB / 1.117 GB, free: 9.508 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0003741/0.3943, allocations: 160 kB / 1.117 GB, free: 9.352 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001594/0.3959, allocations: 0.7877 MB / 1.118 GB, free: 8.562 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.000639/0.3966, allocations: 0.6076 MB / 1.118 GB, free: 7.953 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.00106/0.3976, allocations: 0.9445 MB / 1.119 GB, free: 7.004 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.003251/0.4009, allocations: 2.78 MB / 1.122 GB, free: 4.215 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 8.766e-06/0.4009, allocations: 4 kB / 1.122 GB, free: 4.211 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.904e-06/0.4009, allocations: 3.938 kB / 1.122 GB, free: 4.207 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 6.57e-05/0.401, allocations: 0 / 1.122 GB, free: 4.207 MB / 0.8731 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.004364/0.4054, allocations: 2.182 MB / 1.124 GB, free: 1.969 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.4054, allocations: 8.031 kB / 1.124 GB, free: 1.961 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01148/0.4169, allocations: 2.101 MB / 1.126 GB, free: 15.85 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003154/0.4201, allocations: 1.213 MB / 1.127 GB, free: 14.59 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.79e-05/0.4202, allocations: 86.67 kB / 1.127 GB, free: 14.5 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003432/0.4206, allocations: 128 kB / 1.128 GB, free: 14.38 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006221/0.4268, allocations: 2.674 MB / 1.13 GB, free: 11.55 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.291e-05/0.4269, allocations: 7.938 kB / 1.13 GB, free: 11.54 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001824/0.4271, allocations: 47.98 kB / 1.13 GB, free: 11.5 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006248/0.4277, allocations: 198.1 kB / 1.13 GB, free: 11.3 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007719/0.4354, allocations: 2.791 MB / 1.133 GB, free: 8.5 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01667/0.4522, allocations: 10.5 MB / 1.143 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006591/0.4588, allocations: 2.332 MB / 1.146 GB, free: 11.05 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003275/0.4621, allocations: 1.276 MB / 1.147 GB, free: 9.773 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 9.887e-05/0.4622, allocations: 9 kB / 1.147 GB, free: 9.762 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.824e-05/0.4623, allocations: 47.55 kB / 1.147 GB, free: 9.707 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=89): time 3.206e-06/0.4623, allocations: 0 / 1.147 GB, free: 9.707 MB / 0.9044 GB Notification: Performance of matching and sorting (n=153): time 0.05968/0.522, allocations: 16.48 MB / 1.163 GB, free: 9.074 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.989e-05/0.5221, allocations: 68.72 kB / 1.163 GB, free: 8.992 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001696/0.5238, allocations: 1.188 MB / 1.164 GB, free: 7.793 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0002554/0.524, allocations: 45.7 kB / 1.164 GB, free: 7.742 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006348/0.5247, allocations: 0.7514 MB / 1.165 GB, free: 6.984 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005646/0.5253, allocations: 0.5082 MB / 1.166 GB, free: 6.469 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006006/0.5259, allocations: 287.4 kB / 1.166 GB, free: 6.184 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001649/0.526, allocations: 309.1 kB / 1.166 GB, free: 5.879 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003625/0.5297, allocations: 1.514 MB / 1.168 GB, free: 4.363 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003832/0.5335, allocations: 1.776 MB / 1.169 GB, free: 2.492 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007711/0.5413, allocations: 3.373 MB / 1.173 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.682e-06/0.5413, allocations: 0 / 1.173 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01397/0.5553, allocations: 5.272 MB / 1.178 GB, free: 9.711 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.791e-05/0.5554, allocations: 8.875 kB / 1.178 GB, free: 9.703 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.581e-05/0.5554, allocations: 4 kB / 1.178 GB, free: 9.699 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007127/0.5625, allocations: 1.903 MB / 1.18 GB, free: 7.773 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002081/0.5646, allocations: 411.3 kB / 1.18 GB, free: 7.371 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0325/0.5972, allocations: 24.15 MB / 1.204 GB, free: 14.1 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002945/0.6002, allocations: 311.6 kB / 1.204 GB, free: 13.79 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000236/0.6004, allocations: 63.97 kB / 1.204 GB, free: 13.73 MB / 0.9669 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.001034/0.6015, allocations: 465.4 kB / 1.204 GB, free: 13.27 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003938/0.6019, allocations: 173.9 kB / 1.205 GB, free: 13.09 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01405/0.6159, allocations: 5.327 MB / 1.21 GB, free: 7.719 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.722e-05/0.616, allocations: 16 kB / 1.21 GB, free: 7.703 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.971e-05/0.6161, allocations: 20 kB / 1.21 GB, free: 7.684 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.018e-05/0.6161, allocations: 7.969 kB / 1.21 GB, free: 7.676 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01733/0.6334, allocations: 7.422 MB / 1.217 GB, free: 136 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-05/0.6335, allocations: 4 kB / 1.217 GB, free: 132 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001729/0.6352, allocations: 351.4 kB / 1.217 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006191/0.6414, allocations: 1.717 MB / 1.219 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000234/0.6417, allocations: 47.97 kB / 1.219 GB, free: 14 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03074/0.6724, allocations: 23.33 MB / 1.242 GB, free: 5.559 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.6725, allocations: 7.938 kB / 1.242 GB, free: 5.551 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01286/0.6853, allocations: 4.889 MB / 1.247 GB, free: 0.5781 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001107/0.6865, allocations: 498.8 kB / 1.247 GB, free: 72 kB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002964/0.6868, allocations: 32 kB / 1.247 GB, free: 40 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.5478/1.235, allocations: 318.2 kB / 1.248 GB, free: 157.1 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007085/1.235, allocations: 144.6 kB / 1.248 GB, free: 157.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001813/1.236, allocations: 57.14 kB / 1.248 GB, free: 157.1 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001412/1.237, allocations: 0.7934 MB / 1.249 GB, free: 157 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2e-07/1.237, allocations: 0.625 kB / 1.249 GB, free: 157 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003007/1.24, allocations: 0.6537 MB / 1.249 GB, free: 157 MB / 0.9981 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.0003878/1.24, allocations: 138.5 kB / 1.249 GB, free: 156.9 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01403/1.254, allocations: 5.423 MB / 1.255 GB, free: 155.9 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.313e-05/1.254, allocations: 6.016 kB / 1.255 GB, free: 155.9 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.006968/1.261, allocations: 3.354 MB / 1.258 GB, free: 154.9 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00259/1.264, allocations: 0.5494 MB / 1.258 GB, free: 154.9 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/1.274, allocations: 4.999 MB / 1.263 GB, free: 152.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001796/1.276, allocations: 1.568 MB / 1.265 GB, free: 151.8 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001989/1.278, allocations: 387.5 kB / 1.265 GB, free: 151.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004095/1.278, allocations: 110 kB / 1.265 GB, free: 151.7 MB / 0.9981 GB Notification: Performance of SimCode: time 7.92e-07/1.278, allocations: 0 / 1.265 GB, free: 151.7 MB / 0.9981 GB Notification: Performance of Templates: time 0.07788/1.356, allocations: 45.07 MB / 1.309 GB, free: 134.6 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=400 -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