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.895/1.895, allocations: 292.6 MB / 307.5 MB, free: 5.172 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.001134/0.001134, allocations: 185 kB / 377.1 MB, free: 1.535 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.053/2.053, allocations: 205.4 MB / 0.6366 GB, free: 8.5 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.001024/0.001024, allocations: 85.83 kB / 0.7509 GB, free: 63.21 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004418/0.0004418, allocations: 11.98 kB / 0.8748 GB, free: 11.11 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3519/0.3524, allocations: 116.3 MB / 0.9884 GB, free: 6.66 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.05/1.403, allocations: 155.8 MB / 1.141 GB, free: 21.99 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003506/1.403, allocations: 78.78 kB / 1.141 GB, free: 21.92 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.01633/1.42, allocations: 5.679 MB / 1.146 GB, free: 17.81 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.083e-06/1.42, allocations: 7.938 kB / 1.146 GB, free: 17.8 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.697e-05/1.42, allocations: 4 kB / 1.146 GB, free: 17.8 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.0007278/1.42, allocations: 479.9 kB / 1.147 GB, free: 17.28 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.643e-05/1.421, allocations: 12.02 kB / 1.147 GB, free: 17.27 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.13e-05/1.421, allocations: 46.62 kB / 1.147 GB, free: 17.22 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002461/1.421, allocations: 29.02 kB / 1.147 GB, free: 17.2 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002611/1.421, allocations: 203.6 kB / 1.147 GB, free: 16.97 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.786e-05/1.421, allocations: 39 kB / 1.147 GB, free: 16.93 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.628e-05/1.421, allocations: 20.78 kB / 1.147 GB, free: 16.91 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003497/1.422, allocations: 146.6 kB / 1.147 GB, free: 16.77 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/1.422, allocations: 0 / 1.147 GB, free: 16.77 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.159e-05/1.422, allocations: 4 kB / 1.147 GB, free: 16.77 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.805e-05/1.422, allocations: 4.844 kB / 1.147 GB, free: 16.76 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002166/1.422, allocations: 98.52 kB / 1.147 GB, free: 16.68 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00092/1.423, allocations: 0.6339 MB / 1.148 GB, free: 16.05 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002669/1.423, allocations: 57.84 kB / 1.148 GB, free: 15.99 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.663e-05/1.423, allocations: 3.938 kB / 1.148 GB, free: 15.99 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002111/1.423, allocations: 148.4 kB / 1.148 GB, free: 15.84 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/1.423, allocations: 0 / 1.148 GB, free: 15.84 MB / 0.7292 GB Notification: Performance of matching and sorting (n=7): time 0.0004833/1.424, allocations: 245.8 kB / 1.148 GB, free: 15.58 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.536e-05/1.424, allocations: 133.8 kB / 1.148 GB, free: 15.42 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001877/1.424, allocations: 167 kB / 1.149 GB, free: 15.27 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/1.424, allocations: 33.7 kB / 1.149 GB, free: 15.23 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 8.702e-05/1.424, allocations: 138.6 kB / 1.149 GB, free: 15.09 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.656e-05/1.424, allocations: 21.81 kB / 1.149 GB, free: 15.07 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.756e-06/1.424, allocations: 4 kB / 1.149 GB, free: 15.07 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 9.349e-05/1.425, allocations: 323.2 kB / 1.149 GB, free: 14.75 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.314e-05/1.425, allocations: 42.08 kB / 1.149 GB, free: 14.71 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001227/1.425, allocations: 107.8 kB / 1.149 GB, free: 14.58 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001259/1.425, allocations: 112.6 kB / 1.149 GB, free: 14.46 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/1.425, allocations: 4.75 kB / 1.149 GB, free: 14.46 MB / 0.7292 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000354/1.425, allocations: 245.1 kB / 1.15 GB, free: 14.22 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 7.366e-05/1.425, allocations: 63.27 kB / 1.15 GB, free: 14.15 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/1.425, allocations: 5.266 kB / 1.15 GB, free: 14.14 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.086e-05/1.425, allocations: 4.516 kB / 1.15 GB, free: 14.14 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/1.426, allocations: 28.22 kB / 1.15 GB, free: 14.12 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.447e-05/1.426, allocations: 12.55 kB / 1.15 GB, free: 14.11 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001399/1.426, allocations: 27.39 kB / 1.15 GB, free: 14.08 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.744e-05/1.426, allocations: 8.562 kB / 1.15 GB, free: 14.07 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 () * 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.0001306/1.426, allocations: 167.8 kB / 1.15 GB, free: 13.9 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.25e-05/1.426, allocations: 12.66 kB / 1.15 GB, free: 13.89 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.799e-05/1.426, allocations: 14.86 kB / 1.15 GB, free: 13.88 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/1.426, allocations: 0.6094 kB / 1.15 GB, free: 13.88 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/1.426, allocations: 0 / 1.15 GB, free: 13.88 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/1.426, allocations: 4.703 kB / 1.15 GB, free: 13.88 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001961/1.426, allocations: 213.6 kB / 1.15 GB, free: 13.64 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/1.426, allocations: 0.6875 kB / 1.15 GB, free: 13.64 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.796e-05/1.426, allocations: 18.05 kB / 1.15 GB, free: 13.62 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/1.426, allocations: 6.016 kB / 1.15 GB, free: 13.62 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/1.426, allocations: 0 / 1.15 GB, free: 13.62 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/1.426, allocations: 1.453 kB / 1.15 GB, free: 13.62 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/1.426, allocations: 0 / 1.15 GB, free: 13.62 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003886/1.427, allocations: 218.1 kB / 1.15 GB, free: 13.4 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.603e-05/1.427, allocations: 94.23 kB / 1.15 GB, free: 13.29 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.876e-05/1.427, allocations: 4.656 kB / 1.15 GB, free: 13.29 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.523e-05/1.427, allocations: 10.58 kB / 1.15 GB, free: 13.28 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.977e-05/1.427, allocations: 12.72 kB / 1.15 GB, free: 13.27 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.278e-06/1.427, allocations: 4.562 kB / 1.15 GB, free: 13.27 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.000104/1.427, allocations: 134.2 kB / 1.151 GB, free: 13.14 MB / 0.7292 GB Notification: Performance of sort global known variables: time 9.91e-07/1.427, allocations: 0 / 1.151 GB, free: 13.14 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002541/1.427, allocations: 39.88 kB / 1.151 GB, free: 13.11 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) * 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.0005993/1.428, allocations: 0.7576 MB / 1.151 GB, free: 12.33 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.000302/1.428, allocations: 217.3 kB / 1.152 GB, free: 12.11 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/1.428, allocations: 4 kB / 1.152 GB, free: 12.1 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.000104/1.428, allocations: 100.4 kB / 1.152 GB, free: 12 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002187/1.429, allocations: 19.48 kB / 1.152 GB, free: 11.98 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00202/1.431, allocations: 2.427 MB / 1.154 GB, free: 9.555 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002848/1.431, allocations: 0.7198 MB / 1.155 GB, free: 8.828 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001018/1.431, allocations: 20.95 kB / 1.155 GB, free: 8.816 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.088e-05/1.431, allocations: 35.05 kB / 1.155 GB, free: 8.785 MB / 0.7292 GB Notification: Performance of SimCode: time 2.71e-07/1.431, allocations: 4 kB / 1.155 GB, free: 8.781 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01961/1.451, allocations: 2.67 MB / 1.157 GB, free: 7.273 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002438/1.451, allocations: 188 kB / 1.158 GB, free: 7.031 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.055/3.506, allocations: 0 / 1.158 GB, free: 7.031 MB / 0.7292 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)