Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.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.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|voltageControl.V_nominal|sou.V_in|Vtr_high.y|voltageControl.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") translateModel(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|voltageControl.V_nominal|sou.V_in|Vtr_high.y|voltageControl.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.507/1.507, allocations: 249.5 MB / 257 MB, free: 6.859 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.001057/0.001057, allocations: 188.8 kB / 316.3 MB, free: 3.254 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.526/1.526, allocations: 205.3 MB / 0.5671 GB, free: 15.91 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.0009958/0.0009958, allocations: 92.77 kB / 0.6714 GB, free: 5.027 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.178e-05/1.181e-05, allocations: 0 / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.209/0.209, allocations: 106.3 MB / 0.8852 GB, free: 12.3 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7679/0.9769, allocations: 148.7 MB / 1.03 GB, free: 6.82 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002515/0.9772, allocations: 82.08 kB / 1.031 GB, free: 6.777 MB / 0.6511 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.01348/0.9907, allocations: 5.606 MB / 1.036 GB, free: 2.23 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.924e-06/0.9907, allocations: 0 / 1.036 GB, free: 2.23 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.036e-05/0.9908, allocations: 4 kB / 1.036 GB, free: 2.227 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0005545/0.9913, allocations: 453.1 kB / 1.036 GB, free: 1.734 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/0.9914, allocations: 8.031 kB / 1.036 GB, free: 1.727 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002169/0.9916, allocations: 31.73 kB / 1.036 GB, free: 1.695 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002665/0.9919, allocations: 211.8 kB / 1.037 GB, free: 1.461 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.944e-05/0.992, allocations: 41.88 kB / 1.037 GB, free: 1.414 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.307e-05/0.992, allocations: 8 kB / 1.037 GB, free: 1.406 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001601/0.9922, allocations: 66.59 kB / 1.037 GB, free: 1.363 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002207/0.9924, allocations: 133.5 kB / 1.037 GB, free: 1.246 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.9924, allocations: 0 / 1.037 GB, free: 1.246 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.9924, allocations: 0 / 1.037 GB, free: 1.246 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.181e-05/0.9925, allocations: 8.141 kB / 1.037 GB, free: 1.238 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007618/0.9932, allocations: 0.6071 MB / 1.038 GB, free: 0.6406 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001863/0.9934, allocations: 56.12 kB / 1.038 GB, free: 0.5859 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.755e-05/0.9935, allocations: 19.17 kB / 1.038 GB, free: 0.5703 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.116e-05/0.9935, allocations: 0 / 1.038 GB, free: 0.5703 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001509/0.9937, allocations: 128.6 kB / 1.038 GB, free: 440 kB / 0.6511 GB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.9937, allocations: 0 / 1.038 GB, free: 440 kB / 0.6511 GB Notification: Performance of matching and sorting (n=7): time 0.00022/0.9939, allocations: 94.3 kB / 1.038 GB, free: 352 kB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.979e-05/0.994, allocations: 140 kB / 1.038 GB, free: 184 kB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001456/0.9941, allocations: 155.2 kB / 1.038 GB, free: 44 kB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.109e-05/0.9942, allocations: 29.7 kB / 1.038 GB, free: 8 kB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.9943, allocations: 138.1 kB / 1.038 GB, free: 15.88 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 2.758e-05/0.9943, allocations: 19.23 kB / 1.038 GB, free: 15.87 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.807e-06/0.9943, allocations: 0 / 1.038 GB, free: 15.87 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001358/0.9945, allocations: 333.4 kB / 1.039 GB, free: 15.54 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.912e-05/0.9945, allocations: 27.31 kB / 1.039 GB, free: 15.52 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.129e-05/0.9946, allocations: 95.12 kB / 1.039 GB, free: 15.41 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.398e-05/0.9947, allocations: 50.34 kB / 1.039 GB, free: 15.37 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.9947, allocations: 0 / 1.039 GB, free: 15.37 MB / 0.6667 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002239/0.995, allocations: 149.8 kB / 1.039 GB, free: 15.24 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 6.131e-05/0.995, allocations: 70.27 kB / 1.039 GB, free: 15.16 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.995, allocations: 0 / 1.039 GB, free: 15.16 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.9951, allocations: 4 kB / 1.039 GB, free: 15.16 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.9952, allocations: 31.92 kB / 1.039 GB, free: 15.12 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.9952, allocations: 7.938 kB / 1.039 GB, free: 15.12 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001256/0.9953, allocations: 27.78 kB / 1.039 GB, free: 15.09 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.593e-05/0.9954, allocations: 11.5 kB / 1.039 GB, free: 15.08 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,$PRE.voltageControl.ctrl.connected,voltageControl.ctrl.connected,$PRE.voltageControl.ctrl.tSwitch,voltageControl.ctrl.tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * 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.0001164/0.9955, allocations: 146.6 kB / 1.039 GB, free: 14.93 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.306e-05/0.9955, allocations: 15.89 kB / 1.039 GB, free: 14.91 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.914e-05/0.9956, allocations: 13.72 kB / 1.039 GB, free: 14.9 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.9956, allocations: 0 / 1.039 GB, free: 14.9 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.9956, allocations: 0 / 1.039 GB, free: 14.9 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.9956, allocations: 0 / 1.039 GB, free: 14.9 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001428/0.9957, allocations: 183.4 kB / 1.039 GB, free: 14.7 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.692e-06/0.9957, allocations: 7.984 kB / 1.039 GB, free: 14.7 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.234e-05/0.9958, allocations: 8 kB / 1.039 GB, free: 14.69 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.9958, allocations: 0 / 1.039 GB, free: 14.69 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.9959, allocations: 7.312 kB / 1.039 GB, free: 14.68 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.9959, allocations: 4 kB / 1.039 GB, free: 14.68 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.9959, allocations: 0 / 1.039 GB, free: 14.68 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002495/0.9961, allocations: 159.2 kB / 1.04 GB, free: 14.54 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 5.406e-05/0.9962, allocations: 81.02 kB / 1.04 GB, free: 14.44 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.967e-05/0.9962, allocations: 8.016 kB / 1.04 GB, free: 14.43 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.459e-05/0.9963, allocations: 16.06 kB / 1.04 GB, free: 14.41 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.859e-05/0.9964, allocations: 15.86 kB / 1.04 GB, free: 14.4 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.026e-05/0.9964, allocations: 4 kB / 1.04 GB, free: 14.4 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 8.791e-05/0.9965, allocations: 128.9 kB / 1.04 GB, free: 14.29 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9965, allocations: 0 / 1.04 GB, free: 14.29 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0002325/0.9968, allocations: 31.91 kB / 1.04 GB, free: 14.26 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageControl.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch) * Number of discrete states: 4 ($whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * 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.0001402/0.9969, allocations: 103.2 kB / 1.04 GB, free: 14.14 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0002359/0.9972, allocations: 193.4 kB / 1.04 GB, free: 13.96 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.9972, allocations: 0 / 1.04 GB, free: 13.96 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 8.635e-05/0.9973, allocations: 101.1 kB / 1.04 GB, free: 13.87 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001835/0.9974, allocations: 15.14 kB / 1.04 GB, free: 13.86 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004255/0.9979, allocations: 190 kB / 1.04 GB, free: 13.67 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000312/0.9982, allocations: 0.7197 MB / 1.041 GB, free: 12.92 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 9.46e-05/0.9983, allocations: 16.94 kB / 1.041 GB, free: 12.9 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.549e-05/0.9983, allocations: 11.44 kB / 1.041 GB, free: 12.89 MB / 0.6667 GB Notification: Performance of SimCode: time 2.4e-07/0.9983, allocations: 0 / 1.041 GB, free: 12.89 MB / 0.6667 GB Notification: Performance of Templates: time 0.003521/1.002, allocations: 1.093 MB / 1.042 GB, free: 11.82 MB / 0.6667 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches