Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.VoltageSource.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.Sources.Examples.VoltageSource,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Sources_Examples_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.VoltageSource,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Sources_Examples_VoltageSource",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.207/1.207, allocations: 249.4 MB / 256.7 MB, free: 15.84 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001134/0.001134, allocations: 181.5 kB / 316 MB, free: 7.234 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.311/1.311, allocations: 205.1 MB / 0.5667 GB, free: 23.55 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.0008247/0.0008246, allocations: 86.19 kB / 0.671 GB, free: 0.9219 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.1999/0.2007, allocations: 112.5 MB / 0.7808 GB, free: 344 kB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3851/0.5858, allocations: 106.3 MB / 0.8846 GB, free: 76.39 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4922/1.078, allocations: 158.1 MB / 1.039 GB, free: 132.4 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/1.078, allocations: 91.53 kB / 1.039 GB, free: 132.4 MB / 0.6823 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0284/1.107, allocations: 11.82 MB / 1.051 GB, free: 131 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/1.107, allocations: 13 kB / 1.051 GB, free: 131 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006572/1.107, allocations: 85.44 kB / 1.051 GB, free: 130.9 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003294/1.108, allocations: 247.4 kB / 1.051 GB, free: 130.7 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.622e-05/1.108, allocations: 7.031 kB / 1.051 GB, free: 130.7 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.878e-05/1.108, allocations: 14.09 kB / 1.051 GB, free: 130.7 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003027/1.108, allocations: 174.7 kB / 1.051 GB, free: 130.7 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004046/1.109, allocations: 278.9 kB / 1.051 GB, free: 130.6 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/1.109, allocations: 5.312 kB / 1.051 GB, free: 130.6 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.577e-05/1.109, allocations: 2.094 kB / 1.051 GB, free: 130.6 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.31e-05/1.109, allocations: 13.73 kB / 1.051 GB, free: 130.6 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001289/1.11, allocations: 1.439 MB / 1.053 GB, free: 129.4 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002494/1.11, allocations: 99.67 kB / 1.053 GB, free: 129.4 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.2e-05/1.11, allocations: 42.86 kB / 1.053 GB, free: 129.4 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.325e-05/1.11, allocations: 1.344 kB / 1.053 GB, free: 129.4 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.43e-05/1.11, allocations: 32.61 kB / 1.053 GB, free: 129.4 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=8): time 1.313e-06/1.11, allocations: 0 / 1.053 GB, free: 129.4 MB / 0.6823 GB Notification: Performance of matching and sorting (n=8): time 0.000278/1.111, allocations: 115.5 kB / 1.053 GB, free: 129.3 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.055e-05/1.111, allocations: 53.33 kB / 1.053 GB, free: 129.3 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001511/1.111, allocations: 178.6 kB / 1.053 GB, free: 129.1 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.156e-05/1.111, allocations: 29.7 kB / 1.053 GB, free: 129.1 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.218e-05/1.111, allocations: 162.1 kB / 1.054 GB, free: 129 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.01e-05/1.111, allocations: 26.95 kB / 1.054 GB, free: 129 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.134e-06/1.111, allocations: 0 / 1.054 GB, free: 129 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 5.554e-05/1.111, allocations: 325.7 kB / 1.054 GB, free: 128.7 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.518e-05/1.111, allocations: 39.89 kB / 1.054 GB, free: 128.6 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.84e-05/1.111, allocations: 101.5 kB / 1.054 GB, free: 128.6 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.973e-05/1.111, allocations: 56.55 kB / 1.054 GB, free: 128.6 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.614e-06/1.111, allocations: 4 kB / 1.054 GB, free: 128.6 MB / 0.6823 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003391/1.112, allocations: 186.8 kB / 1.054 GB, free: 128.5 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/1.112, allocations: 5.688 kB / 1.054 GB, free: 128.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/1.112, allocations: 2.062 kB / 1.054 GB, free: 128.5 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001732/1.112, allocations: 28.5 kB / 1.054 GB, free: 128.5 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001509/1.112, allocations: 29.72 kB / 1.054 GB, free: 128.5 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007385/1.113, allocations: 1.256 MB / 1.056 GB, free: 127.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001401/1.113, allocations: 20.19 kB / 1.056 GB, free: 127.3 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.758e-05/1.113, allocations: 10.94 kB / 1.056 GB, free: 127.3 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.068e-05/1.113, allocations: 107.7 kB / 1.056 GB, free: 127.2 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.435e-05/1.113, allocations: 19.28 kB / 1.056 GB, free: 127.1 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.18e-05/1.113, allocations: 18.56 kB / 1.056 GB, free: 127.1 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.564e-06/1.113, allocations: 1.531 kB / 1.056 GB, free: 127.1 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/1.113, allocations: 1 kB / 1.056 GB, free: 127.1 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/1.113, allocations: 0.5625 kB / 1.056 GB, free: 127.1 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002388/1.113, allocations: 223.9 kB / 1.056 GB, free: 127 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/1.113, allocations: 1.125 kB / 1.056 GB, free: 127 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.144e-05/1.113, allocations: 12.62 kB / 1.056 GB, free: 127 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.33e-05/1.114, allocations: 25.53 kB / 1.056 GB, free: 127 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.047e-05/1.114, allocations: 1.031 kB / 1.056 GB, free: 127 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007149/1.114, allocations: 1.253 MB / 1.057 GB, free: 125.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/1.114, allocations: 4.594 kB / 1.057 GB, free: 125.8 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002233/1.115, allocations: 216.4 kB / 1.057 GB, free: 125.6 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000286/1.115, allocations: 0.5928 MB / 1.058 GB, free: 125.1 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 7.242e-05/1.115, allocations: 99.66 kB / 1.058 GB, free: 125 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.635e-05/1.115, allocations: 2.172 kB / 1.058 GB, free: 125 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001404/1.115, allocations: 14.48 kB / 1.058 GB, free: 125 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.509e-05/1.115, allocations: 4.25 kB / 1.058 GB, free: 125 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/1.115, allocations: 3.047 kB / 1.058 GB, free: 125 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0001086/1.115, allocations: 134.3 kB / 1.058 GB, free: 124.9 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0009504/1.116, allocations: 55.94 kB / 1.058 GB, free: 124.9 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000115/1.116, allocations: 95.48 kB / 1.058 GB, free: 124.8 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003478/1.117, allocations: 205.6 kB / 1.059 GB, free: 124.7 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/1.117, allocations: 0.5625 kB / 1.059 GB, free: 124.7 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001644/1.117, allocations: 148.1 kB / 1.059 GB, free: 124.6 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/1.117, allocations: 34.95 kB / 1.059 GB, free: 124.6 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005559/1.118, allocations: 228.8 kB / 1.059 GB, free: 124.5 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003417/1.118, allocations: 0.7778 MB / 1.06 GB, free: 123.8 MB / 0.6823 GB Notification: Performance of SimCode: time 2.7e-07/1.118, allocations: 0.7812 kB / 1.06 GB, free: 123.8 MB / 0.6823 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_DC_Sources_Examples_VoltageSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_DC_Sources_Examples_VoltageSource.fmu > Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1)