Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001582/0.001582, allocations: 109.6 kB / 16.41 MB, free: 6.504 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.001875/0.001875, allocations: 189.5 kB / 17.34 MB, free: 5.738 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.46/1.46, allocations: 222.9 MB / 241 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.747/2.747, allocations: 461.9 MB / 0.7355 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 63.84 kB / 1.055 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8371/0.8385, allocations: 157.4 MB / 1.208 GB, free: 13.67 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid): time 0.01531/0.8539, allocations: 11.86 MB / 1.22 GB, free: 1.77 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.009869/0.8638, allocations: 5.512 MB / 1.225 GB, free: 12.24 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001214/0.8651, allocations: 35.88 kB / 1.225 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.003186/0.8684, allocations: 1.042 MB / 1.226 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.001845/0.8702, allocations: 0.6452 MB / 1.227 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.00242/0.8727, allocations: 0.9118 MB / 1.228 GB, free: 9.602 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.002873/0.8755, allocations: 2.474 MB / 1.23 GB, free: 7.121 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004153/0.8797, allocations: 3.507 MB / 1.234 GB, free: 3.578 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001746/0.8815, allocations: 1.114 MB / 1.235 GB, free: 2.461 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001876/0.8834, allocations: 1.223 MB / 1.236 GB, free: 1.234 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.000561/0.8839, allocations: 235.9 kB / 1.236 GB, free: 1.004 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001374/0.8853, allocations: 0.5267 MB / 1.237 GB, free: 488 kB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.001216/0.8866, allocations: 0.9006 MB / 1.238 GB, free: 15.57 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.001778/0.8883, allocations: 0.9922 MB / 1.239 GB, free: 14.58 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.003969/0.8923, allocations: 3.559 MB / 1.242 GB, free: 11.01 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.8923, allocations: 0 / 1.242 GB, free: 11.01 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.593e-06/0.8924, allocations: 0 / 1.242 GB, free: 11.01 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.918e-05/0.8924, allocations: 0 / 1.242 GB, free: 11.01 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 406 * Number of variables: 406 Notification: Performance of Generate backend data structure: time 0.004715/0.8972, allocations: 1.94 MB / 1.244 GB, free: 9.016 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.8972, allocations: 8.031 kB / 1.244 GB, free: 9.008 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002661/0.8999, allocations: 0.4906 MB / 1.245 GB, free: 8.516 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002016/0.9019, allocations: 1.128 MB / 1.246 GB, free: 7.348 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001058/0.902, allocations: 119.4 kB / 1.246 GB, free: 7.23 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002771/0.9023, allocations: 152.1 kB / 1.246 GB, free: 7.082 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004416/0.9068, allocations: 2.754 MB / 1.249 GB, free: 4.262 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.338e-05/0.9068, allocations: 11.92 kB / 1.249 GB, free: 4.25 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001691/0.907, allocations: 63.98 kB / 1.249 GB, free: 4.188 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002875/0.9073, allocations: 143 kB / 1.249 GB, free: 4.047 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003607/0.9109, allocations: 2.307 MB / 1.251 GB, free: 1.734 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01349/0.9244, allocations: 10.37 MB / 1.261 GB, free: 6.473 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001428/0.9259, allocations: 0.6155 MB / 1.262 GB, free: 5.848 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007152/0.9266, allocations: 392.6 kB / 1.262 GB, free: 5.461 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000129/0.9268, allocations: 89.09 kB / 1.262 GB, free: 5.355 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.642e-05/0.9268, allocations: 42.5 kB / 1.262 GB, free: 5.305 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=36): time 2.555e-06/0.9268, allocations: 0 / 1.262 GB, free: 5.305 MB / 0.9825 GB Notification: Performance of matching and sorting (n=52): time 0.02192/0.9488, allocations: 5.839 MB / 1.268 GB, free: 15.41 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.422e-05/0.9488, allocations: 55.84 kB / 1.268 GB, free: 15.34 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001398/0.9502, allocations: 0.8866 MB / 1.269 GB, free: 14.45 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001243/0.9504, allocations: 37.7 kB / 1.269 GB, free: 14.4 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005235/0.9509, allocations: 0.7499 MB / 1.27 GB, free: 13.64 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002195/0.9511, allocations: 185.5 kB / 1.27 GB, free: 13.46 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003909/0.9515, allocations: 198.3 kB / 1.27 GB, free: 13.25 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001815/0.9517, allocations: 386.8 kB / 1.27 GB, free: 12.87 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001229/0.953, allocations: 0.6566 MB / 1.271 GB, free: 12.21 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001426/0.9544, allocations: 1.006 MB / 1.272 GB, free: 11.04 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002584/0.957, allocations: 1.67 MB / 1.274 GB, free: 9.207 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-05/0.957, allocations: 4 kB / 1.274 GB, free: 9.203 MB / 0.9981 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.008936/0.966, allocations: 3.124 MB / 1.277 GB, free: 6.059 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.742e-05/0.966, allocations: 12.06 kB / 1.277 GB, free: 6.047 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.496e-05/0.966, allocations: 15.94 kB / 1.277 GB, free: 6.031 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006946/0.973, allocations: 1.646 MB / 1.278 GB, free: 4.371 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.974, allocations: 231.6 kB / 1.279 GB, free: 4.145 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0144/0.9885, allocations: 10.59 MB / 1.289 GB, free: 9 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00146/0.99, allocations: 167.6 kB / 1.289 GB, free: 8.836 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000164/0.9901, allocations: 43.98 kB / 1.289 GB, free: 8.793 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002251/0.9924, allocations: 1.314 MB / 1.29 GB, free: 7.477 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001664/0.9941, allocations: 0.9787 MB / 1.291 GB, free: 6.332 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002862/0.997, allocations: 1.615 MB / 1.293 GB, free: 4.559 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.477e-05/0.997, allocations: 4 kB / 1.293 GB, free: 4.555 MB / 1.014 GB Notification: Performance of matching and sorting (n=111) (initialization_lambda0): time 0.007555/1.005, allocations: 2.666 MB / 1.296 GB, free: 1.871 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.55e-05/1.005, allocations: 8 kB / 1.296 GB, free: 1.863 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.607e-05/1.005, allocations: 12 kB / 1.296 GB, free: 1.852 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006693/1.011, allocations: 1.063 MB / 1.297 GB, free: 0.7812 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001161/1.013, allocations: 251.5 kB / 1.297 GB, free: 0.5352 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007876/1.02, allocations: 5.744 MB / 1.302 GB, free: 10.51 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001429/1.022, allocations: 163.7 kB / 1.303 GB, free: 10.35 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001973/1.022, allocations: 44 kB / 1.303 GB, free: 10.3 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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): 95 * 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): 2 systems {(2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,2), (2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003725/1.022, allocations: 247.8 kB / 1.303 GB, free: 10.05 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002251/1.023, allocations: 71.16 kB / 1.303 GB, free: 9.984 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008603/1.031, allocations: 2.571 MB / 1.305 GB, free: 7.387 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-05/1.031, allocations: 3.984 kB / 1.305 GB, free: 7.383 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/1.031, allocations: 0 / 1.305 GB, free: 7.383 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000764/1.032, allocations: 268.1 kB / 1.306 GB, free: 7.102 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003201/1.033, allocations: 15.94 kB / 1.306 GB, free: 7.086 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001069/1.034, allocations: 115.8 kB / 1.306 GB, free: 6.973 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002619/1.034, allocations: 48.36 kB / 1.306 GB, free: 6.926 MB / 1.029 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005317/1.039, allocations: 2.102 MB / 1.308 GB, free: 4.805 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00269/1.042, allocations: 1.789 MB / 1.31 GB, free: 2.996 MB / 1.029 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008093/1.043, allocations: 0.542 MB / 1.31 GB, free: 2.457 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.001197/1.044, allocations: 0.6473 MB / 1.311 GB, free: 1.816 MB / 1.029 GB Notification: Performance of Backend: time 3e-07/1.044, allocations: 0 / 1.311 GB, free: 1.816 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.00618/1.05, allocations: 2.914 MB / 1.314 GB, free: 14.82 MB / 1.045 GB Notification: Performance of SimCode: time 0.005831/1.056, allocations: 3.302 MB / 1.317 GB, free: 11.47 MB / 1.045 GB Notification: Performance of Templates: time 0.04876/1.105, allocations: 29.89 MB / 1.346 GB, free: 13.74 MB / 1.076 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches