Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.367/1.367, allocations: 289.8 MB / 297.1 MB, free: 6.641 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.0009808/0.0009808, allocations: 177.3 kB / 366.3 MB, free: 1.961 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.055/1.055, allocations: 205.2 MB / 0.6256 GB, free: 5.793 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.0007971/0.000797, allocations: 84.36 kB / 0.7395 GB, free: 39.63 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1948/0.1956, allocations: 122.4 MB / 0.8591 GB, free: 13.23 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4203/0.616, allocations: 116.3 MB / 0.9726 GB, free: 68.05 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1652/0.7812, allocations: 164.2 MB / 1.133 GB, free: 192 kB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002062/0.7814, allocations: 88.53 kB / 1.133 GB, free: 104 kB / 0.7292 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4-maint.8.1.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.1.4-maint.8.1.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.02472/0.8062, allocations: 11.4 MB / 1.144 GB, free: 4.551 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.8062, allocations: 8 kB / 1.144 GB, free: 4.543 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006379/0.8069, allocations: 83.64 kB / 1.144 GB, free: 4.461 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003002/0.8072, allocations: 233.3 kB / 1.144 GB, free: 4.195 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.272e-05/0.8072, allocations: 4 kB / 1.145 GB, free: 4.191 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.823e-05/0.8072, allocations: 18.34 kB / 1.145 GB, free: 4.176 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002797/0.8075, allocations: 176.7 kB / 1.145 GB, free: 4.004 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003417/0.8079, allocations: 266.5 kB / 1.145 GB, free: 3.719 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.8079, allocations: 0 / 1.145 GB, free: 3.719 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.077e-05/0.8079, allocations: 0 / 1.145 GB, free: 3.719 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.481e-05/0.8079, allocations: 16.36 kB / 1.145 GB, free: 3.703 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001282/0.8092, allocations: 1.423 MB / 1.146 GB, free: 2.133 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000169/0.8094, allocations: 90.56 kB / 1.146 GB, free: 2.035 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.166e-05/0.8095, allocations: 32.86 kB / 1.146 GB, free: 2 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 8.576e-06/0.8095, allocations: 3.984 kB / 1.146 GB, free: 1.996 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.644e-05/0.8095, allocations: 30.56 kB / 1.146 GB, free: 1.957 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.8095, allocations: 4 kB / 1.147 GB, free: 1.953 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7): time 0.000248/0.8098, allocations: 110.5 kB / 1.147 GB, free: 1.836 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.224e-05/0.8098, allocations: 51.41 kB / 1.147 GB, free: 1.773 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001286/0.8099, allocations: 158.1 kB / 1.147 GB, free: 1.613 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.336e-05/0.81, allocations: 25.7 kB / 1.147 GB, free: 1.582 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 7.472e-05/0.81, allocations: 167.5 kB / 1.147 GB, free: 1.414 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.861e-05/0.8101, allocations: 23.66 kB / 1.147 GB, free: 1.391 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.701e-06/0.8101, allocations: 0 / 1.147 GB, free: 1.391 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 8.859e-05/0.8102, allocations: 322.8 kB / 1.147 GB, free: 1.066 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.861e-05/0.8102, allocations: 39.89 kB / 1.147 GB, free: 1.027 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.55e-05/0.8103, allocations: 102.2 kB / 1.147 GB, free: 0.8984 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.569e-05/0.8104, allocations: 53.84 kB / 1.148 GB, free: 0.8477 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.8104, allocations: 3.938 kB / 1.148 GB, free: 0.8438 MB / 0.7448 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002612/0.8107, allocations: 164.1 kB / 1.148 GB, free: 0.6758 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.8107, allocations: 15.97 kB / 1.148 GB, free: 0.6602 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/0.8107, allocations: 0 / 1.148 GB, free: 0.6602 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001303/0.8108, allocations: 28.84 kB / 1.148 GB, free: 0.6289 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.811, allocations: 20 kB / 1.148 GB, free: 0.6094 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009016/0.8119, allocations: 1.252 MB / 1.149 GB, free: 15.24 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000112/0.812, allocations: 19.78 kB / 1.149 GB, free: 15.22 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.113e-05/0.812, allocations: 8 kB / 1.149 GB, free: 15.21 MB / 0.7605 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.276e-05/0.8121, allocations: 114.3 kB / 1.149 GB, free: 15.09 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.765e-05/0.8121, allocations: 11.81 kB / 1.149 GB, free: 15.08 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.683e-05/0.8122, allocations: 21.39 kB / 1.149 GB, free: 15.06 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.8122, allocations: 0 / 1.149 GB, free: 15.06 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.8122, allocations: 4 kB / 1.149 GB, free: 15.06 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.237e-06/0.8122, allocations: 4 kB / 1.149 GB, free: 15.05 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001947/0.8124, allocations: 206.2 kB / 1.149 GB, free: 14.82 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.8124, allocations: 0 / 1.149 GB, free: 14.82 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.219e-05/0.8124, allocations: 7.906 kB / 1.149 GB, free: 14.81 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.427e-05/0.8125, allocations: 28.84 kB / 1.149 GB, free: 14.78 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.173e-06/0.8125, allocations: 0 / 1.149 GB, free: 14.78 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007788/0.8133, allocations: 1.24 MB / 1.151 GB, free: 13.42 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.8133, allocations: 7.969 kB / 1.151 GB, free: 13.41 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001911/0.8135, allocations: 207.6 kB / 1.151 GB, free: 13.2 MB / 0.7605 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002786/0.8138, allocations: 0.5826 MB / 1.151 GB, free: 12.59 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 6.709e-05/0.8139, allocations: 96.95 kB / 1.151 GB, free: 12.48 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.989e-05/0.8139, allocations: 0 / 1.151 GB, free: 12.48 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.8141, allocations: 11.89 kB / 1.151 GB, free: 12.46 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.214e-05/0.8141, allocations: 7.922 kB / 1.151 GB, free: 12.46 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.592e-06/0.8141, allocations: 4 kB / 1.151 GB, free: 12.45 MB / 0.7605 GB Notification: Performance of sort global known variables: time 8.696e-05/0.8142, allocations: 133.8 kB / 1.152 GB, free: 12.32 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.000889/0.8151, allocations: 51.84 kB / 1.152 GB, free: 12.27 MB / 0.7605 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 9.376e-05/0.8152, allocations: 99.23 kB / 1.152 GB, free: 12.17 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0002747/0.8155, allocations: 185.8 kB / 1.152 GB, free: 11.98 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.8155, allocations: 4 kB / 1.152 GB, free: 11.97 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.8156, allocations: 146.2 kB / 1.152 GB, free: 11.82 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002294/0.8158, allocations: 28.11 kB / 1.152 GB, free: 11.79 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003933/0.8162, allocations: 211.9 kB / 1.152 GB, free: 11.57 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003064/0.8166, allocations: 0.7674 MB / 1.153 GB, free: 10.77 MB / 0.7605 GB Notification: Performance of SimCode: time 3.6e-07/0.8166, allocations: 0 / 1.153 GB, free: 10.77 MB / 0.7605 GB (rm -f Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)