Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.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_latest_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_latest_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.001215/0.001215, allocations: 99.27 kB / 16.02 MB, free: 76 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.001772/0.001772, allocations: 186.6 kB / 16.92 MB, free: 6.75 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.376/1.376, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.783/2.783, allocations: 462.6 MB / 0.7371 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003745/0.0003745, allocations: 11.28 kB / 0.9034 GB, free: 36.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3684/0.3688, allocations: 159.6 MB / 1.059 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.0181/0.387, allocations: 13.43 MB / 1.072 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01741/0.4044, allocations: 9.268 MB / 1.081 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002664/0.4072, allocations: 47.69 kB / 1.082 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001917/0.4091, allocations: 281.8 kB / 1.082 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.006235/0.4154, allocations: 1.402 MB / 1.083 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002697/0.4181, allocations: 0.6892 MB / 1.084 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.00566/0.4238, allocations: 3.179 MB / 1.087 GB, free: 8.613 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004644/0.4284, allocations: 1.977 MB / 1.089 GB, free: 6.582 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002281/0.4307, allocations: 0.8713 MB / 1.09 GB, free: 5.707 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002429/0.4332, allocations: 1.054 MB / 1.091 GB, free: 4.648 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0006584/0.4339, allocations: 72 kB / 1.091 GB, free: 4.578 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002672/0.4365, allocations: 0.8616 MB / 1.092 GB, free: 3.715 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.001127/0.4377, allocations: 0.51 MB / 1.092 GB, free: 3.203 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.002182/0.4399, allocations: 0.8408 MB / 1.093 GB, free: 2.352 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.003636/0.4435, allocations: 2.147 MB / 1.095 GB, free: 204 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.4436, allocations: 4 kB / 1.095 GB, free: 200 kB / 0.8419 GB Notification: Performance of FrontEnd: time 2.073e-06/0.4436, allocations: 0 / 1.095 GB, free: 200 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0001158/0.4437, allocations: 0 / 1.095 GB, free: 200 kB / 0.8419 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.005183/0.4489, allocations: 1.808 MB / 1.097 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.4489, allocations: 11.97 kB / 1.097 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01353/0.4625, allocations: 2.144 MB / 1.099 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003635/0.4661, allocations: 1.201 MB / 1.1 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001487/0.4663, allocations: 90.73 kB / 1.1 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006427/0.467, allocations: 128 kB / 1.1 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00813/0.4751, allocations: 2.706 MB / 1.103 GB, free: 7.844 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.513e-05/0.4752, allocations: 7.938 kB / 1.103 GB, free: 7.836 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003347/0.4756, allocations: 51.98 kB / 1.103 GB, free: 7.785 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007123/0.4763, allocations: 182.1 kB / 1.103 GB, free: 7.605 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009285/0.4856, allocations: 2.842 MB / 1.106 GB, free: 4.754 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0191/0.5047, allocations: 10.56 MB / 1.116 GB, free: 9.605 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007508/0.5123, allocations: 2.58 MB / 1.119 GB, free: 6.961 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003422/0.5158, allocations: 1.299 MB / 1.12 GB, free: 5.656 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 9.982e-05/0.5159, allocations: 9 kB / 1.12 GB, free: 5.648 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001217/0.516, allocations: 43.56 kB / 1.12 GB, free: 5.598 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=89): time 4.098e-06/0.516, allocations: 0 / 1.12 GB, free: 5.598 MB / 0.8731 GB Notification: Performance of matching and sorting (n=131): time 0.04969/0.5657, allocations: 13.45 MB / 1.133 GB, free: 7.926 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.79e-05/0.5658, allocations: 68.72 kB / 1.133 GB, free: 7.848 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002012/0.5678, allocations: 1.121 MB / 1.134 GB, free: 6.711 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0002345/0.5681, allocations: 49.7 kB / 1.134 GB, free: 6.656 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005759/0.5687, allocations: 0.7117 MB / 1.135 GB, free: 5.938 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005723/0.5693, allocations: 457.4 kB / 1.136 GB, free: 5.484 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002831/0.5696, allocations: 109.7 kB / 1.136 GB, free: 5.371 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001824/0.5698, allocations: 361.9 kB / 1.136 GB, free: 5.012 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00369/0.5734, allocations: 1.362 MB / 1.137 GB, free: 3.648 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003881/0.5773, allocations: 1.62 MB / 1.139 GB, free: 1.93 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007504/0.5849, allocations: 3.037 MB / 1.142 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.115e-05/0.5849, allocations: 8 kB / 1.142 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01285/0.5978, allocations: 4.486 MB / 1.146 GB, free: 10.25 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.755e-05/0.5979, allocations: 8 kB / 1.146 GB, free: 10.24 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.268e-05/0.5979, allocations: 8.094 kB / 1.146 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005484/0.6034, allocations: 1.431 MB / 1.148 GB, free: 8.762 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002196/0.6056, allocations: 451.3 kB / 1.148 GB, free: 8.32 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02734/0.633, allocations: 24.57 MB / 1.172 GB, free: 14 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002859/0.6359, allocations: 311.6 kB / 1.172 GB, free: 13.7 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003616/0.6362, allocations: 59.97 kB / 1.173 GB, free: 13.64 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 (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.001243/0.6375, allocations: 441.3 kB / 1.173 GB, free: 13.2 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005044/0.638, allocations: 162.1 kB / 1.173 GB, free: 13.04 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01301/0.651, allocations: 4.492 MB / 1.177 GB, free: 8.488 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-05/0.6511, allocations: 12 kB / 1.178 GB, free: 8.477 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.781e-05/0.6511, allocations: 12 kB / 1.178 GB, free: 8.465 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.726e-05/0.6512, allocations: 11.97 kB / 1.178 GB, free: 8.453 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01688/0.6681, allocations: 6.837 MB / 1.184 GB, free: 1.453 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-05/0.6681, allocations: 4 kB / 1.184 GB, free: 1.449 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00201/0.6701, allocations: 383.3 kB / 1.185 GB, free: 1.074 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005077/0.6752, allocations: 1.318 MB / 1.186 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001833/0.6754, allocations: 43.95 kB / 1.186 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02553/0.701, allocations: 23.52 MB / 1.209 GB, free: 6.41 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.676e-06/0.701, allocations: 160 / 1.209 GB, free: 6.41 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0114/0.7124, allocations: 4.258 MB / 1.213 GB, free: 2.059 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009544/0.7134, allocations: 454.9 kB / 1.213 GB, free: 1.594 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000377/0.7138, allocations: 24 kB / 1.213 GB, free: 1.57 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002366/0.7162, allocations: 315.5 kB / 1.214 GB, free: 1.262 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004631/0.7167, allocations: 132.7 kB / 1.214 GB, free: 1.133 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000147/0.7168, allocations: 47.97 kB / 1.214 GB, free: 1.086 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.001214/0.718, allocations: 0.7525 MB / 1.215 GB, free: 340 kB / 0.9669 GB Notification: Performance of sort global known variables: time 3.81e-07/0.7181, allocations: 0 / 1.215 GB, free: 340 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.002313/0.7204, allocations: 0.5743 MB / 1.215 GB, free: 15.75 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 (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.0003221/0.7207, allocations: 145.1 kB / 1.215 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.01129/0.732, allocations: 5.162 MB / 1.22 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.732, allocations: 0 / 1.22 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.00698/0.739, allocations: 3.507 MB / 1.224 GB, free: 6.598 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003208/0.7423, allocations: 0.5099 MB / 1.224 GB, free: 6.09 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009758/0.752, allocations: 4.796 MB / 1.229 GB, free: 1.234 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001514/0.7536, allocations: 1.477 MB / 1.23 GB, free: 15.72 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006782/0.7543, allocations: 131.3 kB / 1.231 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of SimCode: time 1.132e-06/0.7543, allocations: 0 / 1.231 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of Templates: time 0.6431/1.397, allocations: 112.3 MB / 1.34 GB, free: 106.4 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches