Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.DC.Sources.Examples.VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.VoltageSource,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.286/1.286, allocations: 285.5 MB / 292.8 MB, free: 10.45 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.0009776/0.0009775, allocations: 193.2 kB / 361.1 MB, free: 7.066 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9879/0.9879, allocations: 205.1 MB / 0.6195 GB, free: 10.29 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.0007614/0.0007614, allocations: 95 kB / 0.7326 GB, free: 44.23 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1671/0.1678, allocations: 121.4 MB / 0.8511 GB, free: 2.863 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.394/0.5619, allocations: 115.3 MB / 0.9637 GB, free: 78.46 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1494/0.7113, allocations: 164.4 MB / 1.124 GB, free: 7.547 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000202/0.7115, allocations: 84.66 kB / 1.124 GB, free: 7.465 MB / 0.7292 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1-maint.8.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 8.0.1-maint.8.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.02542/0.7369, allocations: 11.81 MB / 1.136 GB, free: 11.59 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.737, allocations: 12.5 kB / 1.136 GB, free: 11.57 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006139/0.7376, allocations: 83.55 kB / 1.136 GB, free: 11.49 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002978/0.7379, allocations: 250.7 kB / 1.136 GB, free: 11.21 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.7379, allocations: 4 kB / 1.136 GB, free: 11.2 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.713e-05/0.738, allocations: 12 kB / 1.136 GB, free: 11.19 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002835/0.7382, allocations: 184.7 kB / 1.136 GB, free: 11.01 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000352/0.7386, allocations: 273.3 kB / 1.137 GB, free: 10.72 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.7386, allocations: 6.438 kB / 1.137 GB, free: 10.72 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.328e-05/0.7387, allocations: 4 kB / 1.137 GB, free: 10.71 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.933e-05/0.7387, allocations: 20.42 kB / 1.137 GB, free: 10.7 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001284/0.74, allocations: 1.435 MB / 1.138 GB, free: 9.105 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002311/0.7402, allocations: 94.61 kB / 1.138 GB, free: 9.004 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.625e-05/0.7403, allocations: 36.86 kB / 1.138 GB, free: 8.965 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.118e-05/0.7403, allocations: 0 / 1.138 GB, free: 8.965 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.7403, allocations: 38.47 kB / 1.138 GB, free: 8.918 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=8): time 9.31e-07/0.7403, allocations: 3.938 kB / 1.138 GB, free: 8.914 MB / 0.7448 GB Notification: Performance of matching and sorting (n=8): time 0.0002687/0.7406, allocations: 128.7 kB / 1.138 GB, free: 8.781 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.752e-05/0.7406, allocations: 55.41 kB / 1.138 GB, free: 8.715 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001491/0.7408, allocations: 166.9 kB / 1.139 GB, free: 8.543 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.561e-05/0.7408, allocations: 25.7 kB / 1.139 GB, free: 8.512 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 7.05e-05/0.7409, allocations: 171.7 kB / 1.139 GB, free: 8.34 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.701e-05/0.7409, allocations: 27.55 kB / 1.139 GB, free: 8.312 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.542e-06/0.7409, allocations: 0 / 1.139 GB, free: 8.312 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001069/0.7411, allocations: 326.8 kB / 1.139 GB, free: 7.984 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.982e-05/0.7411, allocations: 35.98 kB / 1.139 GB, free: 7.949 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.302e-05/0.7412, allocations: 99.33 kB / 1.139 GB, free: 7.824 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.401e-05/0.7413, allocations: 60.62 kB / 1.139 GB, free: 7.77 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.7413, allocations: 4 kB / 1.139 GB, free: 7.766 MB / 0.7448 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000286/0.7416, allocations: 182.1 kB / 1.14 GB, free: 7.578 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/0.7416, allocations: 4.781 kB / 1.14 GB, free: 7.574 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.7416, allocations: 4 kB / 1.14 GB, free: 7.57 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001224/0.7418, allocations: 21.12 kB / 1.14 GB, free: 7.547 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001361/0.7419, allocations: 43.92 kB / 1.14 GB, free: 7.504 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008552/0.7428, allocations: 1.258 MB / 1.141 GB, free: 6.133 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001333/0.7429, allocations: 15.84 kB / 1.141 GB, free: 6.117 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.743, allocations: 4 kB / 1.141 GB, free: 6.113 MB / 0.7448 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.308e-05/0.743, allocations: 112.8 kB / 1.141 GB, free: 5.996 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.949e-05/0.7431, allocations: 15.81 kB / 1.141 GB, free: 5.98 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.91e-05/0.7431, allocations: 25.48 kB / 1.141 GB, free: 5.957 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.7431, allocations: 0 / 1.141 GB, free: 5.957 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.7431, allocations: 0 / 1.141 GB, free: 5.957 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.7431, allocations: 0 / 1.141 GB, free: 5.957 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002081/0.7433, allocations: 218.1 kB / 1.141 GB, free: 5.707 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.7434, allocations: 0 / 1.141 GB, free: 5.707 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.258e-05/0.7434, allocations: 15.91 kB / 1.141 GB, free: 5.691 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.546e-05/0.7435, allocations: 24.78 kB / 1.141 GB, free: 5.664 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.949e-06/0.7435, allocations: 9.438 kB / 1.141 GB, free: 5.656 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007831/0.7443, allocations: 1.248 MB / 1.142 GB, free: 4.293 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.7443, allocations: 0 / 1.142 GB, free: 4.293 MB / 0.7448 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000227/0.7446, allocations: 222.1 kB / 1.143 GB, free: 4.059 MB / 0.7448 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003009/0.7449, allocations: 0.5944 MB / 1.143 GB, free: 3.441 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 7.212e-05/0.745, allocations: 96.84 kB / 1.143 GB, free: 3.328 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.275e-05/0.745, allocations: 7.188 kB / 1.143 GB, free: 3.324 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001266/0.7451, allocations: 4 kB / 1.143 GB, free: 3.32 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.233e-05/0.7452, allocations: 15.89 kB / 1.143 GB, free: 3.305 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.7452, allocations: 0 / 1.143 GB, free: 3.305 MB / 0.7448 GB Notification: Performance of sort global known variables: time 8.851e-05/0.7453, allocations: 132.3 kB / 1.143 GB, free: 3.176 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0008263/0.7461, allocations: 55.83 kB / 1.144 GB, free: 3.121 MB / 0.7448 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 8.554e-05/0.7462, allocations: 99.03 kB / 1.144 GB, free: 3.016 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002989/0.7465, allocations: 213.1 kB / 1.144 GB, free: 2.801 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.7465, allocations: 0 / 1.144 GB, free: 2.801 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001489/0.7467, allocations: 150.2 kB / 1.144 GB, free: 2.645 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002316/0.7469, allocations: 31.83 kB / 1.144 GB, free: 2.609 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004223/0.7473, allocations: 231.6 kB / 1.144 GB, free: 2.363 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003313/0.7477, allocations: 0.7839 MB / 1.145 GB, free: 1.559 MB / 0.7448 GB Notification: Performance of SimCode: time 2.71e-07/0.7477, allocations: 0 / 1.145 GB, free: 1.559 MB / 0.7448 GB (rm -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Electrical_DC_Sources_Examples_VoltageSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Electrical_DC_Sources_Examples_VoltageSource.fmu > Buildings_maint.8.0.x_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1)