Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.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.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008404/0.0008405, allocations: 99.58 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.0009582/0.0009582, allocations: 181.5 kB / 16.92 MB, free: 6.918 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.372/1.372, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.722/2.722, allocations: 462.6 MB / 0.737 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000497/0.0004971, allocations: 10.53 kB / 0.9034 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3126/0.3131, allocations: 159.6 MB / 1.059 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.03943/0.3526, allocations: 36.74 MB / 1.095 GB, free: 72 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01945/0.3721, allocations: 10.87 MB / 1.106 GB, free: 5.172 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004331/0.3765, allocations: 131.3 kB / 1.106 GB, free: 5.043 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.003442/0.38, allocations: 0.7791 MB / 1.107 GB, free: 4.258 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.007345/0.3873, allocations: 2.092 MB / 1.109 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.005681/0.3931, allocations: 1.797 MB / 1.111 GB, free: 372 kB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01491/0.408, allocations: 13.18 MB / 1.123 GB, free: 3.156 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0247/0.4328, allocations: 14.46 MB / 1.137 GB, free: 4.59 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006386/0.4392, allocations: 2.844 MB / 1.14 GB, free: 1.734 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007464/0.4467, allocations: 3.865 MB / 1.144 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.00202/0.4488, allocations: 348 kB / 1.144 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004587/0.4534, allocations: 1.326 MB / 1.146 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.004525/0.4579, allocations: 2.537 MB / 1.148 GB, free: 9.645 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.006494/0.4645, allocations: 2.96 MB / 1.151 GB, free: 6.664 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.01147/0.476, allocations: 10.22 MB / 1.161 GB, free: 12.42 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.476, allocations: 0 / 1.161 GB, free: 12.42 MB / 0.92 GB Notification: Performance of FrontEnd: time 4.238e-06/0.476, allocations: 0 / 1.161 GB, free: 12.42 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0004407/0.4765, allocations: 3.938 kB / 1.161 GB, free: 12.42 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.01342/0.4899, allocations: 5.094 MB / 1.166 GB, free: 7.254 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.49, allocations: 11.97 kB / 1.166 GB, free: 7.242 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00623/0.4962, allocations: 1.067 MB / 1.167 GB, free: 6.168 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007332/0.5036, allocations: 3.419 MB / 1.17 GB, free: 2.695 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004199/0.5041, allocations: 423.8 kB / 1.171 GB, free: 2.281 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001881/0.5059, allocations: 0.5431 MB / 1.171 GB, free: 1.738 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02142/0.5274, allocations: 9.381 MB / 1.18 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002574/0.5277, allocations: 19.81 kB / 1.181 GB, free: 8 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001503/0.5292, allocations: 244 kB / 1.181 GB, free: 7.762 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006616/0.5299, allocations: 418.9 kB / 1.181 GB, free: 7.352 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01559/0.5455, allocations: 7.127 MB / 1.188 GB, free: 220 kB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0521/0.5976, allocations: 41.38 MB / 1.229 GB, free: 3.094 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005439/0.6031, allocations: 3.104 MB / 1.232 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003403/0.6065, allocations: 2.118 MB / 1.234 GB, free: 13.87 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001594/0.6067, allocations: 22 kB / 1.234 GB, free: 13.85 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.886e-05/0.6068, allocations: 64.56 kB / 1.234 GB, free: 13.77 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=209): time 6.543e-06/0.6068, allocations: 0 / 1.234 GB, free: 13.77 MB / 0.9981 GB Notification: Performance of matching and sorting (n=212): time 0.02717/0.634, allocations: 10.61 MB / 1.244 GB, free: 3.066 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.078e-05/0.6341, allocations: 77.34 kB / 1.244 GB, free: 2.98 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003618/0.6377, allocations: 2.009 MB / 1.246 GB, free: 0.9531 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003274/0.6381, allocations: 61.7 kB / 1.246 GB, free: 0.8867 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.6504/1.289, allocations: 2.397 MB / 1.248 GB, free: 170.1 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001024/1.29, allocations: 0.7318 MB / 1.249 GB, free: 169.8 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000676/1.29, allocations: 210.5 kB / 1.249 GB, free: 169.7 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.055e-05/1.29, allocations: 302.7 kB / 1.25 GB, free: 169.4 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002535/1.293, allocations: 1.377 MB / 1.251 GB, free: 169.4 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002793/1.296, allocations: 2.101 MB / 1.253 GB, free: 168.6 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004621/1.3, allocations: 3.771 MB / 1.257 GB, free: 167.7 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.727e-05/1.3, allocations: 5.938 kB / 1.257 GB, free: 167.7 MB / 0.9981 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.008994/1.309, allocations: 5.07 MB / 1.262 GB, free: 167.2 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.662e-05/1.31, allocations: 13.69 kB / 1.262 GB, free: 167.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.302e-05/1.31, allocations: 21.69 kB / 1.262 GB, free: 167.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004657/1.314, allocations: 1.584 MB / 1.263 GB, free: 167.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002168/1.316, allocations: 455.1 kB / 1.264 GB, free: 167.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0247/1.341, allocations: 17.1 MB / 1.28 GB, free: 158.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002819/1.344, allocations: 147.2 kB / 1.281 GB, free: 158.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006056/1.345, allocations: 107.4 kB / 1.281 GB, free: 158.1 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (231): * Single equations (assignments): 227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005967/1.351, allocations: 1.944 MB / 1.283 GB, free: 157.2 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001374/1.352, allocations: 286.3 kB / 1.283 GB, free: 157.1 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009542/1.362, allocations: 4.46 MB / 1.287 GB, free: 155.2 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.592e-05/1.362, allocations: 21.03 kB / 1.287 GB, free: 155.2 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.72e-05/1.362, allocations: 18.83 kB / 1.287 GB, free: 155.2 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.362e-05/1.362, allocations: 8.766 kB / 1.287 GB, free: 155.2 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01536/1.377, allocations: 9.668 MB / 1.297 GB, free: 151.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.345e-05/1.377, allocations: 3.938 kB / 1.297 GB, free: 151.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009482/1.378, allocations: 234.3 kB / 1.297 GB, free: 151.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003049/1.381, allocations: 1.428 MB / 1.298 GB, free: 151 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002052/1.381, allocations: 43.38 kB / 1.298 GB, free: 150.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01748/1.399, allocations: 17.11 MB / 1.315 GB, free: 138.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.471e-06/1.399, allocations: 7.625 kB / 1.315 GB, free: 138.6 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006649/1.406, allocations: 4.547 MB / 1.32 GB, free: 134.6 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001516/1.407, allocations: 0.635 MB / 1.32 GB, free: 134 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003616/1.407, allocations: 39.98 kB / 1.32 GB, free: 133.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001273/1.409, allocations: 116.7 kB / 1.32 GB, free: 133.8 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005503/1.409, allocations: 185.3 kB / 1.32 GB, free: 133.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001116/1.409, allocations: 64 kB / 1.321 GB, free: 133.6 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001486/1.411, allocations: 1.315 MB / 1.322 GB, free: 132.3 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/1.411, allocations: 0 / 1.322 GB, free: 132.3 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003355/1.414, allocations: 1.141 MB / 1.323 GB, free: 131.1 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002945/1.415, allocations: 160.6 kB / 1.323 GB, free: 131 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.006455/1.421, allocations: 4.696 MB / 1.328 GB, free: 126.2 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.122e-05/1.421, allocations: 4 kB / 1.328 GB, free: 126.2 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.004042/1.425, allocations: 2.929 MB / 1.331 GB, free: 123.2 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005468/1.431, allocations: 0.8269 MB / 1.331 GB, free: 122.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01571/1.446, allocations: 12.55 MB / 1.344 GB, free: 109.8 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003758/1.45, allocations: 3.788 MB / 1.347 GB, free: 106 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007756/1.451, allocations: 163.4 kB / 1.347 GB, free: 105.8 MB / 0.9981 GB Notification: Performance of SimCode: time 1.463e-06/1.451, allocations: 0 / 1.347 GB, free: 105.8 MB / 0.9981 GB Notification: Performance of Templates: time 0.1751/1.626, allocations: 171.2 MB / 1.515 GB, free: 14.77 MB / 1.076 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches