Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.PVSimple,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Sources_Examples_PVSimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.PVSimple,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Sources_Examples_PVSimple",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.216/2.216, allocations: 390.3 MB / 405.3 MB, free: 13.44 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 181.2 kB / 498.1 MB, free: 5.684 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.604/1.604, allocations: 223.2 MB / 0.7948 GB, free: 17.82 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009805/0.0009805, allocations: 106.6 kB / 0.9346 GB, free: 6.094 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000389/0.0003891, allocations: 16.38 kB / 1.084 GB, free: 221.6 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.3001, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.06/4.361, allocations: 1.765 GB / 2.988 GB, free: 252.9 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003055/4.361, allocations: 103.8 kB / 2.988 GB, free: 252.8 MB / 1.167 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/Interfaces/Source.mo:28:9-28: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 9.1.1-maint.9.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 9.1.1-maint.9.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.1666/4.528, allocations: 75.24 MB / 3.061 GB, free: 177.2 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.224e-06/4.528, allocations: 0 / 3.061 GB, free: 177.2 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001331/4.528, allocations: 36 kB / 3.061 GB, free: 177.2 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 386 * Number of variables: 386 Notification: Performance of Generate backend data structure: time 0.004112/4.532, allocations: 1.747 MB / 3.063 GB, free: 175.4 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/4.532, allocations: 8.031 kB / 3.063 GB, free: 175.4 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004975/4.532, allocations: 223.7 kB / 3.063 GB, free: 175.2 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005573/4.538, allocations: 0.8367 MB / 3.064 GB, free: 174.3 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002071/4.54, allocations: 0.9 MB / 3.065 GB, free: 173.4 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9e-05/4.54, allocations: 111 kB / 3.065 GB, free: 173.3 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003771/4.541, allocations: 143.9 kB / 3.065 GB, free: 173.1 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005774/4.546, allocations: 1.981 MB / 3.067 GB, free: 171.1 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.865e-05/4.547, allocations: 0 / 3.067 GB, free: 171.1 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002877/4.547, allocations: 71.92 kB / 3.067 GB, free: 171 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.876e-05/4.547, allocations: 70.8 kB / 3.067 GB, free: 170.9 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005649/4.553, allocations: 2.419 MB / 3.07 GB, free: 168.5 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01169/4.564, allocations: 6.234 MB / 3.076 GB, free: 162 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003917/4.568, allocations: 1.566 MB / 3.077 GB, free: 160.5 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006547/4.569, allocations: 494.7 kB / 3.078 GB, free: 159.9 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002129/4.571, allocations: 0.9372 MB / 3.079 GB, free: 158.9 MB / 1.167 GB Notification: Performance of pre-optimization done (n=129): time 5.11e-06/4.571, allocations: 0 / 3.079 GB, free: 158.9 MB / 1.167 GB Notification: Performance of matching and sorting (n=129): time 0.006014/4.577, allocations: 2.249 MB / 3.081 GB, free: 156.7 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001402/4.577, allocations: 355.4 kB / 3.081 GB, free: 156.2 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001513/4.579, allocations: 0.7977 MB / 3.082 GB, free: 155.4 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001655/4.579, allocations: 49.7 kB / 3.082 GB, free: 155.4 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005533/4.58, allocations: 0.5935 MB / 3.083 GB, free: 154.7 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003217/4.58, allocations: 429.7 kB / 3.083 GB, free: 154.3 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.711e-05/4.58, allocations: 28 kB / 3.083 GB, free: 154.3 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 9.865e-05/4.58, allocations: 353.9 kB / 3.083 GB, free: 153.9 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001656/4.582, allocations: 0.5998 MB / 3.084 GB, free: 153.3 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001738/4.584, allocations: 0.8014 MB / 3.085 GB, free: 152.5 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001701/4.585, allocations: 0.6661 MB / 3.085 GB, free: 151.8 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.695e-06/4.585, allocations: 4 kB / 3.085 GB, free: 151.8 MB / 1.167 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004121/4.589, allocations: 1.64 MB / 3.087 GB, free: 150.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002888/4.59, allocations: 1.061 MB / 3.088 GB, free: 149 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/4.59, allocations: 7.938 kB / 3.088 GB, free: 149 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002233/4.59, allocations: 24.84 kB / 3.088 GB, free: 149 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001775/4.592, allocations: 343.5 kB / 3.088 GB, free: 148.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003201/4.592, allocations: 0.5367 MB / 3.089 GB, free: 148.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001747/4.594, allocations: 198.8 kB / 3.089 GB, free: 147.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000148/4.594, allocations: 55.95 kB / 3.089 GB, free: 147.8 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/4.594, allocations: 8 kB / 3.089 GB, free: 147.8 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003688/4.598, allocations: 1.506 MB / 3.091 GB, free: 146.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/4.598, allocations: 0 / 3.091 GB, free: 146.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/4.598, allocations: 8 kB / 3.091 GB, free: 146.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001701/4.6, allocations: 343.7 kB / 3.091 GB, free: 146 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.539e-05/4.6, allocations: 8 kB / 3.091 GB, free: 146 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001685/4.601, allocations: 194.8 kB / 3.091 GB, free: 145.8 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001394/4.601, allocations: 55.95 kB / 3.091 GB, free: 145.7 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 147 * 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0009899/4.602, allocations: 432.8 kB / 3.092 GB, free: 145.3 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003746/4.603, allocations: 126.5 kB / 3.092 GB, free: 145.2 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005107/4.608, allocations: 1.947 MB / 3.094 GB, free: 143.2 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-05/4.608, allocations: 16 kB / 3.094 GB, free: 143.2 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/4.608, allocations: 0 / 3.094 GB, free: 143.2 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.449e-05/4.608, allocations: 7.969 kB / 3.094 GB, free: 143.2 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006961/4.615, allocations: 3.657 MB / 3.097 GB, free: 139.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.726e-06/4.615, allocations: 0 / 3.097 GB, free: 139.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001624/4.617, allocations: 319.6 kB / 3.098 GB, free: 139.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001389/4.617, allocations: 28.84 kB / 3.098 GB, free: 139.1 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001246/4.617, allocations: 43.95 kB / 3.098 GB, free: 139.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007843/4.618, allocations: 1.284 MB / 3.099 GB, free: 137.6 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/4.618, allocations: 0 / 3.099 GB, free: 137.6 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004125/4.622, allocations: 1.763 MB / 3.101 GB, free: 135.9 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008733/4.623, allocations: 422.9 kB / 3.101 GB, free: 135.4 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003413/4.623, allocations: 35.98 kB / 3.101 GB, free: 135.4 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001532/4.625, allocations: 135.9 kB / 3.101 GB, free: 135.2 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001591/4.625, allocations: 93.14 kB / 3.101 GB, free: 135.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001171/4.625, allocations: 55.95 kB / 3.101 GB, free: 135.1 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001086/4.626, allocations: 0.6531 MB / 3.102 GB, free: 134.4 MB / 1.167 GB Notification: Performance of sort global known variables: time 2.91e-07/4.626, allocations: 0 / 3.102 GB, free: 134.4 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.002491/4.629, allocations: 0.7631 MB / 3.103 GB, free: 133.7 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (143): * Single equations (assignments): 140 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005951/4.635, allocations: 3.024 MB / 3.106 GB, free: 130.8 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.005747/4.64, allocations: 2.346 MB / 3.108 GB, free: 128.4 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/4.64, allocations: 0 / 3.108 GB, free: 128.4 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.002001/4.642, allocations: 0.924 MB / 3.109 GB, free: 127.5 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001563/4.644, allocations: 294.4 kB / 3.109 GB, free: 127.2 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01632/4.66, allocations: 9.92 MB / 3.119 GB, free: 117 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008684/4.661, allocations: 1.273 MB / 3.12 GB, free: 115.7 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.002766/4.664, allocations: 0.5288 MB / 3.121 GB, free: 115.2 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001008/4.665, allocations: 0.6007 MB / 3.121 GB, free: 114.6 MB / 1.167 GB Notification: Performance of SimCode: time 1.323e-06/4.665, allocations: 0 / 3.121 GB, free: 114.6 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05279/4.718, allocations: 30.38 MB / 3.151 GB, free: 84.49 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001393/4.718, allocations: 257.5 kB / 3.151 GB, free: 84.15 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.069/7.787, allocations: 3.375 kB / 3.151 GB, free: 84.15 MB / 1.167 GB (rm -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Sources_Examples_PVSimple_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Sources_Examples_PVSimple.fmu > Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple_res.mat does not exist to compare? outputFormat=mat