Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.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.Lines.Examples.Resistance,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_DC_Lines_Examples_Resistance",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.303/1.303, allocations: 285.5 MB / 292.8 MB, free: 10.39 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.0009388/0.0009389, allocations: 181.3 kB / 361.1 MB, free: 7.086 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.984/0.984, allocations: 205.1 MB / 0.6195 GB, free: 10.31 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.0007659/0.0007659, allocations: 90.81 kB / 0.7326 GB, free: 44.25 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1659/0.1667, allocations: 121.4 MB / 0.8512 GB, free: 2.895 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3953/0.5619, allocations: 115.3 MB / 0.9638 GB, free: 78.38 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1476/0.7096, allocations: 163.2 MB / 1.123 GB, free: 8.766 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000199/0.7099, allocations: 90.09 kB / 1.123 GB, free: 8.68 MB / 0.7292 GB [/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/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/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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.02333/0.7332, allocations: 11.39 MB / 1.134 GB, free: 13.23 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 2.981e-05/0.7332, allocations: 8.5 kB / 1.134 GB, free: 13.23 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006027/0.7338, allocations: 93.94 kB / 1.134 GB, free: 13.14 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002824/0.7341, allocations: 238.7 kB / 1.135 GB, free: 12.86 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.7342, allocations: 8 kB / 1.135 GB, free: 12.86 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.38e-05/0.7342, allocations: 8 kB / 1.135 GB, free: 12.85 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000265/0.7345, allocations: 176.8 kB / 1.135 GB, free: 12.68 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003324/0.7348, allocations: 270.8 kB / 1.135 GB, free: 12.39 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.7348, allocations: 0 / 1.135 GB, free: 12.39 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.146e-05/0.7348, allocations: 0 / 1.135 GB, free: 12.39 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.549e-05/0.7349, allocations: 12.38 kB / 1.135 GB, free: 12.38 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001218/0.7361, allocations: 1.419 MB / 1.137 GB, free: 10.81 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001568/0.7363, allocations: 94.58 kB / 1.137 GB, free: 10.71 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.691e-05/0.7363, allocations: 28.89 kB / 1.137 GB, free: 10.68 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 9.488e-06/0.7363, allocations: 4 kB / 1.137 GB, free: 10.67 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.081e-05/0.7364, allocations: 34.5 kB / 1.137 GB, free: 10.63 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=7): time 1.653e-06/0.7364, allocations: 0 / 1.137 GB, free: 10.63 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7): time 0.0002477/0.7366, allocations: 108.9 kB / 1.137 GB, free: 10.52 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.693e-05/0.7367, allocations: 51.41 kB / 1.137 GB, free: 10.45 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001244/0.7368, allocations: 154.2 kB / 1.137 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.335e-05/0.7368, allocations: 33.64 kB / 1.137 GB, free: 10.26 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.625e-05/0.7369, allocations: 163.5 kB / 1.137 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.842e-05/0.7369, allocations: 27.64 kB / 1.137 GB, free: 10.07 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.641e-06/0.7369, allocations: 0 / 1.137 GB, free: 10.07 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 8.453e-05/0.737, allocations: 322.8 kB / 1.137 GB, free: 9.742 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.581e-05/0.7371, allocations: 35.91 kB / 1.138 GB, free: 9.707 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.019e-05/0.7372, allocations: 100.5 kB / 1.138 GB, free: 9.578 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.307e-05/0.7372, allocations: 53.56 kB / 1.138 GB, free: 9.527 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.7373, allocations: 0 / 1.138 GB, free: 9.527 MB / 0.7448 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002543/0.7375, allocations: 167.9 kB / 1.138 GB, free: 9.355 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/0.7375, allocations: 7.906 kB / 1.138 GB, free: 9.348 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.7376, allocations: 4 kB / 1.138 GB, free: 9.344 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001261/0.7377, allocations: 29.12 kB / 1.138 GB, free: 9.312 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/0.7378, allocations: 33.52 kB / 1.138 GB, free: 9.281 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008147/0.7386, allocations: 1.254 MB / 1.139 GB, free: 7.914 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001112/0.7387, allocations: 19.73 kB / 1.139 GB, free: 7.895 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.7388, allocations: 8 kB / 1.139 GB, free: 7.887 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 (17): * Single equations (assignments): 16 * 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.314e-05/0.7388, allocations: 101 kB / 1.139 GB, free: 7.781 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.848e-05/0.7389, allocations: 15.81 kB / 1.139 GB, free: 7.766 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.463e-05/0.7389, allocations: 21.5 kB / 1.139 GB, free: 7.746 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.7389, allocations: 0 / 1.139 GB, free: 7.746 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.7389, allocations: 0 / 1.139 GB, free: 7.746 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.7389, allocations: 0 / 1.139 GB, free: 7.746 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001912/0.7391, allocations: 210.3 kB / 1.139 GB, free: 7.504 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.7391, allocations: 11.83 kB / 1.139 GB, free: 7.492 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.056e-05/0.7392, allocations: 8 kB / 1.14 GB, free: 7.484 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.132e-05/0.7393, allocations: 20.84 kB / 1.14 GB, free: 7.461 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.452e-06/0.7393, allocations: 0 / 1.14 GB, free: 7.461 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000724/0.74, allocations: 1.246 MB / 1.141 GB, free: 6.102 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.74, allocations: 4.062 kB / 1.141 GB, free: 6.098 MB / 0.7448 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001832/0.7402, allocations: 213.7 kB / 1.141 GB, free: 5.871 MB / 0.7448 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002867/0.7405, allocations: 0.5787 MB / 1.142 GB, free: 5.27 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 6.974e-05/0.7406, allocations: 100.9 kB / 1.142 GB, free: 5.152 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.955e-05/0.7406, allocations: 0 / 1.142 GB, free: 5.152 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.7407, allocations: 7.906 kB / 1.142 GB, free: 5.145 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.866e-05/0.7408, allocations: 6.125 kB / 1.142 GB, free: 5.141 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-06/0.7408, allocations: 3.938 kB / 1.142 GB, free: 5.137 MB / 0.7448 GB Notification: Performance of sort global known variables: time 8.435e-05/0.7409, allocations: 136.8 kB / 1.142 GB, free: 5.004 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0008174/0.7417, allocations: 47.84 kB / 1.142 GB, free: 4.957 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 (6): * Single equations (assignments): 5 * 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.244e-05/0.7418, allocations: 103 kB / 1.142 GB, free: 4.848 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.00027/0.742, allocations: 190.5 kB / 1.142 GB, free: 4.652 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.7421, allocations: 0 / 1.142 GB, free: 4.652 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001306/0.7422, allocations: 145.7 kB / 1.142 GB, free: 4.5 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002227/0.7424, allocations: 32.61 kB / 1.142 GB, free: 4.473 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003813/0.7428, allocations: 211.9 kB / 1.142 GB, free: 4.246 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003051/0.7431, allocations: 0.7635 MB / 1.143 GB, free: 3.457 MB / 0.7448 GB Notification: Performance of SimCode: time 3.01e-07/0.7431, allocations: 0 / 1.143 GB, free: 3.457 MB / 0.7448 GB (rm -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)