Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_8_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_8_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.687/1.687, allocations: 289.9 MB / 297.4 MB, free: 6.383 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001179/0.001179, allocations: 176.9 kB / 366.7 MB, free: 1.641 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.985/1.985, allocations: 205.3 MB / 0.626 GB, free: 7.156 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009724/0.0009724, allocations: 90.81 kB / 0.74 GB, free: 39.54 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.026e-05/2.029e-05, allocations: 0 / 0.8598 GB, free: 12.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8216/0.8217, allocations: 116.3 MB / 0.9733 GB, free: 76.12 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2398/1.062, allocations: 155.1 MB / 1.125 GB, free: 11.01 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002399/1.062, allocations: 84.66 kB / 1.125 GB, free: 10.93 MB / 0.7292 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.01405/1.076, allocations: 5.604 MB / 1.13 GB, free: 5.32 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.705e-06/1.076, allocations: 7.344 kB / 1.13 GB, free: 5.316 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.434e-05/1.076, allocations: 0 / 1.13 GB, free: 5.316 MB / 0.7292 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.0007979/1.077, allocations: 460 kB / 1.131 GB, free: 4.809 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 8.403e-05/1.077, allocations: 8.031 kB / 1.131 GB, free: 4.801 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002669/1.077, allocations: 23.81 kB / 1.131 GB, free: 4.777 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004099/1.078, allocations: 215.2 kB / 1.131 GB, free: 4.527 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.885e-05/1.078, allocations: 34.7 kB / 1.131 GB, free: 4.488 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.374e-05/1.078, allocations: 8 kB / 1.131 GB, free: 4.48 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000216/1.078, allocations: 64.16 kB / 1.131 GB, free: 4.418 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002549/1.078, allocations: 127.2 kB / 1.131 GB, free: 4.281 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/1.078, allocations: 3.984 kB / 1.131 GB, free: 4.277 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.125e-05/1.078, allocations: 0.9688 kB / 1.131 GB, free: 4.277 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.481e-05/1.078, allocations: 8.188 kB / 1.131 GB, free: 4.27 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001032/1.079, allocations: 0.6065 MB / 1.132 GB, free: 3.617 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002503/1.08, allocations: 46.58 kB / 1.132 GB, free: 3.562 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.084e-05/1.08, allocations: 29.02 kB / 1.132 GB, free: 3.531 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.502e-05/1.08, allocations: 0 / 1.132 GB, free: 3.531 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002132/1.08, allocations: 134.6 kB / 1.132 GB, free: 3.375 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=7): time 4.117e-06/1.08, allocations: 3.984 kB / 1.132 GB, free: 3.371 MB / 0.7292 GB Notification: Performance of matching and sorting (n=7): time 0.0003042/1.08, allocations: 88.09 kB / 1.132 GB, free: 3.281 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001292/1.08, allocations: 140.5 kB / 1.132 GB, free: 3.113 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002119/1.081, allocations: 153.9 kB / 1.132 GB, free: 2.957 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.703e-05/1.081, allocations: 25.7 kB / 1.132 GB, free: 2.926 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/1.081, allocations: 135.5 kB / 1.133 GB, free: 2.789 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.912e-05/1.081, allocations: 15.8 kB / 1.133 GB, free: 2.773 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.761e-05/1.081, allocations: 0 / 1.133 GB, free: 2.773 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0002295/1.081, allocations: 330.8 kB / 1.133 GB, free: 2.441 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.487e-05/1.081, allocations: 28 kB / 1.133 GB, free: 2.414 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001504/1.081, allocations: 105 kB / 1.133 GB, free: 2.281 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.429e-05/1.081, allocations: 41.67 kB / 1.133 GB, free: 2.242 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/1.081, allocations: 3.938 kB / 1.133 GB, free: 2.238 MB / 0.7292 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000282/1.082, allocations: 153.6 kB / 1.133 GB, free: 2.082 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 7.338e-05/1.082, allocations: 67.39 kB / 1.133 GB, free: 2.004 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.513e-05/1.082, allocations: 9.938 kB / 1.133 GB, free: 1.996 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/1.082, allocations: 4 kB / 1.133 GB, free: 1.992 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001376/1.082, allocations: 27.98 kB / 1.133 GB, free: 1.965 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.748e-06/1.082, allocations: 0.75 kB / 1.133 GB, free: 1.965 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001384/1.082, allocations: 31.77 kB / 1.133 GB, free: 1.934 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.917e-05/1.082, allocations: 8 kB / 1.133 GB, free: 1.926 MB / 0.7292 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.0001557/1.082, allocations: 150.6 kB / 1.133 GB, free: 1.766 MB / 0.7292 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001845/1.083, allocations: 109.4 kB / 1.134 GB, free: 1.652 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.164e-05/1.083, allocations: 11.91 kB / 1.134 GB, free: 1.641 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.676e-05/1.083, allocations: 9.844 kB / 1.134 GB, free: 1.625 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/1.083, allocations: 4 kB / 1.134 GB, free: 1.621 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/1.083, allocations: 3.094 kB / 1.134 GB, free: 1.621 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.894e-06/1.083, allocations: 3.953 kB / 1.134 GB, free: 1.617 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002196/1.083, allocations: 182.2 kB / 1.134 GB, free: 1.402 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/1.083, allocations: 0 / 1.134 GB, free: 1.402 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.355e-05/1.083, allocations: 12.56 kB / 1.134 GB, free: 1.391 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/1.083, allocations: 4 kB / 1.134 GB, free: 1.387 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.52e-05/1.083, allocations: 0 / 1.134 GB, free: 1.387 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/1.083, allocations: 0 / 1.134 GB, free: 1.387 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.206e-06/1.083, allocations: 6.297 kB / 1.134 GB, free: 1.383 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002884/1.083, allocations: 152.9 kB / 1.134 GB, free: 1.215 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 8.667e-05/1.084, allocations: 93.03 kB / 1.134 GB, free: 1.105 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.181e-05/1.084, allocations: 8.062 kB / 1.134 GB, free: 1.098 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.495e-05/1.084, allocations: 8 kB / 1.134 GB, free: 1.09 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.1e-05/1.084, allocations: 11.92 kB / 1.134 GB, free: 1.078 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/1.084, allocations: 8 kB / 1.134 GB, free: 1.07 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001297/1.084, allocations: 124.8 kB / 1.134 GB, free: 0.9492 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.7e-07/1.084, allocations: 0 / 1.134 GB, free: 0.9492 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002517/1.084, allocations: 27.91 kB / 1.134 GB, free: 0.9219 MB / 0.7292 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.0007915/1.085, allocations: 0.6992 MB / 1.135 GB, free: 200 kB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003281/1.085, allocations: 198.6 kB / 1.135 GB, free: 15.98 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/1.085, allocations: 0 / 1.135 GB, free: 15.98 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001071/1.085, allocations: 95.39 kB / 1.135 GB, free: 15.87 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002446/1.086, allocations: 15.89 kB / 1.135 GB, free: 15.86 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007627/1.087, allocations: 231.1 kB / 1.135 GB, free: 15.59 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005692/1.087, allocations: 0.7197 MB / 1.136 GB, free: 14.85 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 8.772e-05/1.087, allocations: 20.75 kB / 1.136 GB, free: 14.83 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.762e-05/1.087, allocations: 35.42 kB / 1.136 GB, free: 14.8 MB / 0.7448 GB Notification: Performance of SimCode: time 4.138e-06/1.087, allocations: 0 / 1.136 GB, free: 14.8 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02483/1.112, allocations: 2.268 MB / 1.138 GB, free: 12.61 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001989/1.112, allocations: 142.4 kB / 1.139 GB, free: 12.41 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.869/2.981, allocations: 5.625 kB / 1.139 GB, free: 12.41 MB / 0.7448 GB (rm -f Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)