Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.275/1.275, allocations: 249.4 MB / 256.7 MB, free: 7.035 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.001021/0.001021, allocations: 192.7 kB / 316 MB, free: 3.559 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.242/1.242, allocations: 205.1 MB / 0.5667 GB, free: 15.63 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008704/0.0008703, allocations: 90.34 kB / 0.671 GB, free: 4.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3492/0.3501, allocations: 112.4 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1807/0.5308, allocations: 106.3 MB / 0.8846 GB, free: 12.58 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5368/1.068, allocations: 148.8 MB / 1.03 GB, free: 7.578 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001957/1.068, allocations: 76.02 kB / 1.03 GB, free: 7.539 MB / 0.6511 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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.01244/1.08, allocations: 5.733 MB / 1.036 GB, free: 2.824 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/1.08, allocations: 12 kB / 1.036 GB, free: 2.812 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001938/1.081, allocations: 23.8 kB / 1.036 GB, free: 2.789 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002258/1.081, allocations: 221 kB / 1.036 GB, free: 2.543 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.268e-05/1.081, allocations: 29.89 kB / 1.036 GB, free: 2.508 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.301e-05/1.081, allocations: 8 kB / 1.036 GB, free: 2.5 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001399/1.081, allocations: 66.97 kB / 1.036 GB, free: 2.457 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001847/1.081, allocations: 136 kB / 1.036 GB, free: 2.336 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/1.081, allocations: 0 / 1.036 GB, free: 2.336 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/1.081, allocations: 4.219 kB / 1.036 GB, free: 2.332 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.103e-05/1.081, allocations: 8.172 kB / 1.036 GB, free: 2.324 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006761/1.082, allocations: 0.6146 MB / 1.037 GB, free: 1.723 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001752/1.082, allocations: 42.02 kB / 1.037 GB, free: 1.68 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.181e-05/1.082, allocations: 19.42 kB / 1.037 GB, free: 1.664 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.239e-05/1.082, allocations: 4 kB / 1.037 GB, free: 1.66 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.963e-05/1.082, allocations: 129.2 kB / 1.037 GB, free: 1.52 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=7): time 1.382e-06/1.082, allocations: 0 / 1.037 GB, free: 1.52 MB / 0.6511 GB Notification: Performance of matching and sorting (n=7): time 0.0001571/1.082, allocations: 71.72 kB / 1.037 GB, free: 1.453 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.805e-05/1.083, allocations: 132.2 kB / 1.037 GB, free: 1.297 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/1.083, allocations: 156.4 kB / 1.037 GB, free: 1.156 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.671e-05/1.083, allocations: 29.7 kB / 1.037 GB, free: 1.121 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 5.778e-05/1.083, allocations: 137.9 kB / 1.037 GB, free: 0.9922 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.503e-05/1.083, allocations: 23.02 kB / 1.037 GB, free: 0.9727 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.464e-06/1.083, allocations: 0 / 1.037 GB, free: 0.9727 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 8.697e-05/1.083, allocations: 322.1 kB / 1.038 GB, free: 0.6523 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.767e-05/1.083, allocations: 26.62 kB / 1.038 GB, free: 0.6367 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.188e-05/1.083, allocations: 107.1 kB / 1.038 GB, free: 0.5156 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.034e-05/1.083, allocations: 34.55 kB / 1.038 GB, free: 0.4922 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/1.083, allocations: 4 kB / 1.038 GB, free: 500 kB / 0.6511 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002021/1.083, allocations: 151 kB / 1.038 GB, free: 360 kB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 8.666e-06/1.083, allocations: 4 kB / 1.038 GB, free: 356 kB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/1.083, allocations: 4 kB / 1.038 GB, free: 352 kB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/1.083, allocations: 4 kB / 1.038 GB, free: 348 kB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/1.083, allocations: 36.17 kB / 1.038 GB, free: 316 kB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/1.083, allocations: 7.938 kB / 1.038 GB, free: 308 kB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001454/1.084, allocations: 23.83 kB / 1.038 GB, free: 284 kB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.423e-05/1.084, allocations: 8 kB / 1.038 GB, free: 276 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 9.207e-05/1.084, allocations: 142.5 kB / 1.038 GB, free: 120 kB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.054e-05/1.084, allocations: 18.78 kB / 1.038 GB, free: 104 kB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.924e-05/1.084, allocations: 13.16 kB / 1.038 GB, free: 96 kB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/1.084, allocations: 0 / 1.038 GB, free: 96 kB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/1.084, allocations: 0 / 1.038 GB, free: 96 kB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/1.084, allocations: 7.844 kB / 1.038 GB, free: 88 kB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001536/1.084, allocations: 194.3 kB / 1.038 GB, free: 15.88 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/1.084, allocations: 0 / 1.038 GB, free: 15.88 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.349e-05/1.084, allocations: 8 kB / 1.038 GB, free: 15.87 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/1.084, allocations: 0 / 1.038 GB, free: 15.87 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/1.084, allocations: 4 kB / 1.038 GB, free: 15.86 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/1.084, allocations: 8 kB / 1.039 GB, free: 15.86 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/1.084, allocations: 0 / 1.039 GB, free: 15.86 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002012/1.084, allocations: 140.9 kB / 1.039 GB, free: 15.73 MB / 0.6667 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002943/1.085, allocations: 0.5357 MB / 1.039 GB, free: 15.21 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 4.05e-05/1.085, allocations: 89.05 kB / 1.039 GB, free: 15.11 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.85e-05/1.085, allocations: 8.078 kB / 1.039 GB, free: 15.1 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.9e-05/1.085, allocations: 12 kB / 1.039 GB, free: 15.09 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.666e-05/1.085, allocations: 11.92 kB / 1.039 GB, free: 15.08 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.104e-06/1.085, allocations: 0 / 1.039 GB, free: 15.08 MB / 0.6667 GB Notification: Performance of sort global known variables: time 7.566e-05/1.085, allocations: 133.2 kB / 1.039 GB, free: 14.97 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0007618/1.086, allocations: 27.91 kB / 1.039 GB, free: 14.94 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.0001128/1.086, allocations: 103.2 kB / 1.04 GB, free: 14.83 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0001662/1.086, allocations: 133.9 kB / 1.04 GB, free: 14.71 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/1.086, allocations: 0 / 1.04 GB, free: 14.71 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 6.586e-05/1.086, allocations: 66.27 kB / 1.04 GB, free: 14.66 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001579/1.086, allocations: 18.8 kB / 1.04 GB, free: 14.64 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003935/1.087, allocations: 181 kB / 1.04 GB, free: 14.46 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002627/1.087, allocations: 0.7422 MB / 1.041 GB, free: 13.69 MB / 0.6667 GB Notification: Performance of SimCode: time 2.51e-07/1.087, allocations: 0 / 1.041 GB, free: 13.69 MB / 0.6667 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)