Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N,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.|load.terminal.phase.4..v.1.|load.terminal.phase.4..v.2.|load.terminal.phase.4..i.1.|load.terminal.phase.4..i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N,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.|load.terminal.phase.4..v.1.|load.terminal.phase.4..v.2.|load.terminal.phase.4..i.1.|load.terminal.phase.4..i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.784/1.784, allocations: 387.2 MB / 394.5 MB, free: 13.64 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 177.3 kB / 487 MB, free: 5.387 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.136/1.136, allocations: 221.3 MB / 0.7819 GB, free: 1.383 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008236/0.0008236, allocations: 96.5 kB / 0.9213 GB, free: 2.621 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.962e-06/6.052e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1871/0.1871, allocations: 142.3 MB / 1.205 GB, free: 26.22 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5483/0.7355, allocations: 203.6 MB / 1.404 GB, free: 5.824 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002178/0.7357, allocations: 97.8 kB / 1.404 GB, free: 5.77 MB / 0.8386 GB Notification: Performance of FrontEnd: time 0.1668/0.9026, allocations: 76.12 MB / 1.478 GB, free: 5.609 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 8.546e-05/0.9027, allocations: 36 kB / 1.478 GB, free: 5.574 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: 425 * Number of variables: 425 Notification: Performance of Generate backend data structure: time 0.003419/0.9061, allocations: 1.668 MB / 1.48 GB, free: 3.953 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.9062, allocations: 12.03 kB / 1.48 GB, free: 3.941 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003072/0.9092, allocations: 0.5609 MB / 1.481 GB, free: 3.387 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002206/0.9114, allocations: 1.238 MB / 1.482 GB, free: 2.391 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.587e-05/0.9115, allocations: 52 kB / 1.482 GB, free: 2.34 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002868/0.9118, allocations: 95.91 kB / 1.482 GB, free: 2.246 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002928/0.9147, allocations: 2.017 MB / 1.484 GB, free: 0.9414 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003416/0.9182, allocations: 2.437 MB / 1.486 GB, free: 15.14 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.166e-05/0.9182, allocations: 3.938 kB / 1.486 GB, free: 15.14 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001575/0.9184, allocations: 4 kB / 1.486 GB, free: 15.14 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.887e-05/0.9185, allocations: 93.33 kB / 1.486 GB, free: 15.05 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01039/0.9289, allocations: 10.6 MB / 1.497 GB, free: 4.102 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00078/0.9297, allocations: 0.6948 MB / 1.497 GB, free: 3.398 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006289/0.9303, allocations: 0.5265 MB / 1.498 GB, free: 2.871 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001124/0.9304, allocations: 101.5 kB / 1.498 GB, free: 2.754 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.346e-05/0.9305, allocations: 38.84 kB / 1.498 GB, free: 2.707 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=46): time 1.974e-06/0.9305, allocations: 0 / 1.498 GB, free: 2.707 MB / 0.9167 GB Notification: Performance of matching and sorting (n=72): time 0.009685/0.9402, allocations: 4.205 MB / 1.502 GB, free: 14.49 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.891e-05/0.9402, allocations: 93.7 kB / 1.502 GB, free: 14.38 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008378/0.941, allocations: 0.7766 MB / 1.503 GB, free: 13.6 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 6.764e-05/0.9411, allocations: 25.7 kB / 1.503 GB, free: 13.57 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003701/0.9415, allocations: 0.6994 MB / 1.504 GB, free: 12.86 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001888/0.9417, allocations: 244.4 kB / 1.504 GB, free: 12.61 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.963e-05/0.9418, allocations: 0 / 1.504 GB, free: 12.61 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 0.0001559/0.9419, allocations: 398.7 kB / 1.504 GB, free: 12.21 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009498/0.9429, allocations: 0.7795 MB / 1.505 GB, free: 11.44 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001115/0.944, allocations: 1.134 MB / 1.506 GB, free: 10.14 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001591/0.9456, allocations: 1.108 MB / 1.507 GB, free: 9.031 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.728e-06/0.9456, allocations: 4 kB / 1.507 GB, free: 9.027 MB / 0.9323 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.006778/0.9524, allocations: 3.158 MB / 1.51 GB, free: 5.852 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.001129/0.9536, allocations: 4.254 MB / 1.515 GB, free: 1.266 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/0.9536, allocations: 12 kB / 1.515 GB, free: 1.254 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004953/0.9585, allocations: 1.269 MB / 1.516 GB, free: 15.98 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007743/0.9593, allocations: 203.6 kB / 1.516 GB, free: 15.78 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009316/0.9686, allocations: 6.763 MB / 1.523 GB, free: 8.879 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001093/0.9698, allocations: 123.8 kB / 1.523 GB, free: 8.758 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.938e-05/0.9699, allocations: 44 kB / 1.523 GB, free: 8.715 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 5.8e-06/0.9699, allocations: 4 kB / 1.523 GB, free: 8.711 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002341/0.9722, allocations: 1.728 MB / 1.524 GB, free: 6.98 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.9722, allocations: 8.234 kB / 1.524 GB, free: 6.973 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.9723, allocations: 20 kB / 1.525 GB, free: 6.953 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001186/0.9735, allocations: 308.2 kB / 1.525 GB, free: 6.652 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.541e-05/0.9735, allocations: 23.92 kB / 1.525 GB, free: 6.629 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007324/0.9742, allocations: 91.8 kB / 1.525 GB, free: 6.539 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.028e-05/0.9743, allocations: 47.98 kB / 1.525 GB, free: 6.492 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 14} * Non-linear torn systems: 1 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002053/0.9745, allocations: 140.6 kB / 1.525 GB, free: 6.348 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001387/0.9747, allocations: 86.97 kB / 1.525 GB, free: 6.262 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006604/0.9813, allocations: 2.901 MB / 1.528 GB, free: 3.344 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.9813, allocations: 8 kB / 1.528 GB, free: 3.336 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.9813, allocations: 7.906 kB / 1.528 GB, free: 3.328 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/0.9813, allocations: 7.984 kB / 1.528 GB, free: 3.32 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009567/0.9909, allocations: 5.231 MB / 1.533 GB, free: 13.98 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.9909, allocations: 0 / 1.533 GB, free: 13.98 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004116/0.9913, allocations: 108.1 kB / 1.533 GB, free: 13.88 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005236/0.9966, allocations: 1.472 MB / 1.535 GB, free: 12.4 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.01e-05/0.9966, allocations: 4 kB / 1.535 GB, free: 12.4 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01164/1.008, allocations: 8.749 MB / 1.543 GB, free: 3.418 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/1.008, allocations: 0 / 1.543 GB, free: 3.418 MB / 0.9636 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006169/1.014, allocations: 2.876 MB / 1.546 GB, free: 456 kB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005215/1.015, allocations: 332.2 kB / 1.546 GB, free: 104 kB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001632/1.015, allocations: 4 kB / 1.546 GB, free: 100 kB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/1.016, allocations: 115.8 kB / 1.546 GB, free: 15.98 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/1.016, allocations: 48.48 kB / 1.547 GB, free: 15.93 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.251e-05/1.016, allocations: 20 kB / 1.547 GB, free: 15.91 MB / 0.9792 GB Notification: Performance of sort global known variables: time 0.0006963/1.017, allocations: 0.6006 MB / 1.547 GB, free: 15.32 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.001882/1.019, allocations: 0.6249 MB / 1.548 GB, free: 14.69 MB / 0.9792 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 13} * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003006/1.019, allocations: 183.5 kB / 1.548 GB, free: 14.5 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.00437/1.024, allocations: 2.906 MB / 1.551 GB, free: 11.59 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/1.024, allocations: 7.938 kB / 1.551 GB, free: 11.58 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.002192/1.026, allocations: 1.23 MB / 1.552 GB, free: 10.34 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008409/1.027, allocations: 209 kB / 1.552 GB, free: 10.14 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004865/1.032, allocations: 2.892 MB / 1.555 GB, free: 7.18 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001557/1.033, allocations: 1.787 MB / 1.557 GB, free: 5.359 MB / 0.9792 GB Notification: Performance of SimCode: time 6.61e-07/1.033, allocations: 0 / 1.557 GB, free: 5.359 MB / 0.9792 GB Notification: Performance of Templates: time 0.03676/1.07, allocations: 28.36 MB / 1.584 GB, free: 9.16 MB / 1.01 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches