Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource.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.Sources.Examples.FixedVoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.V.1.|sen.V.2.|sen.V.3.|sen_N.V.1.|sen_N.V.2.|sen_N.V.3.|sen.theta.1.|sen.theta.2.|sen.theta.3.|sen_N.theta.1.|sen_N.theta.2.|sen_N.theta.3.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.V.1.|sen.V.2.|sen.V.3.|sen_N.V.1.|sen_N.V.2.|sen_N.V.3.|sen.theta.1.|sen.theta.2.|sen.theta.3.|sen_N.theta.1.|sen_N.theta.2.|sen_N.theta.3.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.2/2.2, allocations: 390.5 MB / 398 MB, free: 10.91 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.001058/0.001058, allocations: 172.9 kB / 491.2 MB, free: 1.57 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.662/1.662, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.0009116/0.0009116, allocations: 97.94 kB / 0.9269 GB, free: 13.8 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.1e-05/3.103e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3657/0.3657, allocations: 143 MB / 1.212 GB, free: 39.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.257/1.622, allocations: 186.4 MB / 1.394 GB, free: 13.16 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003544/1.623, allocations: 99.27 kB / 1.394 GB, free: 13.14 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.245/1.868, allocations: 102.2 MB / 1.494 GB, free: 6.676 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.295e-06/1.868, allocations: 0 / 1.494 GB, free: 6.676 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.000242/1.868, allocations: 55.94 kB / 1.494 GB, free: 6.621 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: 689 * Number of variables: 689 Notification: Performance of Generate backend data structure: time 0.008872/1.877, allocations: 2.176 MB / 1.496 GB, free: 4.391 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/1.877, allocations: 8.031 kB / 1.496 GB, free: 4.383 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005467/1.883, allocations: 0.75 MB / 1.497 GB, free: 3.629 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004415/1.887, allocations: 1.453 MB / 1.499 GB, free: 2.133 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001719/1.887, allocations: 83.98 kB / 1.499 GB, free: 2.051 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001438/1.889, allocations: 148 kB / 1.499 GB, free: 1.906 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008056/1.897, allocations: 2.958 MB / 1.502 GB, free: 14.94 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01194/1.909, allocations: 3.778 MB / 1.505 GB, free: 10.96 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001516/1.909, allocations: 11.92 kB / 1.505 GB, free: 10.95 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001166/1.91, allocations: 4 kB / 1.505 GB, free: 10.95 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002638/1.911, allocations: 164.2 kB / 1.506 GB, free: 10.79 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02975/1.94, allocations: 20.7 MB / 1.526 GB, free: 4.203 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000748/1.941, allocations: 0.5083 MB / 1.526 GB, free: 3.621 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006758/1.942, allocations: 492.1 kB / 1.527 GB, free: 3.117 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 4.99e-05/1.942, allocations: 8 kB / 1.527 GB, free: 3.109 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.163e-05/1.942, allocations: 50.45 kB / 1.527 GB, free: 3.051 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=50): time 2.965e-06/1.942, allocations: 0 / 1.527 GB, free: 3.051 MB / 0.9323 GB Notification: Performance of matching and sorting (n=56): time 0.007955/1.95, allocations: 3.573 MB / 1.53 GB, free: 15.43 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/1.95, allocations: 239.9 kB / 1.53 GB, free: 15.14 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00186/1.952, allocations: 1.115 MB / 1.532 GB, free: 14 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 9.705e-05/1.952, allocations: 25.7 kB / 1.532 GB, free: 13.97 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009056/1.953, allocations: 1.23 MB / 1.533 GB, free: 12.72 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002702/1.953, allocations: 205.1 kB / 1.533 GB, free: 12.52 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.485e-05/1.953, allocations: 0 / 1.533 GB, free: 12.52 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0002122/1.954, allocations: 402.7 kB / 1.533 GB, free: 12.11 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009461/1.955, allocations: 0.7418 MB / 1.534 GB, free: 11.37 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001382/1.956, allocations: 1.42 MB / 1.535 GB, free: 9.617 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001632/1.958, allocations: 1.104 MB / 1.537 GB, free: 8.516 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.291e-05/1.958, allocations: 8 kB / 1.537 GB, free: 8.508 MB / 0.948 GB Notification: Performance of matching and sorting (n=192) (initialization): time 0.003404/1.961, allocations: 2.215 MB / 1.539 GB, free: 6.285 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.003908/1.965, allocations: 9.387 MB / 1.548 GB, free: 12.16 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.927e-05/1.965, allocations: 24 kB / 1.548 GB, free: 12.14 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.801e-05/1.965, allocations: 44 kB / 1.548 GB, free: 12.09 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001806/1.967, allocations: 443.2 kB / 1.548 GB, free: 11.66 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.229e-05/1.967, allocations: 55.75 kB / 1.548 GB, free: 11.61 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002034/1.969, allocations: 243.3 kB / 1.549 GB, free: 11.37 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000251/1.969, allocations: 87.97 kB / 1.549 GB, free: 11.28 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/1.969, allocations: 4 kB / 1.549 GB, free: 11.28 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003378/1.973, allocations: 1.868 MB / 1.551 GB, free: 9.41 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.138e-05/1.973, allocations: 24 kB / 1.551 GB, free: 9.387 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.312e-05/1.973, allocations: 36 kB / 1.551 GB, free: 9.352 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00138/1.974, allocations: 403.3 kB / 1.551 GB, free: 8.957 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.779e-05/1.974, allocations: 51.78 kB / 1.551 GB, free: 8.906 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001495/1.976, allocations: 151.7 kB / 1.551 GB, free: 8.758 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001994/1.976, allocations: 88.12 kB / 1.551 GB, free: 8.672 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (192): * Single equations (assignments): 192 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004216/1.976, allocations: 172.2 kB / 1.551 GB, free: 8.496 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005087/1.977, allocations: 94.88 kB / 1.552 GB, free: 8.402 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001407/1.978, allocations: 0.8373 MB / 1.552 GB, free: 7.559 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-05/1.978, allocations: 8 kB / 1.552 GB, free: 7.551 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/1.978, allocations: 3.953 kB / 1.552 GB, free: 7.547 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.938e-06/1.978, allocations: 11.98 kB / 1.552 GB, free: 7.535 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01098/1.989, allocations: 7.365 MB / 1.56 GB, free: 15.98 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.36e-05/1.989, allocations: 12.94 kB / 1.56 GB, free: 15.96 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005409/1.99, allocations: 135.8 kB / 1.56 GB, free: 15.83 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.177e-05/1.99, allocations: 16 kB / 1.56 GB, free: 15.82 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.682e-05/1.99, allocations: 20 kB / 1.56 GB, free: 15.8 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.081e-05/1.99, allocations: 31.81 kB / 1.56 GB, free: 15.77 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.374e-05/1.99, allocations: 15.94 kB / 1.56 GB, free: 15.75 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002281/1.992, allocations: 2.38 MB / 1.562 GB, free: 12.92 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007687/1.993, allocations: 343.5 kB / 1.562 GB, free: 12.56 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003313/1.994, allocations: 16 kB / 1.562 GB, free: 12.55 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001238/1.995, allocations: 107.8 kB / 1.563 GB, free: 12.44 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/1.995, allocations: 75.69 kB / 1.563 GB, free: 12.37 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.576e-05/1.995, allocations: 28 kB / 1.563 GB, free: 12.34 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.001443/1.996, allocations: 0.8407 MB / 1.563 GB, free: 11.49 MB / 0.9792 GB Notification: Performance of sort global known variables: time 4.51e-07/1.996, allocations: 0 / 1.563 GB, free: 11.49 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.004293/2.001, allocations: 0.7422 MB / 1.564 GB, free: 10.75 MB / 0.9792 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 56 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003496/2.001, allocations: 148.3 kB / 1.564 GB, free: 10.59 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.003998/2.005, allocations: 2.386 MB / 1.567 GB, free: 8.215 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 1.363e-05/2.005, allocations: 4 kB / 1.567 GB, free: 8.211 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.0006297/2.006, allocations: 425.3 kB / 1.567 GB, free: 7.797 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001709/2.008, allocations: 208.5 kB / 1.567 GB, free: 7.594 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008538/2.016, allocations: 3.388 MB / 1.571 GB, free: 4.02 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003022/2.019, allocations: 2.042 MB / 1.573 GB, free: 1.941 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.002864/2.022, allocations: 0.8638 MB / 1.573 GB, free: 1.074 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003549/2.022, allocations: 71.42 kB / 1.574 GB, free: 1.004 MB / 0.9792 GB Notification: Performance of SimCode: time 1.342e-06/2.022, allocations: 4 kB / 1.574 GB, free: 1 MB / 0.9792 GB Notification: Performance of Templates: time 0.027/2.049, allocations: 12.97 MB / 1.586 GB, free: 4.141 MB / 0.9948 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_FixedVoltageSource.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches