Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_maint_7_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_7_0_x_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.547/1.547, allocations: 249.3 MB / 261.8 MB, free: 5.906 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00117/0.00117, allocations: 180.9 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.553/1.553, allocations: 205.2 MB / 0.572 GB, free: 10.69 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009458/0.0009458, allocations: 90.47 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.639e-05/4.641e-05, allocations: 4 kB / 0.788 GB, free: 97.01 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.2796, allocations: 106.4 MB / 0.8919 GB, free: 6.57 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.853/1.133, allocations: 157.7 MB / 1.046 GB, free: 11.15 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002359/1.133, allocations: 85.89 kB / 1.046 GB, free: 11.11 MB / 0.6667 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3-maint.7.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 7.0.3-maint.7.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: Performance of FrontEnd - DAE generated: time 0.02658/1.16, allocations: 11.29 MB / 1.057 GB, free: 1.793 MB / 0.6667 GB Notification: Performance of FrontEnd: time 1.483e-06/1.16, allocations: 0 / 1.057 GB, free: 1.793 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 1.761e-05/1.16, allocations: 11.94 kB / 1.057 GB, free: 1.781 MB / 0.6667 GB 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.0006332/1.16, allocations: 483.2 kB / 1.057 GB, free: 1.277 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/1.16, allocations: 12.03 kB / 1.057 GB, free: 1.266 MB / 0.6667 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.363e-05/1.16, allocations: 48.48 kB / 1.057 GB, free: 1.219 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005971/1.161, allocations: 83.64 kB / 1.058 GB, free: 1.137 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003381/1.161, allocations: 237.9 kB / 1.058 GB, free: 0.8828 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/1.161, allocations: 11.75 kB / 1.058 GB, free: 0.875 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.442e-05/1.161, allocations: 26.67 kB / 1.058 GB, free: 0.8555 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004299/1.162, allocations: 288.9 kB / 1.058 GB, free: 0.625 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/1.162, allocations: 0 / 1.058 GB, free: 0.625 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.658e-05/1.162, allocations: 7.812 kB / 1.058 GB, free: 0.6211 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-05/1.162, allocations: 19.67 kB / 1.058 GB, free: 0.6055 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003066/1.162, allocations: 183.5 kB / 1.058 GB, free: 496 kB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001503/1.164, allocations: 1.472 MB / 1.06 GB, free: 14.97 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002409/1.164, allocations: 180.7 kB / 1.06 GB, free: 14.79 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.573e-05/1.164, allocations: 31.91 kB / 1.06 GB, free: 14.76 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 7.804e-06/1.164, allocations: 0 / 1.06 GB, free: 14.76 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.005e-05/1.164, allocations: 37.5 kB / 1.06 GB, free: 14.72 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 1.002e-06/1.164, allocations: 0 / 1.06 GB, free: 14.72 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.0002982/1.164, allocations: 103.8 kB / 1.06 GB, free: 14.62 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.84e-05/1.164, allocations: 59.36 kB / 1.06 GB, free: 14.55 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001908/1.165, allocations: 189.9 kB / 1.06 GB, free: 14.39 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/1.165, allocations: 28.77 kB / 1.06 GB, free: 14.36 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 9.823e-05/1.165, allocations: 160.3 kB / 1.06 GB, free: 14.21 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.426e-05/1.165, allocations: 31.5 kB / 1.061 GB, free: 14.18 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.232e-06/1.165, allocations: 3.938 kB / 1.061 GB, free: 14.18 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.000128/1.165, allocations: 322.3 kB / 1.061 GB, free: 13.86 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.497e-05/1.165, allocations: 30.69 kB / 1.061 GB, free: 13.84 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001057/1.165, allocations: 103.9 kB / 1.061 GB, free: 13.73 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.103e-05/1.165, allocations: 55.28 kB / 1.061 GB, free: 13.68 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/1.165, allocations: 0 / 1.061 GB, free: 13.68 MB / 0.6823 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002847/1.166, allocations: 194.6 kB / 1.061 GB, free: 13.52 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/1.166, allocations: 8 kB / 1.061 GB, free: 13.51 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/1.166, allocations: 0 / 1.061 GB, free: 13.51 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001559/1.166, allocations: 28.48 kB / 1.061 GB, free: 13.48 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/1.166, allocations: 31.92 kB / 1.061 GB, free: 13.45 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001061/1.167, allocations: 1.312 MB / 1.063 GB, free: 12.05 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000116/1.167, allocations: 23.14 kB / 1.063 GB, free: 12.04 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.367e-05/1.167, allocations: 8 kB / 1.063 GB, free: 12.03 MB / 0.6823 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 0.0001057/1.167, allocations: 117 kB / 1.063 GB, free: 11.91 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.666e-05/1.167, allocations: 11.81 kB / 1.063 GB, free: 11.9 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.712e-05/1.167, allocations: 19.59 kB / 1.063 GB, free: 11.89 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/1.167, allocations: 7.953 kB / 1.063 GB, free: 11.88 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/1.167, allocations: 0 / 1.063 GB, free: 11.88 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/1.167, allocations: 8.016 kB / 1.063 GB, free: 11.88 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000504/1.168, allocations: 436.7 kB / 1.063 GB, free: 11.44 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/1.168, allocations: 0 / 1.063 GB, free: 11.44 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.482e-05/1.168, allocations: 4 kB / 1.063 GB, free: 11.44 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.984e-05/1.168, allocations: 27.91 kB / 1.063 GB, free: 11.41 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.236e-06/1.168, allocations: 0 / 1.063 GB, free: 11.41 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009247/1.169, allocations: 1.316 MB / 1.064 GB, free: 10.01 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/1.169, allocations: 3.984 kB / 1.064 GB, free: 10.01 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002088/1.169, allocations: 205 kB / 1.065 GB, free: 9.809 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 7.807e-05/1.169, allocations: 100 kB / 1.065 GB, free: 9.695 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.577e-05/1.169, allocations: 0 / 1.065 GB, free: 9.695 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/1.169, allocations: 12.08 kB / 1.065 GB, free: 9.684 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.832e-05/1.169, allocations: 10.94 kB / 1.065 GB, free: 9.676 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.38e-06/1.169, allocations: 0 / 1.065 GB, free: 9.676 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001224/1.17, allocations: 151.8 kB / 1.065 GB, free: 9.547 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.5e-07/1.17, allocations: 0 / 1.065 GB, free: 9.547 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003089/1.17, allocations: 50.78 kB / 1.065 GB, free: 9.5 MB / 0.6823 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 0.0005375/1.17, allocations: 0.7458 MB / 1.066 GB, free: 8.742 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003453/1.171, allocations: 201.2 kB / 1.066 GB, free: 8.559 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 5.431e-06/1.171, allocations: 0.5625 kB / 1.066 GB, free: 8.559 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001491/1.171, allocations: 155.8 kB / 1.066 GB, free: 8.402 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002609/1.171, allocations: 29.83 kB / 1.066 GB, free: 8.379 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005901/1.172, allocations: 276 kB / 1.066 GB, free: 8.098 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000334/1.172, allocations: 0.7576 MB / 1.067 GB, free: 7.32 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0001011/1.172, allocations: 21.31 kB / 1.067 GB, free: 7.301 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.276e-05/1.172, allocations: 57.36 kB / 1.067 GB, free: 7.277 MB / 0.6823 GB Notification: Performance of SimCode: time 3.5e-07/1.172, allocations: 0 / 1.067 GB, free: 7.277 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01491/1.187, allocations: 3.354 MB / 1.07 GB, free: 4.062 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002052/1.188, allocations: 181.3 kB / 1.071 GB, free: 3.84 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.766/2.954, allocations: 3.938 kB / 1.071 GB, free: 3.836 MB / 0.6823 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)