Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.Transformer,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_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.Transformer") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.Transformer,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_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.271/2.271, allocations: 393.5 MB / 408.4 MB, free: 10.96 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.001285/0.001285, allocations: 172 kB / 0.4902 GB, free: 2.262 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.585/1.585, allocations: 223.2 MB / 0.7992 GB, free: 14.75 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009947/0.0009943, allocations: 94.83 kB / 0.9396 GB, free: 1.926 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004261/0.0004261, allocations: 14.19 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4633/0.4637, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2767/0.7405, allocations: 200.3 MB / 1.425 GB, free: 1.203 MB / 0.9167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003955/0.741, allocations: 95.94 kB / 1.425 GB, free: 1.109 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 1.052/1.793, allocations: 113 MB / 1.535 GB, free: 110.9 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.613e-06/1.793, allocations: 0 / 1.535 GB, free: 110.9 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.0001461/1.793, allocations: 56 kB / 1.535 GB, free: 110.9 MB / 0.9167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 789 * Number of variables: 789 Notification: Performance of Generate backend data structure: time 0.009147/1.802, allocations: 2.433 MB / 1.538 GB, free: 108.4 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/1.802, allocations: 8.031 kB / 1.538 GB, free: 108.4 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01146/1.813, allocations: 1.904 MB / 1.54 GB, free: 106.5 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00516/1.819, allocations: 1.679 MB / 1.541 GB, free: 104.7 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001853/1.819, allocations: 221.9 kB / 1.541 GB, free: 104.5 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001529/1.82, allocations: 284 kB / 1.542 GB, free: 104.2 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01194/1.832, allocations: 5.321 MB / 1.547 GB, free: 98.83 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.256e-05/1.832, allocations: 7.953 kB / 1.547 GB, free: 98.82 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003709/1.833, allocations: 120 kB / 1.547 GB, free: 98.7 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002811/1.833, allocations: 196.9 kB / 1.547 GB, free: 98.51 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01239/1.846, allocations: 5.37 MB / 1.552 GB, free: 93.12 MB / 0.9167 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02528/1.871, allocations: 22.76 MB / 1.575 GB, free: 68.3 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00514/1.876, allocations: 2.496 MB / 1.577 GB, free: 65.69 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002103/1.876, allocations: 122.1 kB / 1.577 GB, free: 65.55 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.192e-05/1.876, allocations: 55.5 kB / 1.577 GB, free: 65.49 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=116): time 3.737e-06/1.876, allocations: 0 / 1.577 GB, free: 65.49 MB / 0.9167 GB Notification: Performance of matching and sorting (n=146): time 0.03296/1.909, allocations: 11.56 MB / 1.589 GB, free: 53.89 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.65e-05/1.909, allocations: 222.9 kB / 1.589 GB, free: 53.62 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001229/1.911, allocations: 0.9446 MB / 1.59 GB, free: 52.67 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.0002173/1.911, allocations: 53.64 kB / 1.59 GB, free: 52.61 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005052/1.911, allocations: 1.239 MB / 1.591 GB, free: 51.35 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004083/1.912, allocations: 0.5007 MB / 1.591 GB, free: 50.84 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001384/1.912, allocations: 47.94 kB / 1.591 GB, free: 50.8 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001488/1.912, allocations: 423 kB / 1.592 GB, free: 50.38 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003957/1.916, allocations: 1.76 MB / 1.594 GB, free: 48.61 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004029/1.92, allocations: 2.436 MB / 1.596 GB, free: 45.86 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003941/1.924, allocations: 2.083 MB / 1.598 GB, free: 43.77 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-05/1.924, allocations: 4 kB / 1.598 GB, free: 43.77 MB / 0.9167 GB Notification: Performance of matching and sorting (n=274) (initialization): time 0.009981/1.934, allocations: 4.997 MB / 1.603 GB, free: 38.74 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001754/1.936, allocations: 8.619 MB / 1.611 GB, free: 29.45 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.749e-05/1.936, allocations: 20 kB / 1.611 GB, free: 29.43 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002013/1.938, allocations: 0.7465 MB / 1.612 GB, free: 28.66 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003308/1.941, allocations: 0.7643 MB / 1.613 GB, free: 27.9 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0102/1.952, allocations: 12.79 MB / 1.625 GB, free: 14.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003285/1.955, allocations: 478.9 kB / 1.626 GB, free: 13.83 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002621/1.955, allocations: 115.9 kB / 1.626 GB, free: 13.72 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.077e-05/1.955, allocations: 7.938 kB / 1.626 GB, free: 13.71 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00963/1.965, allocations: 4.856 MB / 1.631 GB, free: 8.832 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.257e-05/1.965, allocations: 23.94 kB / 1.631 GB, free: 8.809 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001526/1.966, allocations: 0.696 MB / 1.631 GB, free: 8.094 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002974/1.969, allocations: 0.7565 MB / 1.632 GB, free: 7.336 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01126/1.981, allocations: 12.7 MB / 1.644 GB, free: 9.84 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003287/1.984, allocations: 455.1 kB / 1.645 GB, free: 9.395 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005918/1.985, allocations: 112 kB / 1.645 GB, free: 9.285 MB / 0.9323 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 99 * 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 (232): * Single equations (assignments): 226 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003252/1.988, allocations: 1.285 MB / 1.646 GB, free: 7.988 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005843/1.988, allocations: 126.5 kB / 1.646 GB, free: 7.863 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01161/2, allocations: 4.347 MB / 1.651 GB, free: 3.465 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.859e-05/2, allocations: 16 kB / 1.651 GB, free: 3.449 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.372e-05/2, allocations: 8 kB / 1.651 GB, free: 3.441 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.386e-05/2, allocations: 11.92 kB / 1.651 GB, free: 3.43 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02042/2.021, allocations: 7.925 MB / 1.658 GB, free: 11.33 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.221e-05/2.021, allocations: 8 kB / 1.658 GB, free: 11.32 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002677/2.024, allocations: 0.5265 MB / 1.659 GB, free: 10.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001971/2.026, allocations: 0.6375 MB / 1.66 GB, free: 10.14 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002627/2.026, allocations: 51.95 kB / 1.66 GB, free: 10.09 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01535/2.041, allocations: 12.34 MB / 1.672 GB, free: 12.95 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.19e-05/2.041, allocations: 11.94 kB / 1.672 GB, free: 12.94 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01213/2.053, allocations: 4.496 MB / 1.676 GB, free: 8.164 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001583/2.055, allocations: 499.4 kB / 1.677 GB, free: 7.656 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005162/2.056, allocations: 31.94 kB / 1.677 GB, free: 7.625 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00286/2.058, allocations: 399.3 kB / 1.677 GB, free: 7.234 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003881/2.059, allocations: 132.6 kB / 1.677 GB, free: 7.105 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001876/2.059, allocations: 59.95 kB / 1.677 GB, free: 7.047 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.001608/2.061, allocations: 0.7254 MB / 1.678 GB, free: 6.324 MB / 0.9636 GB Notification: Performance of sort global known variables: time 4.6e-07/2.061, allocations: 4 kB / 1.678 GB, free: 6.32 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.006238/2.067, allocations: 1.164 MB / 1.679 GB, free: 5.156 MB / 0.9636 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 95 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005751/2.068, allocations: 163.2 kB / 1.679 GB, free: 4.988 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.02113/2.089, allocations: 8.106 MB / 1.687 GB, free: 12.73 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 1.501e-05/2.089, allocations: 4 kB / 1.687 GB, free: 12.73 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.006609/2.095, allocations: 2.724 MB / 1.69 GB, free: 9.922 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001726/2.097, allocations: 147.5 kB / 1.69 GB, free: 9.781 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02568/2.123, allocations: 8.16 MB / 1.698 GB, free: 1.516 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004381/2.127, allocations: 2.326 MB / 1.7 GB, free: 15.15 MB / 0.9948 GB Notification: Performance of simCode: alias equations: time 0.00518/2.132, allocations: 1.244 MB / 1.701 GB, free: 13.9 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006899/2.133, allocations: 127.3 kB / 1.701 GB, free: 13.77 MB / 0.9948 GB Notification: Performance of SimCode: time 1.673e-06/2.133, allocations: 0 / 1.701 GB, free: 13.77 MB / 0.9948 GB Notification: Performance of Templates: time 0.05467/2.188, allocations: 28.99 MB / 1.73 GB, free: 0.8672 MB / 1.01 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.Transformer.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.Transformer.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.Transformer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.Transformer.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.Transformer.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.Transformer.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.Transformer_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Conversion_Examples_Transformer.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches