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.TransformerDD.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.TransformerDD,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.TransformerDD") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerDD,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.TransformerDD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.4/1.4, allocations: 249.3 MB / 261.8 MB, free: 5.906 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.001044/0.001044, allocations: 173 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.424/1.424, allocations: 205.2 MB / 0.572 GB, free: 10.69 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.000915/0.000915, allocations: 90.52 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.538e-05/4.54e-05, allocations: 4 kB / 0.7879 GB, free: 97.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2234/0.2234, allocations: 106.3 MB / 0.8918 GB, free: 6.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7265/0.95, allocations: 180.9 MB / 1.068 GB, free: 4.113 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002885/0.9504, allocations: 93.19 kB / 1.069 GB, free: 4.062 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.2311/1.181, allocations: 98.57 MB / 1.165 GB, free: 6.953 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.783e-06/1.181, allocations: 0 / 1.165 GB, free: 6.953 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 9.084e-05/1.182, allocations: 52 kB / 1.165 GB, free: 6.902 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: 729 * Number of variables: 729 Notification: Performance of Generate backend data structure: time 0.005604/1.187, allocations: 2.251 MB / 1.167 GB, free: 4.598 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/1.187, allocations: 12.02 kB / 1.167 GB, free: 4.586 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01129/1.199, allocations: 1.873 MB / 1.169 GB, free: 2.707 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004132/1.203, allocations: 1.607 MB / 1.17 GB, free: 1.051 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001595/1.203, allocations: 205.4 kB / 1.171 GB, free: 0.8477 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007611/1.204, allocations: 264 kB / 1.171 GB, free: 0.5898 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008826/1.213, allocations: 4.512 MB / 1.175 GB, free: 11.98 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.849e-05/1.213, allocations: 7.938 kB / 1.175 GB, free: 11.97 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003424/1.213, allocations: 116 kB / 1.175 GB, free: 11.86 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003176/1.213, allocations: 184.5 kB / 1.176 GB, free: 11.68 MB / 0.7917 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007581/1.221, allocations: 4.254 MB / 1.18 GB, free: 7.406 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02532/1.246, allocations: 20.98 MB / 1.2 GB, free: 0.582 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003303/1.25, allocations: 2.51 MB / 1.203 GB, free: 13.91 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002653/1.252, allocations: 1.641 MB / 1.204 GB, free: 12.24 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002044/1.253, allocations: 122 kB / 1.204 GB, free: 12.11 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.158e-05/1.253, allocations: 59.44 kB / 1.204 GB, free: 12.04 MB / 0.823 GB Notification: Performance of pre-optimization done (n=139): time 3.066e-06/1.253, allocations: 0 / 1.204 GB, free: 12.04 MB / 0.823 GB Notification: Performance of matching and sorting (n=181): time 0.02801/1.281, allocations: 9.966 MB / 1.214 GB, free: 2.031 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/1.281, allocations: 230.9 kB / 1.214 GB, free: 1.758 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001187/1.282, allocations: 0.8859 MB / 1.215 GB, free: 0.8672 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001646/1.282, allocations: 53.7 kB / 1.215 GB, free: 0.8086 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006731/1.283, allocations: 1.096 MB / 1.216 GB, free: 15.69 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005692/1.283, allocations: 0.6123 MB / 1.217 GB, free: 15.07 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001512/1.284, allocations: 48 kB / 1.217 GB, free: 15.02 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002163/1.284, allocations: 427.3 kB / 1.217 GB, free: 14.6 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001972/1.286, allocations: 1.398 MB / 1.219 GB, free: 13.2 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002364/1.288, allocations: 1.968 MB / 1.221 GB, free: 10.98 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002332/1.29, allocations: 1.719 MB / 1.222 GB, free: 9.262 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.121e-05/1.29, allocations: 8 kB / 1.222 GB, free: 9.254 MB / 0.8386 GB Notification: Performance of matching and sorting (n=290) (initialization): time 0.007135/1.298, allocations: 4.409 MB / 1.227 GB, free: 4.832 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.002602/1.3, allocations: 6.882 MB / 1.233 GB, free: 13.41 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.413e-05/1.3, allocations: 16 kB / 1.233 GB, free: 13.4 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002509/1.303, allocations: 1.059 MB / 1.234 GB, free: 12.33 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003567/1.306, allocations: 0.7448 MB / 1.235 GB, free: 11.59 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01304/1.319, allocations: 10.11 MB / 1.245 GB, free: 1.188 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003445/1.323, allocations: 463 kB / 1.246 GB, free: 0.7344 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003447/1.323, allocations: 112 kB / 1.246 GB, free: 0.625 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/1.323, allocations: 4 kB / 1.246 GB, free: 0.6211 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007519/1.331, allocations: 4.257 MB / 1.25 GB, free: 12.35 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.866e-05/1.331, allocations: 20.27 kB / 1.25 GB, free: 12.33 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002099/1.333, allocations: 0.864 MB / 1.251 GB, free: 11.46 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003394/1.336, allocations: 0.7448 MB / 1.251 GB, free: 10.71 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01287/1.349, allocations: 10.05 MB / 1.261 GB, free: 404 kB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.4184/1.768, allocations: 441 kB / 1.262 GB, free: 252.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006065/1.768, allocations: 111.1 kB / 1.262 GB, free: 252.4 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 (220): * Single equations (assignments): 218 * 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 prepare postOptimizeDAE: time 0.0005839/1.769, allocations: 235.8 kB / 1.262 GB, free: 252.3 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004404/1.769, allocations: 123.5 kB / 1.262 GB, free: 252.3 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007506/1.777, allocations: 4.177 MB / 1.266 GB, free: 252.1 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-05/1.777, allocations: 18.7 kB / 1.266 GB, free: 252.1 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.746e-05/1.777, allocations: 11.69 kB / 1.266 GB, free: 252.1 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.402e-05/1.777, allocations: 10.05 kB / 1.266 GB, free: 252.1 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01481/1.792, allocations: 7.814 MB / 1.274 GB, free: 251.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.167e-05/1.792, allocations: 7.5 kB / 1.274 GB, free: 251.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002958/1.795, allocations: 0.5382 MB / 1.274 GB, free: 251.1 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002511/1.797, allocations: 0.874 MB / 1.275 GB, free: 251.1 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002093/1.798, allocations: 58.75 kB / 1.275 GB, free: 251.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01254/1.81, allocations: 9.678 MB / 1.285 GB, free: 248.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.115e-06/1.81, allocations: 13 kB / 1.285 GB, free: 248.6 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006363/1.817, allocations: 4.229 MB / 1.289 GB, free: 247.3 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001422/1.818, allocations: 0.5334 MB / 1.289 GB, free: 247.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002324/1.818, allocations: 40.11 kB / 1.289 GB, free: 247.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002717/1.821, allocations: 405 kB / 1.29 GB, free: 247.1 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004152/1.822, allocations: 161.3 kB / 1.29 GB, free: 247.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001634/1.822, allocations: 71.11 kB / 1.29 GB, free: 247.1 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.00112/1.823, allocations: 0.6975 MB / 1.291 GB, free: 247 MB / 0.8698 GB Notification: Performance of sort global known variables: time 2.1e-07/1.823, allocations: 6.375 kB / 1.291 GB, free: 247 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.004128/1.827, allocations: 1.226 MB / 1.292 GB, free: 247 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 107 * 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.0003158/1.827, allocations: 169.3 kB / 1.292 GB, free: 246.9 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.01138/1.839, allocations: 6.547 MB / 1.298 GB, free: 246.3 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.255e-05/1.839, allocations: 4.656 kB / 1.298 GB, free: 246.3 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.003622/1.842, allocations: 2.12 MB / 1.301 GB, free: 246 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001204/1.844, allocations: 170.1 kB / 1.301 GB, free: 245.9 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01486/1.858, allocations: 5.88 MB / 1.306 GB, free: 244.1 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001848/1.86, allocations: 2.277 MB / 1.309 GB, free: 243.1 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.003697/1.864, allocations: 1.316 MB / 1.31 GB, free: 243.1 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004883/1.865, allocations: 128.2 kB / 1.31 GB, free: 243.1 MB / 0.8698 GB Notification: Performance of SimCode: time 9.72e-07/1.865, allocations: 3.719 kB / 1.31 GB, free: 243.1 MB / 0.8698 GB Notification: Performance of Templates: time 0.04258/1.907, allocations: 34.03 MB / 1.343 GB, free: 241.7 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerDD.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerDD.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerDD.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerDD.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerDD.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerDD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerDD.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerDD_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesUnbalanced_Conversion_Examples_TransformerDD.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerDD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches