Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.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.DC.Loads.Examples.LinearizedLoad,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad",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.127/2.127, allocations: 284.8 MB / 292.1 MB, free: 10.71 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.001573/0.001573, allocations: 179.5 kB / 360.3 MB, free: 7.531 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.636/1.636, allocations: 205.1 MB / 0.6187 GB, free: 13.2 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.001199/0.001199, allocations: 92.91 kB / 0.7317 GB, free: 45.08 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2417/0.243, allocations: 121.4 MB / 0.8502 GB, free: 3.902 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5408/0.7838, allocations: 115.2 MB / 0.9627 GB, free: 78.45 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2453/1.029, allocations: 165.2 MB / 1.124 GB, free: 7.672 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003421/1.03, allocations: 88.75 kB / 1.124 GB, free: 7.586 MB / 0.7292 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);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.07037/1.1, allocations: 17.95 MB / 1.142 GB, free: 5.512 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/1.1, allocations: 13.44 kB / 1.142 GB, free: 5.5 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001354/1.101, allocations: 111.4 kB / 1.142 GB, free: 5.391 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008987/1.102, allocations: 328.8 kB / 1.142 GB, free: 5.031 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.767e-05/1.102, allocations: 46.48 kB / 1.142 GB, free: 4.98 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.678e-05/1.103, allocations: 19.94 kB / 1.142 GB, free: 4.961 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009515/1.104, allocations: 329.4 kB / 1.142 GB, free: 4.637 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/1.105, allocations: 436.5 kB / 1.143 GB, free: 4.188 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.212e-05/1.105, allocations: 3.938 kB / 1.143 GB, free: 4.184 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.691e-05/1.105, allocations: 3.984 kB / 1.143 GB, free: 4.18 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.416e-05/1.105, allocations: 32.89 kB / 1.143 GB, free: 4.148 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003967/1.109, allocations: 2.151 MB / 1.145 GB, free: 1.781 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008121/1.11, allocations: 218.7 kB / 1.145 GB, free: 1.559 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004672/1.11, allocations: 140.8 kB / 1.145 GB, free: 1.418 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 3.713e-05/1.11, allocations: 4 kB / 1.145 GB, free: 1.414 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.335e-05/1.11, allocations: 34.56 kB / 1.145 GB, free: 1.371 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=19): time 2.795e-06/1.11, allocations: 0 / 1.145 GB, free: 1.371 MB / 0.7448 GB Notification: Performance of matching and sorting (n=19): time 0.001041/1.111, allocations: 247.3 kB / 1.146 GB, free: 1.117 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.755e-05/1.111, allocations: 59.41 kB / 1.146 GB, free: 1.047 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002558/1.112, allocations: 184.5 kB / 1.146 GB, free: 0.8633 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.073e-05/1.112, allocations: 25.7 kB / 1.146 GB, free: 0.832 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001425/1.112, allocations: 195.6 kB / 1.146 GB, free: 0.6367 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 7.391e-05/1.112, allocations: 75.03 kB / 1.146 GB, free: 0.5625 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.747e-05/1.112, allocations: 0 / 1.146 GB, free: 0.5625 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001529/1.112, allocations: 330.7 kB / 1.146 GB, free: 236 kB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002052/1.112, allocations: 68.73 kB / 1.147 GB, free: 168 kB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003533/1.113, allocations: 175.1 kB / 1.147 GB, free: 15.95 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000259/1.113, allocations: 94.77 kB / 1.147 GB, free: 15.86 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/1.113, allocations: 4.031 kB / 1.147 GB, free: 15.86 MB / 0.7605 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001091/1.114, allocations: 310.8 kB / 1.147 GB, free: 15.54 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004243/1.114, allocations: 0.9652 MB / 1.148 GB, free: 14.5 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/1.114, allocations: 0 / 1.148 GB, free: 14.5 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006959/1.115, allocations: 105.5 kB / 1.148 GB, free: 14.39 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000427/1.116, allocations: 51.91 kB / 1.148 GB, free: 14.34 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003313/1.119, allocations: 1.941 MB / 1.15 GB, free: 12.27 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004689/1.119, allocations: 37.92 kB / 1.15 GB, free: 12.23 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.148e-05/1.12, allocations: 12 kB / 1.15 GB, free: 12.22 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 8.577e-06/1.12, allocations: 4.656 kB / 1.15 GB, free: 12.21 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009188/1.12, allocations: 239.7 kB / 1.15 GB, free: 11.98 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/1.12, allocations: 15.88 kB / 1.15 GB, free: 11.96 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004813/1.121, allocations: 76.73 kB / 1.15 GB, free: 11.89 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004493/1.121, allocations: 59.91 kB / 1.15 GB, free: 11.83 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002721/1.124, allocations: 1.397 MB / 1.152 GB, free: 10.31 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003973/1.125, allocations: 29.33 kB / 1.152 GB, free: 10.29 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.82e-05/1.125, allocations: 13.78 kB / 1.152 GB, free: 10.27 MB / 0.7605 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001378/1.125, allocations: 108.9 kB / 1.152 GB, free: 10.16 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.658e-05/1.125, allocations: 23.72 kB / 1.152 GB, free: 10.14 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.651e-05/1.125, allocations: 21.59 kB / 1.152 GB, free: 10.12 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/1.125, allocations: 4 kB / 1.152 GB, free: 10.11 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/1.125, allocations: 4 kB / 1.152 GB, free: 10.11 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/1.125, allocations: 3.984 kB / 1.152 GB, free: 10.11 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001783/1.127, allocations: 0.7177 MB / 1.153 GB, free: 9.32 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/1.127, allocations: 8.062 kB / 1.153 GB, free: 9.312 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002994/1.127, allocations: 39.91 kB / 1.153 GB, free: 9.273 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006245/1.128, allocations: 93.64 kB / 1.153 GB, free: 9.176 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.508e-05/1.128, allocations: 9.906 kB / 1.153 GB, free: 9.168 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004004/1.132, allocations: 2.646 MB / 1.155 GB, free: 6.305 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/1.132, allocations: 0 / 1.155 GB, free: 6.305 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001032/1.133, allocations: 398 kB / 1.156 GB, free: 5.875 MB / 0.7605 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001124/1.134, allocations: 0.7653 MB / 1.157 GB, free: 5.066 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002295/1.134, allocations: 120.7 kB / 1.157 GB, free: 4.93 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.944e-05/1.134, allocations: 0 / 1.157 GB, free: 4.93 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003177/1.135, allocations: 12 kB / 1.157 GB, free: 4.918 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.137e-05/1.135, allocations: 17.38 kB / 1.157 GB, free: 4.902 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.481e-05/1.135, allocations: 8 kB / 1.157 GB, free: 4.895 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.0001848/1.135, allocations: 144.2 kB / 1.157 GB, free: 4.754 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.002547/1.138, allocations: 159.3 kB / 1.157 GB, free: 4.598 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001661/1.138, allocations: 99.19 kB / 1.157 GB, free: 4.488 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.002746/1.141, allocations: 0.5741 MB / 1.158 GB, free: 3.895 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/1.141, allocations: 0 / 1.158 GB, free: 3.895 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.00122/1.142, allocations: 327.9 kB / 1.158 GB, free: 3.555 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004871/1.142, allocations: 45 kB / 1.158 GB, free: 3.512 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001324/1.144, allocations: 410.9 kB / 1.158 GB, free: 3.078 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006582/1.144, allocations: 0.8354 MB / 1.159 GB, free: 2.219 MB / 0.7605 GB Notification: Performance of SimCode: time 8.21e-07/1.144, allocations: 0 / 1.159 GB, free: 2.219 MB / 0.7605 GB (rm -f Buildings_8.0.0_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad.fmu > Buildings_8.0.0_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1)