Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.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.Loads.Examples.Resistor,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.817/1.817, allocations: 289.9 MB / 297.4 MB, free: 6.406 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.00149/0.00149, allocations: 184.8 kB / 366.7 MB, free: 1.688 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.035/2.035, allocations: 205.2 MB / 0.626 GB, free: 7.168 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.0009484/0.0009481, allocations: 82.53 kB / 0.74 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.947e-05/1.937e-05, allocations: 4 kB / 0.8598 GB, free: 12.98 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7289/0.729, allocations: 116.3 MB / 0.9733 GB, free: 76.43 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2337/0.9628, allocations: 164.4 MB / 1.134 GB, free: 1.727 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002544/0.9631, allocations: 92.53 kB / 1.134 GB, free: 1.637 MB / 0.7292 GB [/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/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/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: Performance of FrontEnd - DAE generated: time 0.04002/1.003, allocations: 16 MB / 1.15 GB, free: 1.531 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.953e-06/1.003, allocations: 0 / 1.15 GB, free: 1.531 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 2.727e-05/1.003, allocations: 8 kB / 1.15 GB, free: 1.523 MB / 0.7448 GB 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.001041/1.004, allocations: 0.5492 MB / 1.15 GB, free: 0.9297 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/1.004, allocations: 8.031 kB / 1.15 GB, free: 0.9219 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001165/1.005, allocations: 143.4 kB / 1.15 GB, free: 0.7812 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005024/1.006, allocations: 290.9 kB / 1.151 GB, free: 468 kB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.976e-05/1.006, allocations: 12 kB / 1.151 GB, free: 456 kB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.463e-05/1.006, allocations: 16 kB / 1.151 GB, free: 440 kB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004887/1.007, allocations: 279.9 kB / 1.151 GB, free: 164 kB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006737/1.007, allocations: 405.7 kB / 1.151 GB, free: 15.73 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/1.007, allocations: 4 kB / 1.151 GB, free: 15.72 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.492e-05/1.007, allocations: 1.5 kB / 1.151 GB, free: 15.72 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.64e-05/1.007, allocations: 24.55 kB / 1.151 GB, free: 15.7 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002224/1.01, allocations: 2.106 MB / 1.153 GB, free: 13.39 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003731/1.01, allocations: 247.8 kB / 1.154 GB, free: 13.12 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002466/1.01, allocations: 110.8 kB / 1.154 GB, free: 13.02 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 1.241e-05/1.01, allocations: 3.938 kB / 1.154 GB, free: 13.01 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.267e-05/1.01, allocations: 42.56 kB / 1.154 GB, free: 12.96 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=14): time 2.064e-06/1.01, allocations: 0 / 1.154 GB, free: 12.96 MB / 0.7605 GB Notification: Performance of matching and sorting (n=14): time 0.0004193/1.011, allocations: 146.5 kB / 1.154 GB, free: 12.81 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.19e-05/1.011, allocations: 51.41 kB / 1.154 GB, free: 12.75 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002221/1.011, allocations: 191.2 kB / 1.154 GB, free: 12.55 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 2.127e-05/1.011, allocations: 25.7 kB / 1.154 GB, free: 12.52 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/1.011, allocations: 213.2 kB / 1.154 GB, free: 12.31 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 4.988e-05/1.011, allocations: 47.3 kB / 1.154 GB, free: 12.27 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.766e-06/1.011, allocations: 4 kB / 1.154 GB, free: 12.26 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001275/1.011, allocations: 334.8 kB / 1.155 GB, free: 11.93 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.895e-05/1.011, allocations: 48.45 kB / 1.155 GB, free: 11.88 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/1.012, allocations: 137.4 kB / 1.155 GB, free: 11.71 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001146/1.012, allocations: 65.78 kB / 1.155 GB, free: 11.64 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/1.012, allocations: 8 kB / 1.155 GB, free: 11.64 MB / 0.7605 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003849/1.012, allocations: 229.9 kB / 1.155 GB, free: 11.4 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/1.012, allocations: 8 kB / 1.155 GB, free: 11.39 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/1.012, allocations: 4.375 kB / 1.155 GB, free: 11.39 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001738/1.012, allocations: 28.84 kB / 1.155 GB, free: 11.36 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001936/1.013, allocations: 47.92 kB / 1.155 GB, free: 11.31 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009603/1.014, allocations: 1.261 MB / 1.156 GB, free: 9.934 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001726/1.014, allocations: 19.69 kB / 1.157 GB, free: 9.914 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.122e-05/1.014, allocations: 16 kB / 1.157 GB, free: 9.898 MB / 0.7605 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 8.923e-05/1.014, allocations: 110.4 kB / 1.157 GB, free: 9.785 MB / 0.7605 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000244/1.014, allocations: 150.3 kB / 1.157 GB, free: 9.629 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.092e-05/1.014, allocations: 19.91 kB / 1.157 GB, free: 9.609 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.475e-05/1.014, allocations: 25.95 kB / 1.157 GB, free: 9.59 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/1.014, allocations: 5.125 kB / 1.157 GB, free: 9.586 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/1.014, allocations: 0 / 1.157 GB, free: 9.586 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/1.014, allocations: 3.953 kB / 1.157 GB, free: 9.582 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008162/1.015, allocations: 0.6405 MB / 1.157 GB, free: 8.863 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.658e-06/1.015, allocations: 2 kB / 1.157 GB, free: 8.863 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.357e-05/1.015, allocations: 23.98 kB / 1.157 GB, free: 8.84 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.822e-05/1.015, allocations: 27.19 kB / 1.158 GB, free: 8.812 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/1.015, allocations: 192 / 1.158 GB, free: 8.812 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008434/1.016, allocations: 1.264 MB / 1.159 GB, free: 7.43 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/1.016, allocations: 4.094 kB / 1.159 GB, free: 7.426 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003658/1.017, allocations: 376.5 kB / 1.159 GB, free: 6.984 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001086/1.017, allocations: 118.5 kB / 1.159 GB, free: 6.852 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.366e-05/1.017, allocations: 0 / 1.159 GB, free: 6.852 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001564/1.017, allocations: 12 kB / 1.159 GB, free: 6.84 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.853e-05/1.017, allocations: 11.98 kB / 1.159 GB, free: 6.828 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/1.017, allocations: 8 kB / 1.159 GB, free: 6.82 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0001233/1.017, allocations: 157.5 kB / 1.159 GB, free: 6.668 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1.9e-07/1.017, allocations: 0 / 1.159 GB, free: 6.668 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0004428/1.018, allocations: 75.69 kB / 1.159 GB, free: 6.594 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 0.0007583/1.018, allocations: 1.306 MB / 1.161 GB, free: 5.219 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0004864/1.019, allocations: 246.1 kB / 1.161 GB, free: 4.969 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/1.019, allocations: 3.938 kB / 1.161 GB, free: 4.965 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0002025/1.019, allocations: 169.7 kB / 1.161 GB, free: 4.789 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003748/1.019, allocations: 48.16 kB / 1.161 GB, free: 4.742 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009599/1.02, allocations: 443 kB / 1.162 GB, free: 4.254 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003797/1.021, allocations: 0.8025 MB / 1.162 GB, free: 3.422 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0001681/1.021, allocations: 40.86 kB / 1.162 GB, free: 3.387 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/1.021, allocations: 83.34 kB / 1.163 GB, free: 3.309 MB / 0.7605 GB Notification: Performance of SimCode: time 3.71e-07/1.021, allocations: 0 / 1.163 GB, free: 3.309 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02642/1.048, allocations: 4.009 MB / 1.166 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001865/1.048, allocations: 132 kB / 1.167 GB, free: 15.2 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.766/2.814, allocations: 0 / 1.167 GB, free: 15.2 MB / 0.7761 GB (rm -f Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)