Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.RCModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_RCModel",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.0/package.mo): time 2.176/2.176, allocations: 284.8 MB / 292.1 MB, free: 10.82 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.001621/0.001621, allocations: 185.2 kB / 360.3 MB, free: 7.559 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.657/1.657, allocations: 205.1 MB / 0.6187 GB, free: 13.23 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.001192/0.001191, allocations: 84.42 kB / 0.7317 GB, free: 45.11 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2433/0.2445, allocations: 121.4 MB / 0.8502 GB, free: 3.941 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.559/0.8036, allocations: 115.2 MB / 0.9627 GB, free: 78.75 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2573/1.061, allocations: 169.9 MB / 1.129 GB, free: 2.902 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003217/1.061, allocations: 88.73 kB / 1.129 GB, free: 2.816 MB / 0.7292 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:18:3-18: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.0/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.0/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.0.0/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:18:3-18: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.0/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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.06995/1.131, allocations: 18.04 MB / 1.146 GB, free: 0.6445 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/1.131, allocations: 12.5 kB / 1.146 GB, free: 0.6328 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001853/1.133, allocations: 155.4 kB / 1.147 GB, free: 492 kB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008928/1.134, allocations: 343.8 kB / 1.147 GB, free: 112 kB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.891e-05/1.134, allocations: 12 kB / 1.147 GB, free: 100 kB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.299e-05/1.134, allocations: 27.89 kB / 1.147 GB, free: 72 kB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001035/1.135, allocations: 349.4 kB / 1.147 GB, free: 15.73 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001188/1.136, allocations: 479.9 kB / 1.148 GB, free: 15.23 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.934e-05/1.137, allocations: 4 kB / 1.148 GB, free: 15.22 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.847e-05/1.137, allocations: 0 / 1.148 GB, free: 15.22 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.298e-05/1.137, allocations: 24.64 kB / 1.148 GB, free: 15.2 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004026/1.141, allocations: 2.352 MB / 1.15 GB, free: 12.64 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003354/1.141, allocations: 122.4 kB / 1.15 GB, free: 12.51 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002664/1.141, allocations: 104.8 kB / 1.15 GB, free: 12.41 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 2.047e-05/1.141, allocations: 8.281 kB / 1.15 GB, free: 12.4 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/1.141, allocations: 34.47 kB / 1.15 GB, free: 12.36 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=20): time 2.475e-06/1.141, allocations: 4 kB / 1.15 GB, free: 12.35 MB / 0.7605 GB Notification: Performance of matching and sorting (n=23): time 0.002544/1.144, allocations: 0.7931 MB / 1.151 GB, free: 11.5 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.092e-05/1.144, allocations: 69.69 kB / 1.151 GB, free: 11.42 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003616/1.144, allocations: 221 kB / 1.151 GB, free: 11.2 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 3.693e-05/1.145, allocations: 29.69 kB / 1.151 GB, free: 11.16 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001468/1.145, allocations: 207.5 kB / 1.152 GB, free: 10.96 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 9.573e-05/1.145, allocations: 86.75 kB / 1.152 GB, free: 10.87 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.001e-05/1.145, allocations: 0 / 1.152 GB, free: 10.87 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.000157/1.145, allocations: 330.8 kB / 1.152 GB, free: 10.54 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002853/1.145, allocations: 100.6 kB / 1.152 GB, free: 10.44 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003546/1.146, allocations: 175.5 kB / 1.152 GB, free: 10.23 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003449/1.146, allocations: 129 kB / 1.152 GB, free: 10.11 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/1.146, allocations: 0 / 1.152 GB, free: 10.11 MB / 0.7605 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001227/1.147, allocations: 403.9 kB / 1.153 GB, free: 9.699 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/1.147, allocations: 4 kB / 1.153 GB, free: 9.695 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/1.147, allocations: 4 kB / 1.153 GB, free: 9.691 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005614/1.148, allocations: 90.73 kB / 1.153 GB, free: 9.594 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005518/1.148, allocations: 63.91 kB / 1.153 GB, free: 9.531 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004263/1.153, allocations: 3.874 MB / 1.157 GB, free: 5.312 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003934/1.153, allocations: 11.94 kB / 1.157 GB, free: 5.301 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.393e-05/1.153, allocations: 8 kB / 1.157 GB, free: 5.293 MB / 0.7605 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001639/1.153, allocations: 128.7 kB / 1.157 GB, free: 5.16 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.356e-05/1.153, allocations: 31.62 kB / 1.157 GB, free: 5.129 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001076/1.154, allocations: 26.06 kB / 1.157 GB, free: 5.105 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/1.154, allocations: 7.984 kB / 1.157 GB, free: 5.098 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/1.154, allocations: 0 / 1.157 GB, free: 5.098 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/1.154, allocations: 0 / 1.157 GB, free: 5.098 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006365/1.154, allocations: 339.8 kB / 1.157 GB, free: 4.73 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/1.154, allocations: 7.094 kB / 1.157 GB, free: 4.727 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000338/1.155, allocations: 31.98 kB / 1.157 GB, free: 4.695 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004986/1.155, allocations: 94.48 kB / 1.157 GB, free: 4.594 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.472e-05/1.155, allocations: 3.906 kB / 1.157 GB, free: 4.59 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004073/1.159, allocations: 3.858 MB / 1.161 GB, free: 404 kB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/1.159, allocations: 0 / 1.161 GB, free: 404 kB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001354/1.161, allocations: 0.5342 MB / 1.162 GB, free: 15.84 MB / 0.7761 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00169/1.162, allocations: 1.053 MB / 1.163 GB, free: 14.75 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002034/1.163, allocations: 128.7 kB / 1.163 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.17e-05/1.163, allocations: 1.438 kB / 1.163 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003299/1.163, allocations: 4 kB / 1.163 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.198e-05/1.163, allocations: 15.97 kB / 1.163 GB, free: 14.59 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.474e-05/1.163, allocations: 4 kB / 1.163 GB, free: 14.59 MB / 0.7761 GB Notification: Performance of sort global known variables: time 0.0002584/1.163, allocations: 173.2 kB / 1.163 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.001504/1.165, allocations: 88.06 kB / 1.163 GB, free: 14.33 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001784/1.165, allocations: 99.23 kB / 1.163 GB, free: 14.22 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.001163/1.166, allocations: 0.5526 MB / 1.164 GB, free: 13.64 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/1.166, allocations: 0 / 1.164 GB, free: 13.64 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0007311/1.167, allocations: 425.5 kB / 1.164 GB, free: 13.19 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005596/1.168, allocations: 66.22 kB / 1.164 GB, free: 13.13 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001524/1.169, allocations: 0.4921 MB / 1.165 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007786/1.17, allocations: 0.8639 MB / 1.165 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of SimCode: time 9.62e-07/1.17, allocations: 2.062 kB / 1.165 GB, free: 11.73 MB / 0.7761 GB (rm -f Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1)