Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Loads.Examples.VariableLoad.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.VariableLoad,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Loads_Examples_VariableLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.VariableLoad,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Loads_Examples_VariableLoad",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.36/1.36, allocations: 289.8 MB / 297.1 MB, free: 6.621 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.001028/0.001028, allocations: 189.2 kB / 366.3 MB, free: 1.961 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.142/1.142, allocations: 205.1 MB / 0.6256 GB, free: 5.812 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.0008686/0.0008687, allocations: 93.06 kB / 0.7396 GB, free: 39.61 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2257/0.2266, allocations: 122.4 MB / 0.8591 GB, free: 13.25 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4958/0.7224, allocations: 116.3 MB / 0.9726 GB, free: 68.07 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1667/0.8891, allocations: 166 MB / 1.135 GB, free: 14.36 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002525/0.8894, allocations: 91.88 kB / 1.135 GB, free: 14.27 MB / 0.7448 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);. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.04224/0.9317, allocations: 19.52 MB / 1.154 GB, free: 10.5 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.9317, allocations: 12 kB / 1.154 GB, free: 10.49 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007443/0.9325, allocations: 103.4 kB / 1.154 GB, free: 10.39 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003616/0.9328, allocations: 298.1 kB / 1.154 GB, free: 10.06 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/0.9329, allocations: 15.91 kB / 1.154 GB, free: 10.04 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.925e-05/0.9329, allocations: 16 kB / 1.154 GB, free: 10.03 MB / 0.7605 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000465/0.9334, allocations: 289.1 kB / 1.155 GB, free: 9.742 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005194/0.9339, allocations: 416.8 kB / 1.155 GB, free: 9.309 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.9339, allocations: 0 / 1.155 GB, free: 9.309 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.066e-05/0.934, allocations: 4 kB / 1.155 GB, free: 9.305 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.832e-05/0.934, allocations: 32.62 kB / 1.155 GB, free: 9.273 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001889/0.9359, allocations: 1.997 MB / 1.157 GB, free: 7.086 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003979/0.9363, allocations: 176.8 kB / 1.157 GB, free: 6.906 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002593/0.9366, allocations: 136.9 kB / 1.157 GB, free: 6.77 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 2.37e-05/0.9366, allocations: 7.938 kB / 1.157 GB, free: 6.762 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.74e-05/0.9367, allocations: 34.56 kB / 1.157 GB, free: 6.719 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=18): time 1.212e-06/0.9367, allocations: 4 kB / 1.157 GB, free: 6.715 MB / 0.7605 GB Notification: Performance of matching and sorting (n=18): time 0.0003871/0.9371, allocations: 186.4 kB / 1.158 GB, free: 6.523 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.273e-05/0.9371, allocations: 55.41 kB / 1.158 GB, free: 6.457 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001587/0.9373, allocations: 192.2 kB / 1.158 GB, free: 6.266 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.9373, allocations: 25.7 kB / 1.158 GB, free: 6.234 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 8.366e-05/0.9374, allocations: 195.6 kB / 1.158 GB, free: 6.039 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 4.19e-05/0.9374, allocations: 67.03 kB / 1.158 GB, free: 5.973 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.078e-05/0.9374, allocations: 3.938 kB / 1.158 GB, free: 5.969 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.9376, allocations: 342.7 kB / 1.158 GB, free: 5.625 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.774e-05/0.9377, allocations: 60.55 kB / 1.158 GB, free: 5.566 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001502/0.9378, allocations: 171.4 kB / 1.159 GB, free: 5.348 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001282/0.938, allocations: 87.92 kB / 1.159 GB, free: 5.262 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.938, allocations: 4 kB / 1.159 GB, free: 5.258 MB / 0.7605 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004292/0.9384, allocations: 272.8 kB / 1.159 GB, free: 4.984 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003899/0.9388, allocations: 1.394 MB / 1.16 GB, free: 3.48 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.9388, allocations: 4 kB / 1.16 GB, free: 3.477 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001548/0.939, allocations: 28.84 kB / 1.16 GB, free: 3.445 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002898/0.9393, allocations: 75.89 kB / 1.16 GB, free: 3.371 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003557/0.9396, allocations: 0.5568 MB / 1.161 GB, free: 2.789 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002537/0.9399, allocations: 39.72 kB / 1.161 GB, free: 2.75 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.12e-05/0.9399, allocations: 16 kB / 1.161 GB, free: 2.734 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 5.53e-06/0.9399, allocations: 4 kB / 1.161 GB, free: 2.73 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002861/0.9402, allocations: 198.5 kB / 1.161 GB, free: 2.539 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.9403, allocations: 4 kB / 1.161 GB, free: 2.535 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.2e-06/0.9403, allocations: 4 kB / 1.161 GB, free: 2.531 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003015/0.9406, allocations: 80.36 kB / 1.161 GB, free: 2.453 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.9406, allocations: 9.266 kB / 1.161 GB, free: 2.445 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002152/0.9408, allocations: 43.72 kB / 1.161 GB, free: 2.402 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.9408, allocations: 12 kB / 1.161 GB, free: 2.391 MB / 0.7605 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 8.136e-05/0.9409, allocations: 112.9 kB / 1.161 GB, free: 2.273 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.645e-05/0.941, allocations: 23.72 kB / 1.161 GB, free: 2.25 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.75e-05/0.941, allocations: 29.89 kB / 1.162 GB, free: 2.223 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.941, allocations: 7.938 kB / 1.162 GB, free: 2.215 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.9411, allocations: 0 / 1.162 GB, free: 2.215 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.9411, allocations: 7.938 kB / 1.162 GB, free: 2.207 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007722/0.9418, allocations: 0.6411 MB / 1.162 GB, free: 1.5 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.9419, allocations: 0 / 1.162 GB, free: 1.5 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002068/0.9421, allocations: 51.97 kB / 1.162 GB, free: 1.449 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.126e-05/0.9422, allocations: 28.84 kB / 1.162 GB, free: 1.418 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/0.9422, allocations: 0 / 1.162 GB, free: 1.418 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008307/0.943, allocations: 1.256 MB / 1.163 GB, free: 52 kB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.943, allocations: 8 kB / 1.163 GB, free: 44 kB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003475/0.9434, allocations: 326.1 kB / 1.164 GB, free: 15.69 MB / 0.7761 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004684/0.9439, allocations: 0.6967 MB / 1.164 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 9.691e-05/0.944, allocations: 120.8 kB / 1.165 GB, free: 14.81 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.141e-05/0.944, allocations: 4 kB / 1.165 GB, free: 14.81 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001996/0.9442, allocations: 19.98 kB / 1.165 GB, free: 14.79 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.952e-05/0.9443, allocations: 15.97 kB / 1.165 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.256e-05/0.9443, allocations: 4 kB / 1.165 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of sort global known variables: time 0.000157/0.9445, allocations: 156.5 kB / 1.165 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.001687/0.9462, allocations: 139.4 kB / 1.165 GB, free: 14.48 MB / 0.7761 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 (18): * Single equations (assignments): 17 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001622/0.9463, allocations: 99.25 kB / 1.165 GB, free: 14.37 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0004912/0.9468, allocations: 289.3 kB / 1.165 GB, free: 14.09 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.9468, allocations: 8.062 kB / 1.165 GB, free: 14.08 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.000221/0.9471, allocations: 177.8 kB / 1.165 GB, free: 13.9 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003583/0.9474, allocations: 58.97 kB / 1.165 GB, free: 13.85 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006853/0.9481, allocations: 379.3 kB / 1.166 GB, free: 13.44 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004252/0.9486, allocations: 0.8388 MB / 1.167 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of SimCode: time 3.5e-07/0.9486, allocations: 0 / 1.167 GB, free: 12.57 MB / 0.7761 GB (rm -f Buildings_8_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_DC_Loads_Examples_VariableLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_DC_Loads_Examples_VariableLoad.fmu > Buildings_8_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1)