Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.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.DC.Loads.Examples.VariableLoad,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Loads_Examples_VariableLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.VariableLoad,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.244/1.244, allocations: 249.4 MB / 256.7 MB, free: 7.055 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.001007/0.001007, allocations: 184.4 kB / 316 MB, free: 3.555 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.247/1.247, allocations: 205.2 MB / 0.5667 GB, free: 15.68 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.0009127/0.0009125, allocations: 91.58 kB / 0.671 GB, free: 4.824 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3729/0.3739, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1739/0.5478, allocations: 106.3 MB / 0.8847 GB, free: 12.57 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5171/1.065, allocations: 159.8 MB / 1.041 GB, free: 13.04 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002653/1.065, allocations: 88.2 kB / 1.041 GB, free: 13 MB / 0.6667 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);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3-maint.7.0.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.04338/1.109, allocations: 19.52 MB / 1.06 GB, free: 13.02 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/1.109, allocations: 8 kB / 1.06 GB, free: 13.01 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007308/1.109, allocations: 103.4 kB / 1.06 GB, free: 12.91 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003895/1.11, allocations: 303.8 kB / 1.06 GB, free: 12.59 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.361e-05/1.11, allocations: 8 kB / 1.06 GB, free: 12.59 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.835e-05/1.11, allocations: 16 kB / 1.06 GB, free: 12.57 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000423/1.11, allocations: 292.3 kB / 1.061 GB, free: 12.38 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005327/1.111, allocations: 409.6 kB / 1.061 GB, free: 12.04 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/1.111, allocations: 4 kB / 1.061 GB, free: 12.04 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.056e-05/1.111, allocations: 0 / 1.061 GB, free: 12.04 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-05/1.111, allocations: 32.58 kB / 1.061 GB, free: 12.01 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002005/1.113, allocations: 1.998 MB / 1.063 GB, free: 9.992 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004035/1.113, allocations: 189.3 kB / 1.063 GB, free: 9.844 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002465/1.114, allocations: 135.3 kB / 1.063 GB, free: 9.742 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.529e-05/1.114, allocations: 0 / 1.063 GB, free: 9.742 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.563e-05/1.114, allocations: 41.56 kB / 1.063 GB, free: 9.695 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=18): time 1.302e-06/1.114, allocations: 0 / 1.063 GB, free: 9.695 MB / 0.6823 GB Notification: Performance of matching and sorting (n=18): time 0.0004247/1.114, allocations: 185.8 kB / 1.063 GB, free: 9.539 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/1.114, allocations: 55.41 kB / 1.064 GB, free: 9.473 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001714/1.114, allocations: 189 kB / 1.064 GB, free: 9.312 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/1.114, allocations: 25.7 kB / 1.064 GB, free: 9.281 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 9.842e-05/1.115, allocations: 204.6 kB / 1.064 GB, free: 9.09 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.37e-05/1.115, allocations: 65.92 kB / 1.064 GB, free: 9.031 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.103e-05/1.115, allocations: 4 kB / 1.064 GB, free: 9.027 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 9.828e-05/1.115, allocations: 329.8 kB / 1.064 GB, free: 8.703 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001023/1.115, allocations: 60.98 kB / 1.064 GB, free: 8.664 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001979/1.115, allocations: 180.6 kB / 1.065 GB, free: 8.465 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001385/1.115, allocations: 97.22 kB / 1.065 GB, free: 8.395 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/1.115, allocations: 0 / 1.065 GB, free: 8.395 MB / 0.6823 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004414/1.116, allocations: 271.1 kB / 1.065 GB, free: 8.164 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004442/1.116, allocations: 1.397 MB / 1.066 GB, free: 6.68 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/1.116, allocations: 4 kB / 1.066 GB, free: 6.676 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001542/1.116, allocations: 32.16 kB / 1.066 GB, free: 6.645 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002815/1.117, allocations: 75.2 kB / 1.066 GB, free: 6.574 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003438/1.117, allocations: 0.5623 MB / 1.067 GB, free: 5.996 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002486/1.117, allocations: 35.73 kB / 1.067 GB, free: 5.961 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.067e-05/1.117, allocations: 11.25 kB / 1.067 GB, free: 5.953 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 5.531e-06/1.117, allocations: 8.094 kB / 1.067 GB, free: 5.945 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002775/1.117, allocations: 190.7 kB / 1.067 GB, free: 5.797 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/1.117, allocations: 4 kB / 1.067 GB, free: 5.793 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.201e-06/1.117, allocations: 4 kB / 1.067 GB, free: 5.789 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002812/1.118, allocations: 91.52 kB / 1.067 GB, free: 5.703 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/1.118, allocations: 4 kB / 1.067 GB, free: 5.699 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002071/1.118, allocations: 35.83 kB / 1.067 GB, free: 5.664 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.751e-05/1.118, allocations: 15.5 kB / 1.067 GB, free: 5.652 MB / 0.6823 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 0.0001002/1.118, allocations: 109.6 kB / 1.067 GB, free: 5.539 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.976e-05/1.118, allocations: 27.72 kB / 1.067 GB, free: 5.512 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.19e-05/1.118, allocations: 31.64 kB / 1.067 GB, free: 5.496 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/1.118, allocations: 3.906 kB / 1.067 GB, free: 5.492 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/1.118, allocations: 4 kB / 1.067 GB, free: 5.488 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/1.118, allocations: 3.984 kB / 1.067 GB, free: 5.484 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007896/1.119, allocations: 0.6389 MB / 1.068 GB, free: 4.875 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/1.119, allocations: 4 kB / 1.068 GB, free: 4.871 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002199/1.119, allocations: 51.97 kB / 1.068 GB, free: 4.82 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.143e-05/1.119, allocations: 24.53 kB / 1.068 GB, free: 4.797 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/1.119, allocations: 0 / 1.068 GB, free: 4.797 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009109/1.12, allocations: 1.263 MB / 1.069 GB, free: 3.461 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/1.12, allocations: 4.031 kB / 1.069 GB, free: 3.457 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003785/1.121, allocations: 330.3 kB / 1.07 GB, free: 3.141 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004895/1.121, allocations: 0.6981 MB / 1.07 GB, free: 2.445 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 9.9e-05/1.121, allocations: 120 kB / 1.071 GB, free: 2.316 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.26e-05/1.121, allocations: 0 / 1.071 GB, free: 2.316 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001967/1.122, allocations: 23.92 kB / 1.071 GB, free: 2.293 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.385e-05/1.122, allocations: 15.14 kB / 1.071 GB, free: 2.281 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/1.122, allocations: 8 kB / 1.071 GB, free: 2.273 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0001222/1.122, allocations: 152.5 kB / 1.071 GB, free: 2.148 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001651/1.124, allocations: 135.5 kB / 1.071 GB, free: 2.016 MB / 0.6823 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.0001201/1.124, allocations: 99.23 kB / 1.071 GB, free: 1.91 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0005058/1.124, allocations: 302.8 kB / 1.071 GB, free: 1.684 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/1.124, allocations: 0 / 1.071 GB, free: 1.684 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002358/1.124, allocations: 179.5 kB / 1.071 GB, free: 1.52 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003769/1.125, allocations: 60.06 kB / 1.071 GB, free: 1.473 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007144/1.126, allocations: 379.9 kB / 1.072 GB, free: 1.102 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004324/1.126, allocations: 0.8339 MB / 1.073 GB, free: 256 kB / 0.6823 GB Notification: Performance of SimCode: time 3.5e-07/1.126, allocations: 0 / 1.073 GB, free: 256 kB / 0.6823 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_DC_Loads_Examples_VariableLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_DC_Loads_Examples_VariableLoad.fmu > Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1)