Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.371/2.371, allocations: 390.3 MB / 405.3 MB, free: 13.54 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.001081/0.00108, allocations: 177 kB / 498.1 MB, free: 5.762 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.722/1.722, allocations: 223.2 MB / 0.7948 GB, free: 18.91 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.001299/0.001298, allocations: 110.2 kB / 0.9346 GB, free: 7.203 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003767/0.0003769, allocations: 11.81 kB / 1.084 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3418/0.3422, allocations: 142.3 MB / 1.223 GB, free: 89.62 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2417/0.584, allocations: 166.3 MB / 1.385 GB, free: 3.07 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003229/0.5844, allocations: 79.95 kB / 1.385 GB, free: 2.992 MB / 0.8855 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/Interfaces/Source.mo:28:9-28: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.01633/0.6007, allocations: 6.453 MB / 1.392 GB, free: 12.46 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.613e-06/0.6007, allocations: 3.938 kB / 1.392 GB, free: 12.45 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 1.395e-05/0.6008, allocations: 4 kB / 1.392 GB, free: 12.45 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0006654/0.6014, allocations: 490.5 kB / 1.392 GB, free: 11.91 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 6.29e-05/0.6015, allocations: 8.031 kB / 1.392 GB, free: 11.9 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002758/0.6018, allocations: 27.86 kB / 1.392 GB, free: 11.87 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003026/0.6021, allocations: 210.8 kB / 1.392 GB, free: 11.62 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.315e-05/0.6022, allocations: 29.89 kB / 1.392 GB, free: 11.59 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.047e-05/0.6022, allocations: 12 kB / 1.392 GB, free: 11.58 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003447/0.6026, allocations: 155.6 kB / 1.393 GB, free: 11.41 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.6026, allocations: 0 / 1.393 GB, free: 11.41 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.923e-05/0.6027, allocations: 7.953 kB / 1.393 GB, free: 11.41 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.538e-05/0.6027, allocations: 4.188 kB / 1.393 GB, free: 11.4 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002246/0.6029, allocations: 92.44 kB / 1.393 GB, free: 11.31 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001107/0.6041, allocations: 0.6334 MB / 1.393 GB, free: 10.61 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003114/0.6044, allocations: 62.61 kB / 1.393 GB, free: 10.54 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 2.397e-05/0.6044, allocations: 0 / 1.393 GB, free: 10.54 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002557/0.6047, allocations: 142.8 kB / 1.393 GB, free: 10.38 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=7): time 1.603e-06/0.6047, allocations: 0 / 1.393 GB, free: 10.38 MB / 0.9011 GB Notification: Performance of matching and sorting (n=7): time 0.0005648/0.6053, allocations: 248.7 kB / 1.394 GB, free: 10.11 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001338/0.6054, allocations: 136.5 kB / 1.394 GB, free: 9.941 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000206/0.6056, allocations: 170 kB / 1.394 GB, free: 9.77 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 2.785e-05/0.6057, allocations: 25.7 kB / 1.394 GB, free: 9.738 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/0.6058, allocations: 147.7 kB / 1.394 GB, free: 9.586 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 2.692e-05/0.6059, allocations: 11.81 kB / 1.394 GB, free: 9.574 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.076e-05/0.6059, allocations: 4 kB / 1.394 GB, free: 9.57 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001982/0.6061, allocations: 322.8 kB / 1.394 GB, free: 9.246 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/0.6062, allocations: 43.97 kB / 1.395 GB, free: 9.203 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001617/0.6064, allocations: 110.4 kB / 1.395 GB, free: 9.062 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001727/0.6065, allocations: 107.4 kB / 1.395 GB, free: 8.945 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.6065, allocations: 0 / 1.395 GB, free: 8.945 MB / 0.9011 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004459/0.607, allocations: 248.5 kB / 1.395 GB, free: 8.684 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 7.99e-05/0.6071, allocations: 64.59 kB / 1.395 GB, free: 8.609 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.6071, allocations: 4 kB / 1.395 GB, free: 8.605 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.02e-05/0.6072, allocations: 7.953 kB / 1.395 GB, free: 8.598 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001349/0.6073, allocations: 36.23 kB / 1.395 GB, free: 8.562 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.213e-05/0.6073, allocations: 11.98 kB / 1.395 GB, free: 8.551 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000134/0.6075, allocations: 19.84 kB / 1.395 GB, free: 8.531 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.456e-05/0.6075, allocations: 12 kB / 1.395 GB, free: 8.52 MB / 0.9011 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 () * Number of clocked 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.0001912/0.6077, allocations: 168.6 kB / 1.395 GB, free: 8.34 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.443e-05/0.6077, allocations: 15.81 kB / 1.395 GB, free: 8.324 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.222e-05/0.6078, allocations: 17.39 kB / 1.395 GB, free: 8.305 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.6078, allocations: 4.031 kB / 1.395 GB, free: 8.301 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.327e-05/0.6079, allocations: 11.95 kB / 1.395 GB, free: 8.289 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.6079, allocations: 0 / 1.395 GB, free: 8.289 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002426/0.6081, allocations: 209.6 kB / 1.396 GB, free: 8.035 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.6081, allocations: 0 / 1.396 GB, free: 8.035 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.68e-05/0.6082, allocations: 8 kB / 1.396 GB, free: 8.027 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.6082, allocations: 3.938 kB / 1.396 GB, free: 8.023 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.545e-05/0.6083, allocations: 11.98 kB / 1.396 GB, free: 8.012 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.6083, allocations: 0 / 1.396 GB, free: 8.012 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.6083, allocations: 0 / 1.396 GB, free: 8.012 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004538/0.6087, allocations: 210.7 kB / 1.396 GB, free: 7.781 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 8.011e-05/0.6088, allocations: 92.94 kB / 1.396 GB, free: 7.672 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.165e-05/0.6089, allocations: 0 / 1.396 GB, free: 7.672 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.959e-05/0.609, allocations: 23.98 kB / 1.396 GB, free: 7.648 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.718e-05/0.6091, allocations: 8.062 kB / 1.396 GB, free: 7.641 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.027e-05/0.6091, allocations: 3.984 kB / 1.396 GB, free: 7.637 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0001425/0.6093, allocations: 131.2 kB / 1.396 GB, free: 7.508 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6093, allocations: 0 / 1.396 GB, free: 7.508 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0002701/0.6095, allocations: 32 kB / 1.396 GB, free: 7.477 MB / 0.9011 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) * Number of clocked states: 0 () * 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.0002332/0.6098, allocations: 107.2 kB / 1.396 GB, free: 7.363 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0003562/0.6101, allocations: 219 kB / 1.396 GB, free: 7.125 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.6102, allocations: 0 / 1.396 GB, free: 7.125 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0001421/0.6103, allocations: 107.3 kB / 1.396 GB, free: 7.008 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000243/0.6106, allocations: 19.92 kB / 1.396 GB, free: 6.988 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007746/0.6113, allocations: 330.3 kB / 1.397 GB, free: 6.645 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003893/0.6117, allocations: 0.716 MB / 1.397 GB, free: 5.902 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 8.633e-05/0.6118, allocations: 20.41 kB / 1.398 GB, free: 5.883 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.761e-05/0.6119, allocations: 15.44 kB / 1.398 GB, free: 5.867 MB / 0.9011 GB Notification: Performance of SimCode: time 2.3e-07/0.6119, allocations: 4 kB / 1.398 GB, free: 5.863 MB / 0.9011 GB Notification: Performance of Templates: time 0.004428/0.6163, allocations: 1.169 MB / 1.399 GB, free: 4.707 MB / 0.9011 GB make -j1 -f Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","../files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches