Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.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.Loads.Examples.Resistor,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Loads_Examples_Resistor",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.122/2.122, allocations: 284.8 MB / 292.1 MB, free: 14.75 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001543/0.001543, allocations: 177.3 kB / 360.3 MB, free: 12.28 MB / 302.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.637/1.637, allocations: 205.1 MB / 0.6187 GB, free: 5.191 MB / 462.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001201/0.001201, allocations: 97.61 kB / 0.7317 GB, free: 53.52 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.2383/0.2395, allocations: 121.4 MB / 0.8502 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.4742, allocations: 115.2 MB / 0.9628 GB, free: 7.23 MB / 0.7012 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5823/1.057, allocations: 163.2 MB / 1.122 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003339/1.057, allocations: 95.94 kB / 1.122 GB, free: 5.246 MB / 0.7169 GB [/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/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.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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0617/1.119, allocations: 16.22 MB / 1.138 GB, free: 5.059 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/1.119, allocations: 8.5 kB / 1.138 GB, free: 5.051 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00165/1.12, allocations: 143.4 kB / 1.138 GB, free: 4.91 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006152/1.121, allocations: 286.4 kB / 1.138 GB, free: 4.59 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.419e-05/1.121, allocations: 12 kB / 1.138 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.833e-05/1.121, allocations: 16 kB / 1.139 GB, free: 4.562 MB / 0.7325 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007971/1.122, allocations: 289.2 kB / 1.139 GB, free: 4.281 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009753/1.123, allocations: 415.5 kB / 1.139 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/1.123, allocations: 3.938 kB / 1.139 GB, free: 3.844 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.016e-05/1.123, allocations: 8 kB / 1.139 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-05/1.123, allocations: 32.62 kB / 1.139 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003158/1.126, allocations: 2.111 MB / 1.141 GB, free: 1.492 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004872/1.127, allocations: 158.7 kB / 1.141 GB, free: 1.328 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003897/1.127, allocations: 111.6 kB / 1.142 GB, free: 1.219 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.119e-05/1.127, allocations: 0 / 1.142 GB, free: 1.219 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.556e-05/1.127, allocations: 38.56 kB / 1.142 GB, free: 1.172 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 4.127e-06/1.127, allocations: 6.297 kB / 1.142 GB, free: 1.168 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0005068/1.128, allocations: 157.2 kB / 1.142 GB, free: 1.008 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/1.128, allocations: 55.41 kB / 1.142 GB, free: 0.9414 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002789/1.128, allocations: 186.6 kB / 1.142 GB, free: 0.7578 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.425e-05/1.128, allocations: 29.7 kB / 1.142 GB, free: 0.7227 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.00014/1.128, allocations: 195.4 kB / 1.142 GB, free: 0.5273 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.565e-05/1.128, allocations: 51.3 kB / 1.142 GB, free: 488 kB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.474e-05/1.128, allocations: 0 / 1.142 GB, free: 488 kB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000156/1.129, allocations: 342.7 kB / 1.143 GB, free: 136 kB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/1.129, allocations: 48.45 kB / 1.143 GB, free: 88 kB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002343/1.129, allocations: 131.9 kB / 1.143 GB, free: 15.92 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002137/1.129, allocations: 79.89 kB / 1.143 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/1.129, allocations: 0 / 1.143 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006234/1.13, allocations: 238 kB / 1.143 GB, free: 15.6 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/1.13, allocations: 4 kB / 1.143 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/1.13, allocations: 4 kB / 1.143 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001905/1.13, allocations: 33.12 kB / 1.143 GB, free: 15.55 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003937/1.131, allocations: 47.92 kB / 1.143 GB, free: 15.51 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001374/1.132, allocations: 1.248 MB / 1.144 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002721/1.132, allocations: 19.78 kB / 1.144 GB, free: 14.12 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.527e-05/1.132, allocations: 12 kB / 1.144 GB, free: 14.11 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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 0.0001172/1.132, allocations: 116.6 kB / 1.144 GB, free: 13.99 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.72e-05/1.132, allocations: 19.72 kB / 1.144 GB, free: 13.97 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.908e-05/1.133, allocations: 29.45 kB / 1.145 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/1.133, allocations: 4.094 kB / 1.145 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/1.133, allocations: 0.8906 kB / 1.145 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/1.133, allocations: 1.375 kB / 1.145 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001297/1.134, allocations: 0.6444 MB / 1.145 GB, free: 13.22 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/1.134, allocations: 0 / 1.145 GB, free: 13.22 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001901/1.134, allocations: 27.98 kB / 1.145 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001277/1.134, allocations: 20.84 kB / 1.145 GB, free: 13.17 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.41e-05/1.134, allocations: 0 / 1.145 GB, free: 13.17 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001275/1.136, allocations: 1.26 MB / 1.146 GB, free: 11.8 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/1.136, allocations: 3.906 kB / 1.146 GB, free: 11.79 MB / 0.7481 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005679/1.136, allocations: 390.3 kB / 1.147 GB, free: 11.34 MB / 0.7481 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006926/1.137, allocations: 0.7497 MB / 1.148 GB, free: 10.52 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002018/1.137, allocations: 104.9 kB / 1.148 GB, free: 10.39 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.535e-05/1.137, allocations: 4 kB / 1.148 GB, free: 10.39 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002877/1.137, allocations: 11.98 kB / 1.148 GB, free: 10.38 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.455e-05/1.137, allocations: 17.06 kB / 1.148 GB, free: 10.36 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.781e-05/1.138, allocations: 8 kB / 1.148 GB, free: 10.36 MB / 0.7481 GB Notification: Performance of sort global known variables: time 0.0002063/1.138, allocations: 149.6 kB / 1.148 GB, free: 10.21 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.001382/1.139, allocations: 75.69 kB / 1.148 GB, free: 10.14 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * 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.0001507/1.139, allocations: 99.17 kB / 1.148 GB, free: 10.03 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0006234/1.14, allocations: 251.1 kB / 1.148 GB, free: 9.777 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/1.14, allocations: 0 / 1.148 GB, free: 9.777 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0003251/1.14, allocations: 177.6 kB / 1.148 GB, free: 9.594 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000484/1.141, allocations: 38.98 kB / 1.148 GB, free: 9.559 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001068/1.142, allocations: 386.8 kB / 1.149 GB, free: 9.141 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006206/1.142, allocations: 0.8227 MB / 1.15 GB, free: 8.289 MB / 0.7481 GB Notification: Performance of SimCode: time 1.122e-06/1.143, allocations: 0 / 1.15 GB, free: 8.289 MB / 0.7481 GB (rm -f Buildings_8.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_8.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)