Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.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.001041/0.001041, allocations: 71.75 kB / 20.97 MB, free: 3.578 MB / 18.57 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.001552/0.001552, allocations: 169 kB / 24.28 MB, free: 276 kB / 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.9322/0.9322, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.879/1.879, allocations: 377.8 MB / 0.6239 GB, free: 8.578 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|load_sc_1.load1.v.[0-9,]+.|load_sc_2.load1.v.[0-9,]+.|load_sc_3.load1.v.[0-9,]+.|load_sc_1.load1.i.[0-9,]+.|load_sc_2.load1.i.[0-9,]+.|load_sc_3.load1.i.[0-9,]+.",fileNamePrefix="Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|load_sc_1.load1.v.[0-9,]+.|load_sc_2.load1.v.[0-9,]+.|load_sc_3.load1.v.[0-9,]+.|load_sc_1.load1.i.[0-9,]+.|load_sc_2.load1.i.[0-9,]+.|load_sc_3.load1.i.[0-9,]+.",fileNamePrefix="Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0.9844 kB / 0.8115 GB, free: 2.062 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.32e-05/2.464e-05, allocations: 7.781 kB / 0.8115 GB, free: 2.055 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.02204/0.02206, allocations: 26.98 MB / 0.8379 GB, free: 7.008 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.01191/0.03398, allocations: 8.265 MB / 0.846 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00217/0.03615, allocations: 154.8 kB / 0.8461 GB, free: 14.6 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.004185/0.04033, allocations: 2.864 MB / 0.8489 GB, free: 11.73 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.004083/0.04441, allocations: 1.712 MB / 0.8506 GB, free: 10.02 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.003298/0.04771, allocations: 1.695 MB / 0.8522 GB, free: 8.316 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.006443/0.05415, allocations: 6.262 MB / 0.8584 GB, free: 2.035 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004843/0.059, allocations: 3.774 MB / 0.862 GB, free: 14.17 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006549/0.06555, allocations: 3.762 MB / 0.8657 GB, free: 10.4 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004105/0.06965, allocations: 2.814 MB / 0.8685 GB, free: 7.582 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 0.001101/0.07075, allocations: 0.5078 MB / 0.869 GB, free: 7.074 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002157/0.07291, allocations: 1.205 MB / 0.8701 GB, free: 5.867 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 0.00199/0.0749, allocations: 2.237 MB / 0.8723 GB, free: 3.625 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 0.002129/0.07703, allocations: 1.672 MB / 0.874 GB, free: 1.949 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.005223/0.08225, allocations: 4.519 MB / 0.8784 GB, free: 13.42 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.81e-06/0.08225, allocations: 0 / 0.8784 GB, free: 13.42 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.724e-06/0.08226, allocations: 0 / 0.8784 GB, free: 13.42 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 0.0001403/0.0824, allocations: 0 / 0.8784 GB, free: 13.42 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.005171/0.08757, allocations: 4.486 MB / 0.8827 GB, free: 8.871 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.08761, allocations: 12.02 kB / 0.8828 GB, free: 8.859 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003135/0.09074, allocations: 1.262 MB / 0.884 GB, free: 7.594 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003217/0.09396, allocations: 2.516 MB / 0.8864 GB, free: 5.012 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001339/0.09409, allocations: 271.6 kB / 0.8867 GB, free: 4.746 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000457/0.09455, allocations: 380.8 kB / 0.8871 GB, free: 4.375 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004649/0.0992, allocations: 3.972 MB / 0.8909 GB, free: 15.95 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.528e-05/0.09927, allocations: 19.77 kB / 0.891 GB, free: 15.93 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000259/0.09953, allocations: 160 kB / 0.8911 GB, free: 15.77 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005011/0.1, allocations: 278.9 kB / 0.8914 GB, free: 15.5 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002833/0.1029, allocations: 1.426 MB / 0.8928 GB, free: 14.07 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01596/0.1188, allocations: 19.81 MB / 0.9121 GB, free: 9.648 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007422/0.1196, allocations: 446.8 kB / 0.9126 GB, free: 9.199 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006809/0.1202, allocations: 417.8 kB / 0.913 GB, free: 8.793 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 5.71e-05/0.1203, allocations: 17 kB / 0.913 GB, free: 8.777 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.582e-05/0.1203, allocations: 54.33 kB / 0.913 GB, free: 8.711 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=110): time 3.977e-06/0.1203, allocations: 0 / 0.913 GB, free: 8.711 MB / 0.8698 GB Notification: Performance of matching and sorting (n=131): time 0.009298/0.1296, allocations: 4.89 MB / 0.9178 GB, free: 3.758 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.581e-05/0.1297, allocations: 64.72 kB / 0.9179 GB, free: 3.684 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001163/0.1308, allocations: 1.304 MB / 0.9191 GB, free: 2.363 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 7.5e-05/0.1309, allocations: 53.7 kB / 0.9192 GB, free: 2.305 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009553/0.1319, allocations: 1.776 MB / 0.9209 GB, free: 0.5117 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002996/0.1322, allocations: 499.9 kB / 0.9214 GB, free: 20 kB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003384/0.1325, allocations: 337.1 kB / 0.9217 GB, free: 15.68 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 9.418e-05/0.1326, allocations: 476.8 kB / 0.9222 GB, free: 15.21 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005171/0.1331, allocations: 331.8 kB / 0.9225 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008546/0.134, allocations: 1.097 MB / 0.9236 GB, free: 13.46 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001473/0.1355, allocations: 1.563 MB / 0.9251 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.368e-06/0.1355, allocations: 8 kB / 0.9251 GB, free: 11.56 MB / 0.8855 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.00295/0.1384, allocations: 1.988 MB / 0.927 GB, free: 9.523 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.59e-05/0.1384, allocations: 12 kB / 0.927 GB, free: 9.512 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.816e-05/0.1385, allocations: 20 kB / 0.9271 GB, free: 9.492 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00137/0.1398, allocations: 0.571 MB / 0.9276 GB, free: 8.883 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000861/0.1407, allocations: 387.3 kB / 0.928 GB, free: 8.504 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008912/0.1496, allocations: 17.12 MB / 0.9447 GB, free: 6.273 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/0.1506, allocations: 100 kB / 0.9448 GB, free: 6.176 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-05/0.1507, allocations: 88.05 kB / 0.9449 GB, free: 6.09 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (193): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008347/0.1516, allocations: 264 kB / 0.9451 GB, free: 5.82 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002554/0.1518, allocations: 242.8 kB / 0.9454 GB, free: 5.582 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00241/0.1542, allocations: 1.525 MB / 0.9469 GB, free: 4.008 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.1542, allocations: 12 kB / 0.9469 GB, free: 3.996 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.1543, allocations: 8.141 kB / 0.9469 GB, free: 3.988 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.1543, allocations: 11.95 kB / 0.9469 GB, free: 3.977 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005525/0.1598, allocations: 4.187 MB / 0.951 GB, free: 15.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.1598, allocations: 4 kB / 0.951 GB, free: 15.59 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006164/0.1604, allocations: 235.7 kB / 0.9512 GB, free: 15.36 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001166/0.1616, allocations: 0.5202 MB / 0.9517 GB, free: 14.8 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.664e-05/0.1617, allocations: 35.94 kB / 0.9518 GB, free: 14.77 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008403/0.1701, allocations: 17.11 MB / 0.9685 GB, free: 12.55 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.1701, allocations: 7.938 kB / 0.9685 GB, free: 12.54 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003005/0.1731, allocations: 2.064 MB / 0.9705 GB, free: 10.33 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005726/0.1736, allocations: 350.7 kB / 0.9708 GB, free: 9.988 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001458/0.1738, allocations: 35.94 kB / 0.9709 GB, free: 9.953 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004768/0.1743, allocations: 83.89 kB / 0.9709 GB, free: 9.871 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002815/0.1745, allocations: 124.5 kB / 0.9711 GB, free: 9.75 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.86e-05/0.1746, allocations: 40 kB / 0.9711 GB, free: 9.711 MB / 0.9323 GB Notification: Performance of sorting global known variables: time 0.0007775/0.1754, allocations: 0.7447 MB / 0.9718 GB, free: 8.973 MB / 0.9323 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1754, allocations: 0 / 0.9718 GB, free: 8.973 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.002032/0.1774, allocations: 0.6914 MB / 0.9725 GB, free: 8.281 MB / 0.9323 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (RL_3.phase1.i_p[1],RL_3.phase1.i_p[2],RL_3.phase2.i_p[1],RL_3.phase2.i_p[2],RL_3.phase3.i_p[1],RL_3.phase3.i_p[2]) * 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 (101): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002762/0.1777, allocations: 151 kB / 0.9726 GB, free: 8.125 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.003701/0.1814, allocations: 2.855 MB / 0.9754 GB, free: 5.109 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.1814, allocations: 0 / 0.9754 GB, free: 5.109 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.001802/0.1832, allocations: 2.271 MB / 0.9776 GB, free: 2.676 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001809/0.185, allocations: 0.6378 MB / 0.9783 GB, free: 2.055 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007378/0.1924, allocations: 5.822 MB / 0.984 GB, free: 12.1 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008274/0.1932, allocations: 0.9402 MB / 0.9849 GB, free: 11.13 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.000928/0.1941, allocations: 396.4 kB / 0.9852 GB, free: 10.74 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002201/0.1944, allocations: 112.5 kB / 0.9854 GB, free: 10.63 MB / 0.948 GB Notification: Performance of SimCode: time 2.254e-06/0.1944, allocations: 4 kB / 0.9854 GB, free: 10.63 MB / 0.948 GB Notification: Performance of Templates: time 0.04248/0.2368, allocations: 33.98 MB / 1.019 GB, free: 9.398 MB / 0.9792 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.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: 5.858241761103272]