Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.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.Loads.Examples.Resistor,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.286/1.286, allocations: 285.5 MB / 292.8 MB, free: 10.5 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.0008857/0.0008858, allocations: 177.3 kB / 361.1 MB, free: 7.105 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.004/1.004, allocations: 205.1 MB / 0.6195 GB, free: 10.32 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.0007551/0.0007551, allocations: 90.47 kB / 0.7326 GB, free: 44.27 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1688/0.1696, allocations: 121.4 MB / 0.8511 GB, free: 2.922 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3989/0.5684, allocations: 115.3 MB / 0.9638 GB, free: 78.38 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1478/0.7162, allocations: 163.4 MB / 1.123 GB, free: 8.688 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002073/0.7165, allocations: 87.95 kB / 1.123 GB, free: 8.602 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.03442/0.7509, allocations: 16.23 MB / 1.139 GB, free: 8.27 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.03e-05/0.751, allocations: 8.5 kB / 1.139 GB, free: 8.262 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009738/0.7519, allocations: 147.4 kB / 1.139 GB, free: 8.117 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003714/0.7523, allocations: 286.7 kB / 1.14 GB, free: 7.801 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.24e-05/0.7523, allocations: 12 kB / 1.14 GB, free: 7.789 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.602e-05/0.7524, allocations: 16 kB / 1.14 GB, free: 7.773 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004171/0.7528, allocations: 285.2 kB / 1.14 GB, free: 7.496 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005277/0.7533, allocations: 420.1 kB / 1.14 GB, free: 7.055 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.7534, allocations: 0 / 1.14 GB, free: 7.055 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.861e-05/0.7534, allocations: 0 / 1.14 GB, free: 7.055 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.589e-05/0.7534, allocations: 28.64 kB / 1.14 GB, free: 7.023 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001851/0.7553, allocations: 2.118 MB / 1.142 GB, free: 4.707 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002346/0.7555, allocations: 158.7 kB / 1.143 GB, free: 4.543 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002047/0.7558, allocations: 108.8 kB / 1.143 GB, free: 4.434 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.26e-05/0.7558, allocations: 4 kB / 1.143 GB, free: 4.43 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.7558, allocations: 42.5 kB / 1.143 GB, free: 4.379 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=14): time 1.202e-06/0.7558, allocations: 3.938 kB / 1.143 GB, free: 4.375 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14): time 0.0003161/0.7561, allocations: 158.2 kB / 1.143 GB, free: 4.211 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.485e-05/0.7562, allocations: 51.41 kB / 1.143 GB, free: 4.148 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001711/0.7563, allocations: 187.1 kB / 1.143 GB, free: 3.961 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.68e-05/0.7564, allocations: 25.7 kB / 1.143 GB, free: 3.93 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 8.834e-05/0.7565, allocations: 196.3 kB / 1.143 GB, free: 3.734 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.129e-05/0.7565, allocations: 55.3 kB / 1.143 GB, free: 3.68 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.275e-06/0.7565, allocations: 0 / 1.143 GB, free: 3.68 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 9.424e-05/0.7566, allocations: 330.7 kB / 1.144 GB, free: 3.348 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.854e-05/0.7567, allocations: 52.45 kB / 1.144 GB, free: 3.297 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001283/0.7568, allocations: 139.8 kB / 1.144 GB, free: 3.121 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001111/0.7569, allocations: 75.95 kB / 1.144 GB, free: 3.047 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.757, allocations: 0 / 1.144 GB, free: 3.047 MB / 0.7448 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003537/0.7573, allocations: 238 kB / 1.144 GB, free: 2.805 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.077e-05/0.7573, allocations: 4.844 kB / 1.144 GB, free: 2.801 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.7573, allocations: 4.375 kB / 1.144 GB, free: 2.797 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001241/0.7575, allocations: 38.56 kB / 1.144 GB, free: 2.758 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001851/0.7577, allocations: 47.92 kB / 1.144 GB, free: 2.711 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008152/0.7585, allocations: 1.248 MB / 1.146 GB, free: 1.348 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001435/0.7587, allocations: 19.75 kB / 1.146 GB, free: 1.328 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.585e-05/0.7587, allocations: 8 kB / 1.146 GB, free: 1.32 MB / 0.7448 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 7.319e-05/0.7588, allocations: 108.9 kB / 1.146 GB, free: 1.207 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.773e-05/0.7588, allocations: 27.81 kB / 1.146 GB, free: 1.18 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.496e-05/0.7589, allocations: 31.27 kB / 1.146 GB, free: 1.156 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.7589, allocations: 5.438 kB / 1.146 GB, free: 1.152 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.7589, allocations: 0 / 1.146 GB, free: 1.152 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.7589, allocations: 0 / 1.146 GB, free: 1.152 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006854/0.7596, allocations: 0.6406 MB / 1.146 GB, free: 444 kB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.7596, allocations: 4 kB / 1.146 GB, free: 440 kB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.2e-05/0.7597, allocations: 23.92 kB / 1.146 GB, free: 416 kB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.137e-05/0.7598, allocations: 24.84 kB / 1.146 GB, free: 388 kB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.258e-06/0.7598, allocations: 4 kB / 1.146 GB, free: 384 kB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007421/0.7605, allocations: 1.255 MB / 1.148 GB, free: 15 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.7606, allocations: 11.88 kB / 1.148 GB, free: 14.99 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003051/0.7609, allocations: 382.1 kB / 1.148 GB, free: 14.55 MB / 0.7605 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003959/0.7613, allocations: 0.7477 MB / 1.149 GB, free: 13.72 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 8.26e-05/0.7614, allocations: 104.9 kB / 1.149 GB, free: 13.6 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.702e-05/0.7614, allocations: 0 / 1.149 GB, free: 13.6 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001572/0.7616, allocations: 15.98 kB / 1.149 GB, free: 13.59 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.338e-05/0.7616, allocations: 11.91 kB / 1.149 GB, free: 13.57 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.098e-05/0.7616, allocations: 11.94 kB / 1.149 GB, free: 13.56 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.0001063/0.7617, allocations: 149.6 kB / 1.149 GB, free: 13.42 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0008769/0.7626, allocations: 75.69 kB / 1.149 GB, free: 13.34 MB / 0.7605 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 8.84e-05/0.7627, allocations: 99.03 kB / 1.149 GB, free: 13.24 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0003565/0.7631, allocations: 262.7 kB / 1.149 GB, free: 12.97 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.7631, allocations: 0 / 1.149 GB, free: 12.97 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0001748/0.7632, allocations: 169.6 kB / 1.15 GB, free: 12.8 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003087/0.7636, allocations: 40.88 kB / 1.15 GB, free: 12.76 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006156/0.7642, allocations: 377.9 kB / 1.15 GB, free: 12.35 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003662/0.7646, allocations: 0.8268 MB / 1.151 GB, free: 11.5 MB / 0.7605 GB Notification: Performance of SimCode: time 2.4e-07/0.7646, allocations: 2.344 kB / 1.151 GB, free: 11.5 MB / 0.7605 GB (rm -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_maint.8.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)