Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.PVSimple,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Sources_Examples_PVSimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.PVSimple,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.479/2.479, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.001134/0.001134, allocations: 197.6 kB / 0.4902 GB, free: 2.234 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.507/1.507, allocations: 223.1 MB / 0.7992 GB, free: 14.79 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.0009762/0.0009759, allocations: 102.1 kB / 0.9396 GB, free: 1.934 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005563/0.0005566, allocations: 10.41 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3308/0.3314, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.859/4.19, allocations: 1.766 GB / 2.995 GB, free: 185.2 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000417/4.191, allocations: 108 kB / 2.995 GB, free: 185.2 MB / 1.167 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0-master/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 10.0.0-master/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.1773/4.368, allocations: 75.21 MB / 3.068 GB, free: 120.2 MB / 1.167 GB Notification: Performance of FrontEnd: time 3.768e-06/4.368, allocations: 0 / 3.068 GB, free: 120.2 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001907/4.369, allocations: 39.98 kB / 3.068 GB, free: 120.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.005231/4.374, allocations: 1.755 MB / 3.07 GB, free: 118.5 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/4.374, allocations: 8.562 kB / 3.07 GB, free: 118.5 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007338/4.375, allocations: 232.5 kB / 3.07 GB, free: 118.3 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005883/4.381, allocations: 0.836 MB / 3.071 GB, free: 117.5 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002176/4.383, allocations: 0.8911 MB / 3.072 GB, free: 116.8 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.235e-05/4.383, allocations: 112.9 kB / 3.072 GB, free: 116.7 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002361/4.383, allocations: 143.2 kB / 3.072 GB, free: 116.6 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004261/4.387, allocations: 1.988 MB / 3.074 GB, free: 115.1 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.43e-05/4.387, allocations: 0 / 3.074 GB, free: 115.1 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001685/4.388, allocations: 69.67 kB / 3.074 GB, free: 115.1 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.566e-05/4.388, allocations: 70.72 kB / 3.074 GB, free: 115 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005387/4.393, allocations: 2.411 MB / 3.077 GB, free: 113.2 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01072/4.404, allocations: 6.235 MB / 3.083 GB, free: 108.2 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003829/4.408, allocations: 1.577 MB / 3.084 GB, free: 107.1 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006295/4.408, allocations: 489.2 kB / 3.085 GB, free: 106.6 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00204/4.41, allocations: 0.9377 MB / 3.086 GB, free: 105.9 MB / 1.167 GB Notification: Performance of pre-optimization done (n=129): time 4.809e-06/4.41, allocations: 4 kB / 3.086 GB, free: 105.8 MB / 1.167 GB Notification: Performance of matching and sorting (n=129): time 0.005802/4.416, allocations: 2.249 MB / 3.088 GB, free: 103.8 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/4.416, allocations: 351.5 kB / 3.088 GB, free: 103.4 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001279/4.418, allocations: 0.8054 MB / 3.089 GB, free: 102.5 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001757/4.418, allocations: 45.7 kB / 3.089 GB, free: 102.5 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004584/4.418, allocations: 0.5974 MB / 3.09 GB, free: 101.9 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.000339/4.419, allocations: 433.7 kB / 3.09 GB, free: 101.4 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.127e-05/4.419, allocations: 24 kB / 3.09 GB, free: 101.4 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 9.634e-05/4.419, allocations: 349.9 kB / 3.09 GB, free: 101.1 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001584/4.421, allocations: 0.6037 MB / 3.091 GB, free: 100.5 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001679/4.422, allocations: 0.8091 MB / 3.092 GB, free: 99.6 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001671/4.424, allocations: 0.67 MB / 3.093 GB, free: 98.93 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/4.424, allocations: 0 / 3.093 GB, free: 98.93 MB / 1.167 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004083/4.428, allocations: 1.633 MB / 3.094 GB, free: 97.29 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002723/4.428, allocations: 1.052 MB / 3.095 GB, free: 96.16 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/4.428, allocations: 4 kB / 3.095 GB, free: 96.15 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002286/4.429, allocations: 36.83 kB / 3.095 GB, free: 96.11 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001853/4.43, allocations: 335.5 kB / 3.096 GB, free: 95.79 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003391/4.431, allocations: 0.5367 MB / 3.096 GB, free: 95.22 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001788/4.433, allocations: 202.7 kB / 3.096 GB, free: 95.02 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001373/4.433, allocations: 59.95 kB / 3.096 GB, free: 94.96 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/4.433, allocations: 4 kB / 3.096 GB, free: 94.96 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003785/4.437, allocations: 1.503 MB / 3.098 GB, free: 93.46 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/4.437, allocations: 0 / 3.098 GB, free: 93.46 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/4.437, allocations: 12 kB / 3.098 GB, free: 93.45 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001772/4.438, allocations: 339.7 kB / 3.098 GB, free: 93.11 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/4.438, allocations: 11.98 kB / 3.098 GB, free: 93.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001685/4.44, allocations: 198.8 kB / 3.098 GB, free: 92.91 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001275/4.44, allocations: 51.95 kB / 3.098 GB, free: 92.86 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.001033/4.441, allocations: 432.8 kB / 3.099 GB, free: 92.42 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003045/4.442, allocations: 130.4 kB / 3.099 GB, free: 92.29 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004797/4.446, allocations: 1.94 MB / 3.101 GB, free: 90.34 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.476e-05/4.446, allocations: 16 kB / 3.101 GB, free: 90.33 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/4.446, allocations: 0 / 3.101 GB, free: 90.33 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.495e-05/4.446, allocations: 7.969 kB / 3.101 GB, free: 90.32 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007006/4.453, allocations: 3.646 MB / 3.104 GB, free: 86.61 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/4.454, allocations: 0 / 3.104 GB, free: 86.61 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0017/4.455, allocations: 315.6 kB / 3.105 GB, free: 86.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001492/4.455, allocations: 28.84 kB / 3.105 GB, free: 86.27 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000137/4.456, allocations: 39.95 kB / 3.105 GB, free: 86.23 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008358/4.456, allocations: 1.296 MB / 3.106 GB, free: 84.8 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/4.456, allocations: 3.938 kB / 3.106 GB, free: 84.8 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004222/4.461, allocations: 1.759 MB / 3.108 GB, free: 83 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009585/4.462, allocations: 426.9 kB / 3.108 GB, free: 82.57 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003483/4.462, allocations: 28 kB / 3.108 GB, free: 82.54 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001626/4.464, allocations: 139.9 kB / 3.108 GB, free: 82.4 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001902/4.464, allocations: 93.08 kB / 3.108 GB, free: 82.31 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000126/4.464, allocations: 55.95 kB / 3.108 GB, free: 82.25 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001089/4.465, allocations: 0.6531 MB / 3.109 GB, free: 81.59 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.41e-07/4.465, allocations: 96 / 3.109 GB, free: 81.59 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.002652/4.468, allocations: 0.7746 MB / 3.11 GB, free: 80.81 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.006163/4.474, allocations: 3.013 MB / 3.113 GB, free: 77.93 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.006162/4.48, allocations: 2.35 MB / 3.115 GB, free: 75.59 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/4.48, allocations: 0 / 3.115 GB, free: 75.59 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.002025/4.482, allocations: 0.9201 MB / 3.116 GB, free: 74.66 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001696/4.484, allocations: 297.5 kB / 3.116 GB, free: 74.37 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01771/4.502, allocations: 9.917 MB / 3.126 GB, free: 64.14 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009835/4.503, allocations: 1.273 MB / 3.127 GB, free: 62.84 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.002848/4.506, allocations: 0.5365 MB / 3.128 GB, free: 62.3 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001088/4.507, allocations: 0.5968 MB / 3.128 GB, free: 61.7 MB / 1.167 GB Notification: Performance of SimCode: time 1.723e-06/4.507, allocations: 0 / 3.128 GB, free: 61.7 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05801/4.565, allocations: 30.4 MB / 3.158 GB, free: 31.63 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001597/4.565, allocations: 254.8 kB / 3.158 GB, free: 31.3 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.31/7.875, allocations: 0 / 3.158 GB, free: 31.3 MB / 1.167 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Sources_Examples_PVSimple_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Sources_Examples_PVSimple.fmu > Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple_res.mat does not exist to compare? outputFormat=mat