Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.248/2.248, allocations: 248.7 MB / 256.2 MB, free: 6.98 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.001438/0.001438, allocations: 183.4 kB / 315.4 MB, free: 4 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.13/2.13, allocations: 205.3 MB / 0.5662 GB, free: 0.5508 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001225/0.001224, allocations: 88.44 kB / 0.6704 GB, free: 5.758 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.424e-05/2.425e-05, allocations: 0 / 0.7803 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.214, allocations: 106.3 MB / 0.8841 GB, free: 13 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8958/1.11, allocations: 148.6 MB / 1.029 GB, free: 8.012 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002504/1.11, allocations: 74.16 kB / 1.029 GB, free: 7.977 MB / 0.6511 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.0203/1.131, allocations: 5.613 MB / 1.035 GB, free: 3.434 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.463e-06/1.131, allocations: 4 kB / 1.035 GB, free: 3.43 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.454e-05/1.131, allocations: 4 kB / 1.035 GB, free: 3.426 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.0006238/1.131, allocations: 452.2 kB / 1.035 GB, free: 2.934 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/1.131, allocations: 8.25 kB / 1.035 GB, free: 2.926 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002765/1.132, allocations: 31.75 kB / 1.035 GB, free: 2.895 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002944/1.132, allocations: 220 kB / 1.035 GB, free: 2.652 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.022e-05/1.132, allocations: 33.89 kB / 1.035 GB, free: 2.613 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.374e-05/1.132, allocations: 4 kB / 1.035 GB, free: 2.609 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002145/1.132, allocations: 71.47 kB / 1.036 GB, free: 2.562 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002754/1.133, allocations: 124.8 kB / 1.036 GB, free: 2.449 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/1.133, allocations: 0 / 1.036 GB, free: 2.449 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.242e-05/1.133, allocations: 3.953 kB / 1.036 GB, free: 2.445 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.504e-05/1.133, allocations: 8.125 kB / 1.036 GB, free: 2.438 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009752/1.134, allocations: 0.6084 MB / 1.036 GB, free: 1.84 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002504/1.134, allocations: 51.81 kB / 1.036 GB, free: 1.789 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.039e-05/1.134, allocations: 19.23 kB / 1.036 GB, free: 1.773 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.507e-05/1.134, allocations: 0 / 1.036 GB, free: 1.773 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001847/1.134, allocations: 132.4 kB / 1.036 GB, free: 1.629 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=7): time 1.934e-06/1.134, allocations: 0 / 1.036 GB, free: 1.629 MB / 0.6511 GB Notification: Performance of matching and sorting (n=7): time 0.0002929/1.134, allocations: 93.62 kB / 1.037 GB, free: 1.543 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.068e-05/1.135, allocations: 131.5 kB / 1.037 GB, free: 1.387 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001901/1.135, allocations: 161 kB / 1.037 GB, free: 1.242 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.398e-05/1.135, allocations: 29.7 kB / 1.037 GB, free: 1.207 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 9.664e-05/1.135, allocations: 142.4 kB / 1.037 GB, free: 1.078 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.879e-05/1.135, allocations: 15.06 kB / 1.037 GB, free: 1.066 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.043e-05/1.135, allocations: 0 / 1.037 GB, free: 1.066 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001318/1.135, allocations: 326.1 kB / 1.037 GB, free: 0.7461 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.363e-05/1.135, allocations: 29.55 kB / 1.037 GB, free: 0.7266 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/1.135, allocations: 96.56 kB / 1.037 GB, free: 0.6133 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001054/1.135, allocations: 42.48 kB / 1.037 GB, free: 0.582 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/1.135, allocations: 0 / 1.037 GB, free: 0.582 MB / 0.6511 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000362/1.136, allocations: 160.6 kB / 1.038 GB, free: 452 kB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 5.762e-05/1.136, allocations: 59.41 kB / 1.038 GB, free: 380 kB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/1.136, allocations: 320 / 1.038 GB, free: 380 kB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/1.136, allocations: 8 kB / 1.038 GB, free: 372 kB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002088/1.136, allocations: 35.48 kB / 1.038 GB, free: 340 kB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.121e-05/1.136, allocations: 11.94 kB / 1.038 GB, free: 328 kB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002085/1.136, allocations: 27.78 kB / 1.038 GB, free: 300 kB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.017e-05/1.136, allocations: 4 kB / 1.038 GB, free: 296 kB / 0.6511 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.0001221/1.137, allocations: 150 kB / 1.038 GB, free: 136 kB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002335/1.137, allocations: 98.84 kB / 1.038 GB, free: 44 kB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.739e-05/1.137, allocations: 15.81 kB / 1.038 GB, free: 28 kB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.957e-05/1.137, allocations: 17.45 kB / 1.038 GB, free: 16 kB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/1.137, allocations: 3.953 kB / 1.038 GB, free: 12 kB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/1.137, allocations: 0 / 1.038 GB, free: 12 kB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/1.137, allocations: 7.938 kB / 1.038 GB, free: 4 kB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002195/1.137, allocations: 182.2 kB / 1.038 GB, free: 15.81 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/1.137, allocations: 4 kB / 1.038 GB, free: 15.8 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000132/1.137, allocations: 11.98 kB / 1.038 GB, free: 15.79 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/1.137, allocations: 0 / 1.038 GB, free: 15.79 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.804e-05/1.137, allocations: 8 kB / 1.038 GB, free: 15.79 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.357e-06/1.137, allocations: 3.984 kB / 1.038 GB, free: 15.78 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/1.137, allocations: 0 / 1.038 GB, free: 15.78 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003571/1.138, allocations: 152.3 kB / 1.038 GB, free: 15.64 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 5.998e-05/1.138, allocations: 88.95 kB / 1.038 GB, free: 15.54 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.953e-05/1.138, allocations: 3.188 kB / 1.038 GB, free: 15.54 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001528/1.138, allocations: 15.98 kB / 1.038 GB, free: 15.52 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.085e-05/1.138, allocations: 12.05 kB / 1.038 GB, free: 15.51 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.21e-05/1.138, allocations: 2.625 kB / 1.038 GB, free: 15.51 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0001252/1.138, allocations: 129.5 kB / 1.039 GB, free: 15.4 MB / 0.6667 GB Notification: Performance of sort global known variables: time 4.51e-07/1.138, allocations: 0 / 1.039 GB, free: 15.4 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0003482/1.139, allocations: 24 kB / 1.039 GB, free: 15.38 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.0006774/1.139, allocations: 0.7018 MB / 1.039 GB, free: 14.68 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0003119/1.14, allocations: 192.6 kB / 1.04 GB, free: 14.49 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/1.14, allocations: 0 / 1.04 GB, free: 14.49 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0001378/1.14, allocations: 95.41 kB / 1.04 GB, free: 14.4 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002514/1.14, allocations: 19.36 kB / 1.04 GB, free: 14.39 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007609/1.141, allocations: 235.1 kB / 1.04 GB, free: 14.14 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002996/1.141, allocations: 0.7236 MB / 1.041 GB, free: 13.4 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0001217/1.141, allocations: 20.75 kB / 1.041 GB, free: 13.38 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.576e-05/1.142, allocations: 39.05 kB / 1.041 GB, free: 13.36 MB / 0.6667 GB Notification: Performance of SimCode: time 8.81e-07/1.142, allocations: 0 / 1.041 GB, free: 13.36 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03455/1.176, allocations: 2.278 MB / 1.043 GB, free: 11.1 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002983/1.176, allocations: 145 kB / 1.043 GB, free: 10.91 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.261/3.438, allocations: 0 / 1.043 GB, free: 10.91 MB / 0.6667 GB