Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009603/0.0009603, allocations: 93.06 kB / 19.65 MB, free: 276 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009727/0.0009727, allocations: 173 kB / 23.03 MB, free: 1.543 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9113/0.9113, allocations: 177.1 MB / 203.4 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.951/1.951, allocations: 429.5 MB / 0.6733 GB, free: 4.055 MB / 0.6355 GB " [Timeout remaining time 178] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|L1.terminal.phase.[0-9,]+..v.[0-9,]+.|L2.terminal.phase.[0-9,]+..v.[0-9,]+.|L3.terminal.phase.[0-9,]+..v.[0-9,]+.|E.vPhase.[0-9,]+..terminal.v.[0-9,]+.|L1.load1.i.[0-9,]+.|L2.load1.i.[0-9,]+.|L3.load1.i.[0-9,]+.|sc_load.load1.i.[0-9,]+.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|L1.terminal.phase.[0-9,]+..v.[0-9,]+.|L2.terminal.phase.[0-9,]+..v.[0-9,]+.|L3.terminal.phase.[0-9,]+..v.[0-9,]+.|E.vPhase.[0-9,]+..terminal.v.[0-9,]+.|L1.load1.i.[0-9,]+.|L2.load1.i.[0-9,]+.|L3.load1.i.[0-9,]+.|sc_load.load1.i.[0-9,]+.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0.7656 kB / 0.8782 GB, free: 6.316 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.152e-05/1.323e-05, allocations: 3.156 kB / 0.8782 GB, free: 6.312 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N): time 0.014/0.01402, allocations: 18.34 MB / 0.8961 GB, free: 3.918 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.007684/0.0217, allocations: 5.556 MB / 0.9015 GB, free: 14.36 MB / 0.8698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001305/0.02301, allocations: 214.4 kB / 0.9017 GB, free: 14.15 MB / 0.8698 GB Notification: Performance of NFTyping.typeComponents: time 0.001284/0.02429, allocations: 0.8145 MB / 0.9025 GB, free: 13.33 MB / 0.8698 GB Notification: Performance of NFTyping.typeBindings: time 0.002158/0.02645, allocations: 1.783 MB / 0.9043 GB, free: 11.54 MB / 0.8698 GB Notification: Performance of NFTyping.typeClassSections: time 0.002114/0.02856, allocations: 1.755 MB / 0.906 GB, free: 9.781 MB / 0.8698 GB Notification: Performance of NFFlatten.flatten: time 0.005788/0.03435, allocations: 8.462 MB / 0.9142 GB, free: 1.293 MB / 0.8698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005827/0.04018, allocations: 6.026 MB / 0.9201 GB, free: 11.15 MB / 0.8855 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005236/0.04541, allocations: 5.365 MB / 0.9254 GB, free: 5.773 MB / 0.8855 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003737/0.04915, allocations: 4.264 MB / 0.9295 GB, free: 1.5 MB / 0.8855 GB Notification: Performance of NFPackage.collectConstants: time 0.0008447/0.05, allocations: 0.7773 MB / 0.9303 GB, free: 0.7227 MB / 0.8855 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001086/0.05108, allocations: 0.8709 MB / 0.9311 GB, free: 15.85 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 0.00195/0.05303, allocations: 3.309 MB / 0.9344 GB, free: 12.54 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 0.002447/0.05548, allocations: 2.398 MB / 0.9367 GB, free: 10.13 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.004681/0.06016, allocations: 5.968 MB / 0.9425 GB, free: 4.148 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.06016, allocations: 0 / 0.9425 GB, free: 4.148 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.262e-06/0.06016, allocations: 0 / 0.9425 GB, free: 4.148 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 8.83e-05/0.06025, allocations: 0 / 0.9425 GB, free: 4.148 MB / 0.9011 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.006314/0.06657, allocations: 5.999 MB / 0.9484 GB, free: 14.08 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.06661, allocations: 12.03 kB / 0.9484 GB, free: 14.07 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003351/0.06996, allocations: 1.686 MB / 0.9501 GB, free: 12.38 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003181/0.07314, allocations: 3.285 MB / 0.9533 GB, free: 9.023 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001842/0.07332, allocations: 415.5 kB / 0.9537 GB, free: 8.617 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004931/0.07382, allocations: 0.5432 MB / 0.9542 GB, free: 8.074 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006231/0.08005, allocations: 5.468 MB / 0.9595 GB, free: 2.102 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.173e-05/0.08014, allocations: 24.02 kB / 0.9596 GB, free: 2.078 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003467/0.08049, allocations: 240.3 kB / 0.9598 GB, free: 1.844 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002321/0.08072, allocations: 354.7 kB / 0.9601 GB, free: 1.496 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003472/0.08419, allocations: 2.038 MB / 0.9621 GB, free: 15.45 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01821/0.1024, allocations: 27.03 MB / 0.9885 GB, free: 3.695 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001422/0.1038, allocations: 1.261 MB / 0.9897 GB, free: 2.434 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009754/0.1048, allocations: 0.8764 MB / 0.9906 GB, free: 1.562 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 7.577e-05/0.1049, allocations: 30 kB / 0.9906 GB, free: 1.535 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.104e-05/0.1049, allocations: 55.39 kB / 0.9907 GB, free: 1.469 MB / 0.948 GB Notification: Performance of pre-optimization done (n=179): time 3.757e-06/0.1049, allocations: 4 kB / 0.9907 GB, free: 1.465 MB / 0.948 GB Notification: Performance of matching and sorting (n=182): time 0.01128/0.1162, allocations: 6.301 MB / 0.9968 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.423e-05/0.1162, allocations: 73.41 kB / 0.9969 GB, free: 11.06 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009893/0.1172, allocations: 1.366 MB / 0.9982 GB, free: 9.688 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 8.425e-05/0.1173, allocations: 61.69 kB / 0.9983 GB, free: 9.621 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.001152/0.1184, allocations: 2.358 MB / 1.001 GB, free: 7.242 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003541/0.1188, allocations: 0.678 MB / 1.001 GB, free: 6.559 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003821/0.1192, allocations: 418.1 kB / 1.002 GB, free: 6.141 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 9.748e-05/0.1193, allocations: 484.7 kB / 1.002 GB, free: 5.664 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000548/0.1198, allocations: 384.2 kB / 1.002 GB, free: 5.285 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009822/0.1208, allocations: 1.395 MB / 1.004 GB, free: 3.453 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001895/0.1227, allocations: 1.976 MB / 1.006 GB, free: 1.051 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.416e-06/0.1227, allocations: 8 kB / 1.006 GB, free: 1.043 MB / 0.9636 GB Notification: Performance of matching and sorting (n=285) (initialization): time 0.003178/0.1259, allocations: 2.629 MB / 1.008 GB, free: 14.39 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 2.597e-05/0.1259, allocations: 26.69 kB / 1.008 GB, free: 14.36 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.736e-05/0.1259, allocations: 20 kB / 1.008 GB, free: 14.34 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002154/0.1281, allocations: 1.223 MB / 1.01 GB, free: 13.11 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006133/0.1287, allocations: 351.4 kB / 1.01 GB, free: 12.77 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/0.1388, allocations: 12.67 MB / 1.022 GB, free: 15.62 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006164/0.1394, allocations: 115.9 kB / 1.022 GB, free: 15.5 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.579e-05/0.1395, allocations: 99.98 kB / 1.023 GB, free: 15.41 MB / 0.9948 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 (177): * Single equations (assignments): 173 * 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 {(12,26,30.6%), (6,24,66.7%), (6,16,66.7%), (6,16,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007166/0.1402, allocations: 292 kB / 1.023 GB, free: 15.11 MB / 0.9948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002312/0.1405, allocations: 282.6 kB / 1.023 GB, free: 14.83 MB / 0.9948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002704/0.1432, allocations: 2.13 MB / 1.025 GB, free: 12.67 MB / 0.9948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.1432, allocations: 16 kB / 1.025 GB, free: 12.65 MB / 0.9948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/0.1432, allocations: 16 kB / 1.025 GB, free: 12.64 MB / 0.9948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.1432, allocations: 7.969 kB / 1.025 GB, free: 12.63 MB / 0.9948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007055/0.1503, allocations: 5.967 MB / 1.031 GB, free: 6.504 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.1503, allocations: 4 kB / 1.031 GB, free: 6.5 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004057/0.1507, allocations: 183.7 kB / 1.031 GB, free: 6.32 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001953/0.1526, allocations: 1.007 MB / 1.032 GB, free: 5.301 MB / 0.9948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.866e-05/0.1527, allocations: 32 kB / 1.032 GB, free: 5.27 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00921/0.1619, allocations: 11.89 MB / 1.044 GB, free: 8.895 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.1619, allocations: 4 kB / 1.044 GB, free: 8.891 MB / 1.01 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002783/0.1647, allocations: 2.366 MB / 1.046 GB, free: 6.406 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004932/0.1652, allocations: 434.4 kB / 1.047 GB, free: 5.98 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001337/0.1653, allocations: 32 kB / 1.047 GB, free: 5.949 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004345/0.1658, allocations: 91.83 kB / 1.047 GB, free: 5.859 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002478/0.166, allocations: 181.8 kB / 1.047 GB, free: 5.684 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.373e-05/0.1661, allocations: 48 kB / 1.047 GB, free: 5.637 MB / 1.01 GB Notification: Performance of sorting global known variables: time 0.0008531/0.1669, allocations: 0.7708 MB / 1.048 GB, free: 4.875 MB / 1.01 GB Notification: Performance of sort global known variables: time 7e-08/0.1669, allocations: 0 / 1.048 GB, free: 4.875 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.001847/0.1688, allocations: 0.9961 MB / 1.049 GB, free: 3.879 MB / 1.01 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 (85): * Single equations (assignments): 81 * 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 {(6,16,66.7%), (6,16,66.7%), (6,24,66.7%), (6,24,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001824/0.169, allocations: 151 kB / 1.049 GB, free: 3.723 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.003001/0.172, allocations: 2.974 MB / 1.052 GB, free: 0.6719 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.172, allocations: 0 / 1.052 GB, free: 0.6719 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 0.3105/0.4824, allocations: 2.157 MB / 1.054 GB, free: 180.4 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001882/0.4843, allocations: 0.7664 MB / 1.055 GB, free: 180.3 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00828/0.4926, allocations: 7.816 MB / 1.062 GB, free: 177.2 MB / 1.01 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009789/0.4936, allocations: 1.349 MB / 1.063 GB, free: 177.1 MB / 1.01 GB Notification: Performance of simCode: alias equations: time 0.0006433/0.4942, allocations: 382.6 kB / 1.064 GB, free: 177 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001979/0.4944, allocations: 113.4 kB / 1.064 GB, free: 177 MB / 1.01 GB Notification: Performance of SimCode: time 1.483e-06/0.4944, allocations: 0 / 1.064 GB, free: 177 MB / 1.01 GB Notification: Performance of Templates: time 0.05396/0.5484, allocations: 46.85 MB / 1.11 GB, free: 169.5 MB / 1.01 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 6.110310108400881]