Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.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.DC.Loads.Examples.LinearizedLoad,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.344/1.344, allocations: 289.8 MB / 297.1 MB, free: 12.58 MB / 242.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001029/0.001029, allocations: 180.7 kB / 366.3 MB, free: 11.88 MB / 290.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.049/1.049, allocations: 205.1 MB / 0.6256 GB, free: 1.973 MB / 466.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008474/0.0008476, allocations: 83.91 kB / 0.7395 GB, free: 47.02 MB / 0.5183 GB Notification: Performance of FrontEnd - loaded program: time 0.1817/0.1826, allocations: 122.4 MB / 0.8591 GB, free: 7.027 MB / 0.5964 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4304/0.6129, allocations: 116.3 MB / 0.9726 GB, free: 81.37 MB / 0.6746 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1602/0.7732, allocations: 166.3 MB / 1.135 GB, free: 9.566 MB / 0.7371 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/0.7735, allocations: 88.58 kB / 1.135 GB, free: 9.48 MB / 0.7371 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);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.1.4-maint.8.1.x/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.1.4-maint.8.1.x/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.04066/0.8142, allocations: 17.95 MB / 1.153 GB, free: 7.371 MB / 0.7527 GB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.8143, allocations: 12 kB / 1.153 GB, free: 7.359 MB / 0.7527 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008843/0.8152, allocations: 116.1 kB / 1.153 GB, free: 7.246 MB / 0.7527 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005983/0.8158, allocations: 323.2 kB / 1.153 GB, free: 6.891 MB / 0.7527 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.718e-05/0.8158, allocations: 42.48 kB / 1.153 GB, free: 6.844 MB / 0.7527 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.145e-05/0.8159, allocations: 24 kB / 1.153 GB, free: 6.82 MB / 0.7527 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005004/0.8164, allocations: 325.4 kB / 1.153 GB, free: 6.504 MB / 0.7527 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005903/0.817, allocations: 440.5 kB / 1.154 GB, free: 6.047 MB / 0.7527 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.817, allocations: 0.9375 kB / 1.154 GB, free: 6.047 MB / 0.7527 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.636e-05/0.8171, allocations: 4.203 kB / 1.154 GB, free: 6.043 MB / 0.7527 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.221e-05/0.8171, allocations: 32.66 kB / 1.154 GB, free: 6.012 MB / 0.7527 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002249/0.8194, allocations: 2.152 MB / 1.156 GB, free: 3.648 MB / 0.7527 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004932/0.8199, allocations: 226.6 kB / 1.156 GB, free: 3.418 MB / 0.7527 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002563/0.8202, allocations: 136.8 kB / 1.156 GB, free: 3.281 MB / 0.7527 GB Notification: Performance of preOpt evalFunc (simulation): time 2.899e-05/0.8202, allocations: 7.984 kB / 1.156 GB, free: 3.273 MB / 0.7527 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.89e-05/0.8202, allocations: 34.56 kB / 1.156 GB, free: 3.23 MB / 0.7527 GB Notification: Performance of pre-optimization done (n=19): time 1.874e-06/0.8202, allocations: 0 / 1.156 GB, free: 3.23 MB / 0.7527 GB Notification: Performance of matching and sorting (n=19): time 0.0005944/0.8208, allocations: 250.1 kB / 1.157 GB, free: 2.977 MB / 0.7527 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.51e-05/0.8209, allocations: 59.34 kB / 1.157 GB, free: 2.906 MB / 0.7527 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001484/0.821, allocations: 179.7 kB / 1.157 GB, free: 2.727 MB / 0.7527 GB Notification: Performance of collectPreVariables (initialization): time 2.027e-05/0.821, allocations: 25.7 kB / 1.157 GB, free: 2.695 MB / 0.7527 GB Notification: Performance of collectInitialEqns (initialization): time 8.868e-05/0.8211, allocations: 199.6 kB / 1.157 GB, free: 2.496 MB / 0.7527 GB Notification: Performance of collectInitialBindings (initialization): time 4.475e-05/0.8212, allocations: 70.97 kB / 1.157 GB, free: 2.426 MB / 0.7527 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.159e-05/0.8212, allocations: 4 kB / 1.157 GB, free: 2.422 MB / 0.7527 GB Notification: Performance of setup shared object (initialization): time 8.837e-05/0.8213, allocations: 330.7 kB / 1.157 GB, free: 2.09 MB / 0.7527 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.8214, allocations: 68.73 kB / 1.158 GB, free: 2.023 MB / 0.7527 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001529/0.8216, allocations: 163.5 kB / 1.158 GB, free: 1.824 MB / 0.7527 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001394/0.8217, allocations: 104 kB / 1.158 GB, free: 1.723 MB / 0.7527 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.8217, allocations: 0 / 1.158 GB, free: 1.723 MB / 0.7527 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005998/0.8223, allocations: 310.8 kB / 1.158 GB, free: 1.406 MB / 0.7527 GB Notification: Performance of prepare postOptimizeDAE: time 0.000275/0.8226, allocations: 0.9602 MB / 1.159 GB, free: 380 kB / 0.7527 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.8226, allocations: 0 / 1.159 GB, free: 380 kB / 0.7527 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000408/0.823, allocations: 105.5 kB / 1.159 GB, free: 268 kB / 0.7527 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002373/0.8233, allocations: 52.41 kB / 1.159 GB, free: 216 kB / 0.7527 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001919/0.8252, allocations: 1.939 MB / 1.161 GB, free: 14.13 MB / 0.7683 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002523/0.8255, allocations: 31.77 kB / 1.161 GB, free: 14.1 MB / 0.7683 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.13e-05/0.8255, allocations: 16.16 kB / 1.161 GB, free: 14.08 MB / 0.7683 GB Notification: Performance of prepare postOptimizeDAE: time 6.552e-06/0.8255, allocations: 4 kB / 1.161 GB, free: 14.08 MB / 0.7683 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004914/0.826, allocations: 243.4 kB / 1.161 GB, free: 13.84 MB / 0.7683 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.826, allocations: 9.406 kB / 1.161 GB, free: 13.83 MB / 0.7683 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002491/0.8263, allocations: 80.92 kB / 1.161 GB, free: 13.75 MB / 0.7683 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002338/0.8265, allocations: 59.91 kB / 1.161 GB, free: 13.69 MB / 0.7683 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001531/0.8281, allocations: 1.403 MB / 1.163 GB, free: 12.18 MB / 0.7683 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002227/0.8283, allocations: 23.91 kB / 1.163 GB, free: 12.15 MB / 0.7683 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.248e-05/0.8284, allocations: 19.98 kB / 1.163 GB, free: 12.13 MB / 0.7683 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 8.801e-05/0.8284, allocations: 104.9 kB / 1.163 GB, free: 12.02 MB / 0.7683 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.903e-05/0.8285, allocations: 23.72 kB / 1.163 GB, free: 12 MB / 0.7683 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.711e-05/0.8286, allocations: 21.59 kB / 1.163 GB, free: 11.98 MB / 0.7683 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.8286, allocations: 4 kB / 1.163 GB, free: 11.98 MB / 0.7683 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.8286, allocations: 0 / 1.163 GB, free: 11.98 MB / 0.7683 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.8286, allocations: 3.984 kB / 1.163 GB, free: 11.97 MB / 0.7683 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001003/0.8296, allocations: 0.723 MB / 1.164 GB, free: 11.18 MB / 0.7683 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.8296, allocations: 4 kB / 1.164 GB, free: 11.18 MB / 0.7683 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001586/0.8298, allocations: 43.97 kB / 1.164 GB, free: 11.14 MB / 0.7683 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003284/0.8301, allocations: 93.78 kB / 1.164 GB, free: 11.04 MB / 0.7683 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.744e-05/0.8301, allocations: 11.89 kB / 1.164 GB, free: 11.03 MB / 0.7683 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002251/0.8324, allocations: 2.644 MB / 1.166 GB, free: 8.156 MB / 0.7683 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.8324, allocations: 0 / 1.166 GB, free: 8.156 MB / 0.7683 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000543/0.833, allocations: 398.7 kB / 1.167 GB, free: 7.727 MB / 0.7683 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006249/0.8336, allocations: 0.7661 MB / 1.168 GB, free: 6.918 MB / 0.7683 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001001/0.8337, allocations: 124.7 kB / 1.168 GB, free: 6.777 MB / 0.7683 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.196e-05/0.8337, allocations: 0 / 1.168 GB, free: 6.777 MB / 0.7683 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001817/0.8339, allocations: 12 kB / 1.168 GB, free: 6.766 MB / 0.7683 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.219e-05/0.834, allocations: 15.97 kB / 1.168 GB, free: 6.75 MB / 0.7683 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.51e-05/0.834, allocations: 8.5 kB / 1.168 GB, free: 6.742 MB / 0.7683 GB Notification: Performance of sort global known variables: time 9.486e-05/0.8341, allocations: 138.1 kB / 1.168 GB, free: 6.609 MB / 0.7683 GB Notification: Performance of remove unused functions: time 0.001724/0.8358, allocations: 159.3 kB / 1.168 GB, free: 6.453 MB / 0.7683 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.0001177/0.836, allocations: 104.8 kB / 1.168 GB, free: 6.344 MB / 0.7683 GB Notification: Performance of simCode: created initialization part: time 0.001415/0.8374, allocations: 0.5672 MB / 1.169 GB, free: 5.758 MB / 0.7683 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.8374, allocations: 0 / 1.169 GB, free: 5.758 MB / 0.7683 GB Notification: Performance of simCode: created simulation system equations: time 0.0006262/0.838, allocations: 328.2 kB / 1.169 GB, free: 5.418 MB / 0.7683 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002967/0.8383, allocations: 45.41 kB / 1.169 GB, free: 5.375 MB / 0.7683 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008032/0.8392, allocations: 414.8 kB / 1.169 GB, free: 4.93 MB / 0.7683 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004222/0.8396, allocations: 0.8354 MB / 1.17 GB, free: 4.066 MB / 0.7683 GB Notification: Performance of SimCode: time 2.71e-07/0.8396, allocations: 0 / 1.17 GB, free: 4.066 MB / 0.7683 GB (rm -f Buildings_8_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad.fmu > Buildings_8_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1)