Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownYD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownYD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|probe_Y_1.V.1.|probe_Y_1.V.2.|probe_Y_1.V.3.|probe_D_1.V.1.|probe_D_1.V.2.|probe_D_1.V.3.|probe_2.V.1.|probe_2.V.2.|probe_2.V.3.|probe_Y_1.theta.1.|probe_Y_1.theta.2.|probe_Y_1.theta.3.|probe_D_1.theta.1.|probe_D_1.theta.2.|probe_D_1.theta.3.|probe_2.theta.1.|probe_2.theta.2.|probe_2.theta.3.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownYD") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownYD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|probe_Y_1.V.1.|probe_Y_1.V.2.|probe_Y_1.V.3.|probe_D_1.V.1.|probe_D_1.V.2.|probe_D_1.V.3.|probe_2.V.1.|probe_2.V.2.|probe_2.V.3.|probe_Y_1.theta.1.|probe_Y_1.theta.2.|probe_Y_1.theta.3.|probe_D_1.theta.1.|probe_D_1.theta.2.|probe_D_1.theta.3.|probe_2.theta.1.|probe_2.theta.2.|probe_2.theta.3.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownYD") [: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 7.0.3-maint.7.0.x/package.mo): time 1.321/1.321, allocations: 249.4 MB / 256.7 MB, free: 7.125 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001053/0.001053, allocations: 180.4 kB / 316 MB, free: 3.535 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.279/1.279, allocations: 205.1 MB / 0.5667 GB, free: 15.68 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009203/0.0009202, allocations: 98.83 kB / 0.671 GB, free: 4.812 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.534e-06/7.634e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1744/0.1745, allocations: 106.3 MB / 0.8846 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5903/0.7648, allocations: 181.5 MB / 1.062 GB, free: 7.449 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002765/0.7651, allocations: 97.38 kB / 1.062 GB, free: 7.398 MB / 0.6823 GB Notification: Performance of FrontEnd: time 0.2336/0.9988, allocations: 101.2 MB / 1.161 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 7.51e-05/0.9989, allocations: 52 kB / 1.161 GB, free: 11.55 MB / 0.7761 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 769 * Number of variables: 769 Notification: Performance of Generate backend data structure: time 0.005244/1.004, allocations: 2.385 MB / 1.163 GB, free: 9.113 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001002/1.004, allocations: 8.031 kB / 1.163 GB, free: 9.105 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01559/1.02, allocations: 1.511 MB / 1.165 GB, free: 7.59 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00408/1.024, allocations: 1.658 MB / 1.166 GB, free: 5.887 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.949e-05/1.024, allocations: 99.89 kB / 1.166 GB, free: 5.789 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005299/1.025, allocations: 164 kB / 1.166 GB, free: 5.629 MB / 0.7761 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00766/1.032, allocations: 4.076 MB / 1.17 GB, free: 1.547 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00808/1.04, allocations: 4.43 MB / 1.175 GB, free: 13.03 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.532e-05/1.04, allocations: 3.938 kB / 1.175 GB, free: 13.02 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003063/1.041, allocations: 7.984 kB / 1.175 GB, free: 13.02 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002953/1.041, allocations: 184.8 kB / 1.175 GB, free: 12.83 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0249/1.066, allocations: 22.15 MB / 1.197 GB, free: 4.621 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002114/1.068, allocations: 1.799 MB / 1.198 GB, free: 2.754 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001892/1.07, allocations: 1.421 MB / 1.2 GB, free: 1.316 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001883/1.07, allocations: 122 kB / 1.2 GB, free: 1.18 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.856e-05/1.07, allocations: 59.61 kB / 1.2 GB, free: 1.113 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=132): time 4.518e-06/1.07, allocations: 0 / 1.2 GB, free: 1.113 MB / 0.8073 GB Notification: Performance of matching and sorting (n=174): time 0.01463/1.085, allocations: 7.778 MB / 1.208 GB, free: 9.297 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001467/1.085, allocations: 230.9 kB / 1.208 GB, free: 9.023 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001268/1.086, allocations: 0.8312 MB / 1.209 GB, free: 8.184 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001638/1.087, allocations: 25.7 kB / 1.209 GB, free: 8.152 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007318/1.087, allocations: 1.103 MB / 1.21 GB, free: 7.031 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006003/1.088, allocations: 0.5736 MB / 1.21 GB, free: 6.449 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001402/1.088, allocations: 4 kB / 1.21 GB, free: 6.445 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0002288/1.088, allocations: 431.1 kB / 1.211 GB, free: 6.016 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002056/1.09, allocations: 1.387 MB / 1.212 GB, free: 4.621 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002444/1.093, allocations: 1.947 MB / 1.214 GB, free: 2.426 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003609/1.096, allocations: 2.012 MB / 1.216 GB, free: 432 kB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.324e-05/1.097, allocations: 4 kB / 1.216 GB, free: 428 kB / 0.823 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.00861/1.105, allocations: 4.585 MB / 1.22 GB, free: 11.82 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.002295/1.107, allocations: 6.865 MB / 1.227 GB, free: 4.414 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.622e-05/1.108, allocations: 16.19 kB / 1.227 GB, free: 4.398 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002747/1.11, allocations: 1.039 MB / 1.228 GB, free: 3.352 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003425/1.114, allocations: 0.6239 MB / 1.229 GB, free: 2.727 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0139/1.128, allocations: 9.457 MB / 1.238 GB, free: 9.023 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003558/1.131, allocations: 291.4 kB / 1.238 GB, free: 8.738 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004046/1.132, allocations: 111.9 kB / 1.238 GB, free: 8.629 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/1.132, allocations: 4 kB / 1.238 GB, free: 8.625 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008524/1.14, allocations: 4.311 MB / 1.242 GB, free: 4.305 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-05/1.14, allocations: 16 kB / 1.243 GB, free: 4.289 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002155/1.142, allocations: 0.8764 MB / 1.243 GB, free: 3.406 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003489/1.146, allocations: 0.6162 MB / 1.244 GB, free: 2.789 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01242/1.158, allocations: 9.052 MB / 1.253 GB, free: 9.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003235/1.162, allocations: 287.4 kB / 1.253 GB, free: 9.219 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003352/1.162, allocations: 107.9 kB / 1.253 GB, free: 9.113 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 79 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 210 * 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: 2 {(6,77.8%) 30,(7,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005538/1.163, allocations: 160.3 kB / 1.253 GB, free: 8.949 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004226/1.163, allocations: 126.6 kB / 1.253 GB, free: 8.824 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008711/1.172, allocations: 4.218 MB / 1.258 GB, free: 4.566 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.361e-05/1.172, allocations: 20 kB / 1.258 GB, free: 4.547 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.637e-05/1.172, allocations: 15.91 kB / 1.258 GB, free: 4.531 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.06e-05/1.172, allocations: 7.969 kB / 1.258 GB, free: 4.523 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3079/1.48, allocations: 7.421 MB / 1.265 GB, free: 357.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.66e-05/1.48, allocations: 7.938 kB / 1.265 GB, free: 357.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002482/1.482, allocations: 429.5 kB / 1.265 GB, free: 357.9 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002106/1.484, allocations: 0.8783 MB / 1.266 GB, free: 357.9 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001848/1.485, allocations: 26.77 kB / 1.266 GB, free: 357.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01034/1.495, allocations: 8.841 MB / 1.275 GB, free: 355.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.151e-05/1.495, allocations: 11.94 kB / 1.275 GB, free: 355.5 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006343/1.501, allocations: 4.174 MB / 1.279 GB, free: 354.5 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009705/1.502, allocations: 0.5163 MB / 1.279 GB, free: 354.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002783/1.503, allocations: 13.64 kB / 1.279 GB, free: 354.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002391/1.505, allocations: 259.7 kB / 1.28 GB, free: 354.4 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001898/1.505, allocations: 101.6 kB / 1.28 GB, free: 354.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001545/1.505, allocations: 63.12 kB / 1.28 GB, free: 354.4 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0008143/1.506, allocations: 0.6453 MB / 1.28 GB, free: 354.3 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.003841/1.51, allocations: 1.041 MB / 1.281 GB, free: 354.3 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 99 * 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: 2 {(4,100.0%) 32,(4,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003368/1.51, allocations: 136.9 kB / 1.282 GB, free: 354.2 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.009469/1.52, allocations: 6.054 MB / 1.287 GB, free: 353.7 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.232e-05/1.52, allocations: 10.33 kB / 1.288 GB, free: 353.7 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.003362/1.523, allocations: 1.907 MB / 1.289 GB, free: 353.5 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001248/1.525, allocations: 121.3 kB / 1.289 GB, free: 353.5 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01733/1.542, allocations: 5.69 MB / 1.295 GB, free: 352.5 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002607/1.545, allocations: 2.43 MB / 1.297 GB, free: 351.8 MB / 0.8698 GB Notification: Performance of SimCode: time 9.01e-07/1.545, allocations: 0 / 1.297 GB, free: 351.8 MB / 0.8698 GB Notification: Performance of Templates: time 0.07964/1.624, allocations: 51.32 MB / 1.348 GB, free: 342.1 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownYD.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownYD.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownYD.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownYD.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownYD.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownYD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownYD.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownYD_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesUnbalanced_Conversion_Examples_TransformerStepDownYD.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownYD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches