Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_8_0_0_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.0.0/package.mo): time 2.11/2.11, allocations: 284.8 MB / 292.1 MB, free: 10.78 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.001613/0.001613, allocations: 185.2 kB / 360.3 MB, free: 7.555 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.627/1.627, allocations: 205.1 MB / 0.6187 GB, free: 13.3 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.001221/0.001221, allocations: 95.98 kB / 0.7317 GB, free: 45.13 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2512/0.2524, allocations: 121.4 MB / 0.8502 GB, free: 3.945 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5391/0.7916, allocations: 115.2 MB / 0.9627 GB, free: 78.34 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2276/1.019, allocations: 153.8 MB / 1.113 GB, free: 3.012 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002924/1.02, allocations: 76.75 kB / 1.113 GB, free: 2.938 MB / 0.7136 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.02142/1.041, allocations: 5.752 MB / 1.119 GB, free: 13.16 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/1.041, allocations: 12.5 kB / 1.119 GB, free: 13.14 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002899/1.041, allocations: 23.8 kB / 1.119 GB, free: 13.12 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003142/1.042, allocations: 212.8 kB / 1.119 GB, free: 12.88 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.542e-05/1.042, allocations: 29.89 kB / 1.119 GB, free: 12.84 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.613e-05/1.042, allocations: 12 kB / 1.119 GB, free: 12.83 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002314/1.042, allocations: 66.31 kB / 1.119 GB, free: 12.77 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000297/1.042, allocations: 131.7 kB / 1.119 GB, free: 12.62 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/1.042, allocations: 0 / 1.119 GB, free: 12.62 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.374e-05/1.042, allocations: 7.906 kB / 1.119 GB, free: 12.62 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.064e-05/1.042, allocations: 4.188 kB / 1.119 GB, free: 12.61 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001031/1.044, allocations: 0.6072 MB / 1.12 GB, free: 11.96 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002542/1.044, allocations: 54.5 kB / 1.12 GB, free: 11.89 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.45e-05/1.044, allocations: 25.02 kB / 1.12 GB, free: 11.87 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.369e-05/1.044, allocations: 0 / 1.12 GB, free: 11.87 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001447/1.044, allocations: 110.8 kB / 1.12 GB, free: 11.73 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=7): time 1.673e-06/1.044, allocations: 0 / 1.12 GB, free: 11.73 MB / 0.7292 GB Notification: Performance of matching and sorting (n=7): time 0.0002463/1.044, allocations: 81.48 kB / 1.12 GB, free: 11.65 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.567e-05/1.044, allocations: 140.5 kB / 1.12 GB, free: 11.48 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002009/1.045, allocations: 153.5 kB / 1.12 GB, free: 11.32 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.197e-05/1.045, allocations: 33.7 kB / 1.12 GB, free: 11.29 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 9.23e-05/1.045, allocations: 131.4 kB / 1.12 GB, free: 11.15 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 3.1e-05/1.045, allocations: 15.8 kB / 1.12 GB, free: 11.14 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.268e-05/1.045, allocations: 0 / 1.12 GB, free: 11.14 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001404/1.045, allocations: 330.8 kB / 1.121 GB, free: 10.8 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.336e-05/1.045, allocations: 20 kB / 1.121 GB, free: 10.79 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001478/1.045, allocations: 113.3 kB / 1.121 GB, free: 10.64 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001155/1.045, allocations: 45.61 kB / 1.121 GB, free: 10.6 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/1.045, allocations: 0 / 1.121 GB, free: 10.6 MB / 0.7292 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003334/1.046, allocations: 141.4 kB / 1.121 GB, free: 10.46 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/1.046, allocations: 4.312 kB / 1.121 GB, free: 10.45 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/1.046, allocations: 9.438 kB / 1.121 GB, free: 10.45 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/1.046, allocations: 7.906 kB / 1.121 GB, free: 10.44 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001994/1.046, allocations: 31.92 kB / 1.121 GB, free: 10.41 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/1.046, allocations: 7.984 kB / 1.121 GB, free: 10.4 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002175/1.046, allocations: 23.84 kB / 1.121 GB, free: 10.38 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.894e-05/1.046, allocations: 5.688 kB / 1.121 GB, free: 10.37 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.000128/1.046, allocations: 158.3 kB / 1.121 GB, free: 10.2 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.195e-05/1.046, allocations: 15.81 kB / 1.121 GB, free: 10.19 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.407e-05/1.047, allocations: 13.41 kB / 1.121 GB, free: 10.17 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/1.047, allocations: 0 / 1.121 GB, free: 10.17 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/1.047, allocations: 3.984 kB / 1.121 GB, free: 10.16 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/1.047, allocations: 0 / 1.121 GB, free: 10.16 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002423/1.047, allocations: 182.1 kB / 1.122 GB, free: 9.949 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/1.047, allocations: 5.938 kB / 1.122 GB, free: 9.945 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001349/1.047, allocations: 12 kB / 1.122 GB, free: 9.934 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/1.047, allocations: 0 / 1.122 GB, free: 9.934 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.568e-05/1.047, allocations: 7.984 kB / 1.122 GB, free: 9.926 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/1.047, allocations: 0 / 1.122 GB, free: 9.926 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/1.047, allocations: 0 / 1.122 GB, free: 9.926 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003466/1.047, allocations: 140.9 kB / 1.122 GB, free: 9.77 MB / 0.7292 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005502/1.048, allocations: 0.5404 MB / 1.122 GB, free: 9.207 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 6.824e-05/1.048, allocations: 93 kB / 1.122 GB, free: 9.098 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.184e-05/1.048, allocations: 0 / 1.122 GB, free: 9.098 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001773/1.048, allocations: 16.73 kB / 1.122 GB, free: 9.082 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.649e-05/1.048, allocations: 11.98 kB / 1.122 GB, free: 9.07 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.139e-05/1.048, allocations: 64 / 1.122 GB, free: 9.07 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0001359/1.049, allocations: 129 kB / 1.122 GB, free: 8.945 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.001134/1.05, allocations: 27.91 kB / 1.122 GB, free: 8.918 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.0001575/1.05, allocations: 101.1 kB / 1.123 GB, free: 8.809 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002975/1.05, allocations: 135.3 kB / 1.123 GB, free: 8.664 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/1.05, allocations: 0 / 1.123 GB, free: 8.664 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001326/1.05, allocations: 71.06 kB / 1.123 GB, free: 8.59 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002614/1.051, allocations: 20.36 kB / 1.123 GB, free: 8.574 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006884/1.051, allocations: 184.5 kB / 1.123 GB, free: 8.371 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004115/1.052, allocations: 0.7347 MB / 1.124 GB, free: 7.609 MB / 0.7292 GB Notification: Performance of SimCode: time 1.432e-06/1.052, allocations: 0 / 1.124 GB, free: 7.609 MB / 0.7292 GB (rm -f Buildings_8.0.0_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_8.0.0_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)