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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.373/1.373, allocations: 289.8 MB / 297.1 MB, free: 6.695 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.00101/0.00101, allocations: 185.3 kB / 366.3 MB, free: 2.008 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.065/1.065, allocations: 205.1 MB / 0.6256 GB, free: 5.852 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.000803/0.0008029, allocations: 97.81 kB / 0.7396 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2003/0.2011, allocations: 122.4 MB / 0.8591 GB, free: 13.31 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4713/0.6724, allocations: 116.3 MB / 0.9726 GB, free: 68.02 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1606/0.8331, allocations: 155 MB / 1.124 GB, free: 9.5 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002622/0.8334, allocations: 84.88 kB / 1.124 GB, free: 9.418 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: 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.01263/0.846, allocations: 5.744 MB / 1.13 GB, free: 3.566 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.139e-05/0.8461, allocations: 8 kB / 1.13 GB, free: 3.559 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000203/0.8463, allocations: 23.8 kB / 1.13 GB, free: 3.535 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002143/0.8465, allocations: 210.8 kB / 1.13 GB, free: 3.289 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.508e-05/0.8466, allocations: 29.89 kB / 1.13 GB, free: 3.254 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.247e-05/0.8466, allocations: 12 kB / 1.13 GB, free: 3.242 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001412/0.8467, allocations: 64.17 kB / 1.13 GB, free: 3.18 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000186/0.8469, allocations: 124.8 kB / 1.13 GB, free: 3.043 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.847, allocations: 4 kB / 1.13 GB, free: 3.039 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.697e-05/0.847, allocations: 7.906 kB / 1.13 GB, free: 3.031 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.657e-05/0.847, allocations: 4.188 kB / 1.13 GB, free: 3.027 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006725/0.8477, allocations: 0.6105 MB / 1.131 GB, free: 2.367 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001729/0.8479, allocations: 58.55 kB / 1.131 GB, free: 2.301 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.259e-05/0.8479, allocations: 22.3 kB / 1.131 GB, free: 2.277 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.214e-05/0.8479, allocations: 4 kB / 1.131 GB, free: 2.273 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.542e-05/0.848, allocations: 110.9 kB / 1.131 GB, free: 2.141 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.848, allocations: 0 / 1.131 GB, free: 2.141 MB / 0.7292 GB Notification: Performance of matching and sorting (n=7): time 0.0001684/0.8482, allocations: 81.44 kB / 1.131 GB, free: 2.055 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.098e-05/0.8483, allocations: 136.5 kB / 1.131 GB, free: 1.891 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001277/0.8484, allocations: 154.7 kB / 1.131 GB, free: 1.734 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.68e-05/0.8484, allocations: 25.7 kB / 1.131 GB, free: 1.703 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 6.289e-05/0.8485, allocations: 131.4 kB / 1.131 GB, free: 1.57 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.204e-05/0.8485, allocations: 23.78 kB / 1.131 GB, free: 1.547 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.193e-06/0.8485, allocations: 0 / 1.131 GB, free: 1.547 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 8.933e-05/0.8486, allocations: 326.8 kB / 1.132 GB, free: 1.219 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.036e-05/0.8487, allocations: 24 kB / 1.132 GB, free: 1.195 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.536e-05/0.8488, allocations: 101.9 kB / 1.132 GB, free: 1.062 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.854e-05/0.8489, allocations: 49.5 kB / 1.132 GB, free: 1.016 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.8489, allocations: 0 / 1.132 GB, free: 1.016 MB / 0.7292 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002227/0.8491, allocations: 137.7 kB / 1.132 GB, free: 0.875 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.102e-05/0.8491, allocations: 11.98 kB / 1.132 GB, free: 0.8633 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.8491, allocations: 5.562 kB / 1.132 GB, free: 0.8594 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.8492, allocations: 11.84 kB / 1.132 GB, free: 0.8477 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001223/0.8493, allocations: 32.77 kB / 1.132 GB, free: 0.8164 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.8493, allocations: 4 kB / 1.132 GB, free: 0.8125 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001416/0.8494, allocations: 23.83 kB / 1.132 GB, free: 0.7891 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.716e-05/0.8495, allocations: 12 kB / 1.132 GB, free: 0.7773 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 8.876e-05/0.8496, allocations: 144.5 kB / 1.132 GB, free: 0.625 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.217e-05/0.8496, allocations: 15.81 kB / 1.132 GB, free: 0.6094 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.473e-05/0.8496, allocations: 17.39 kB / 1.132 GB, free: 0.5859 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.8496, allocations: 0 / 1.132 GB, free: 0.5859 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.8496, allocations: 0 / 1.132 GB, free: 0.5859 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.624e-06/0.8497, allocations: 0.75 kB / 1.132 GB, free: 0.5859 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001293/0.8498, allocations: 186.1 kB / 1.133 GB, free: 376 kB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.8498, allocations: 0 / 1.133 GB, free: 376 kB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.175e-05/0.8499, allocations: 15.98 kB / 1.133 GB, free: 360 kB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.8499, allocations: 0 / 1.133 GB, free: 360 kB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.8499, allocations: 4 kB / 1.133 GB, free: 356 kB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.8499, allocations: 0 / 1.133 GB, free: 356 kB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.8499, allocations: 0 / 1.133 GB, free: 356 kB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002084/0.8501, allocations: 145.5 kB / 1.133 GB, free: 192 kB / 0.7292 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003195/0.8505, allocations: 0.5427 MB / 1.133 GB, free: 15.62 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 4.515e-05/0.8505, allocations: 88.92 kB / 1.133 GB, free: 15.52 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.073e-05/0.8506, allocations: 4 kB / 1.133 GB, free: 15.52 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.8507, allocations: 12.03 kB / 1.133 GB, free: 15.5 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.477e-05/0.8507, allocations: 11.98 kB / 1.133 GB, free: 15.49 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.258e-06/0.8508, allocations: 8.062 kB / 1.133 GB, free: 15.48 MB / 0.7448 GB Notification: Performance of sort global known variables: time 8.97e-05/0.8508, allocations: 128.2 kB / 1.133 GB, free: 15.36 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.00083/0.8517, allocations: 27.91 kB / 1.133 GB, free: 15.33 MB / 0.7448 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.0001138/0.8518, allocations: 108.8 kB / 1.134 GB, free: 15.22 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001797/0.852, allocations: 127.3 kB / 1.134 GB, free: 15.08 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.852, allocations: 0 / 1.134 GB, free: 15.08 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 8.009e-05/0.8521, allocations: 74.27 kB / 1.134 GB, free: 15 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001632/0.8523, allocations: 19.94 kB / 1.134 GB, free: 14.98 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004131/0.8527, allocations: 179.7 kB / 1.134 GB, free: 14.78 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002685/0.853, allocations: 0.7309 MB / 1.135 GB, free: 14.02 MB / 0.7448 GB Notification: Performance of SimCode: time 2.7e-07/0.853, allocations: 0 / 1.135 GB, free: 14.02 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)