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.5/2.5, allocations: 390.5 MB / 398 MB, free: 10.96 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.001453/0.001453, allocations: 187.7 kB / 491.2 MB, free: 1.555 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.75/1.75, allocations: 221.5 MB / 0.7868 GB, free: 13.35 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.00105/0.00105, allocations: 95.81 kB / 0.9269 GB, free: 13.86 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.826e-05/1.831e-05, allocations: 0 / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3127/0.3128, allocations: 143 MB / 1.212 GB, free: 39.46 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.684/4.997, allocations: 1.765 GB / 2.977 GB, free: 74.05 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002695/4.998, allocations: 98.12 kB / 2.977 GB, free: 74 MB / 1.151 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.1667/5.164, allocations: 74.35 MB / 3.05 GB, free: 3.176 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.644e-06/5.164, allocations: 0 / 3.05 GB, free: 3.176 MB / 1.151 GB Notification: Performance of Transformations before backend: time 9.86e-05/5.164, allocations: 32 kB / 3.05 GB, free: 3.145 MB / 1.151 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.002878/5.167, allocations: 1.603 MB / 3.052 GB, free: 1.484 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/5.167, allocations: 11.97 kB / 3.052 GB, free: 1.473 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005136/5.172, allocations: 0.8406 MB / 3.052 GB, free: 0.6289 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.754/5.926, allocations: 0.885 MB / 3.053 GB, free: 387.7 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001152/5.927, allocations: 48.78 kB / 3.053 GB, free: 387.7 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002777/5.927, allocations: 85.31 kB / 3.053 GB, free: 387.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004543/5.931, allocations: 1.881 MB / 3.055 GB, free: 387.7 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003775/5.935, allocations: 1.547 MB / 3.057 GB, free: 387.5 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.792e-05/5.935, allocations: 5.922 kB / 3.057 GB, free: 387.5 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001528/5.935, allocations: 3.609 kB / 3.057 GB, free: 387.5 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001196/5.936, allocations: 71.81 kB / 3.057 GB, free: 387.5 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01153/5.947, allocations: 5.941 MB / 3.063 GB, free: 385.7 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002268/5.949, allocations: 1.235 MB / 3.064 GB, free: 385.6 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000971/5.95, allocations: 0.5837 MB / 3.064 GB, free: 385.6 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000686/5.951, allocations: 491.5 kB / 3.065 GB, free: 385.1 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001349/5.953, allocations: 0.7602 MB / 3.066 GB, free: 385 MB / 1.151 GB Notification: Performance of pre-optimization done (n=129): time 3.457e-06/5.953, allocations: 0 / 3.066 GB, free: 385 MB / 1.151 GB Notification: Performance of matching and sorting (n=129): time 0.00552/5.958, allocations: 1.729 MB / 3.067 GB, free: 384.9 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/5.958, allocations: 354.5 kB / 3.068 GB, free: 384.5 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001059/5.959, allocations: 0.6537 MB / 3.068 GB, free: 384.4 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001114/5.959, allocations: 26.98 kB / 3.068 GB, free: 384.4 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005693/5.96, allocations: 0.617 MB / 3.069 GB, free: 384.1 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003721/5.96, allocations: 408.1 kB / 3.069 GB, free: 383.9 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.015e-05/5.96, allocations: 0 / 3.069 GB, free: 383.9 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001242/5.961, allocations: 353.9 kB / 3.07 GB, free: 383.6 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007111/5.961, allocations: 443.4 kB / 3.07 GB, free: 383.6 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008782/5.962, allocations: 0.6373 MB / 3.071 GB, free: 383.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003797/5.966, allocations: 1.054 MB / 3.072 GB, free: 383.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/5.966, allocations: 0.8125 kB / 3.072 GB, free: 383.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.005448/5.971, allocations: 1.81 MB / 3.073 GB, free: 383.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002403/5.972, allocations: 1.055 MB / 3.075 GB, free: 382.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.363e-05/5.972, allocations: 2.906 kB / 3.075 GB, free: 382.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001948/5.972, allocations: 30.91 kB / 3.075 GB, free: 382.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001837/5.974, allocations: 332.9 kB / 3.075 GB, free: 382.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002956/5.974, allocations: 0.5482 MB / 3.075 GB, free: 381.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001542/5.976, allocations: 158.7 kB / 3.076 GB, free: 381.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001388/5.976, allocations: 56.3 kB / 3.076 GB, free: 381.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/5.976, allocations: 3.281 kB / 3.076 GB, free: 381.6 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005327/5.981, allocations: 1.665 MB / 3.077 GB, free: 381.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/5.981, allocations: 3.969 kB / 3.077 GB, free: 381.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.602e-05/5.981, allocations: 8 kB / 3.077 GB, free: 381.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001925/5.983, allocations: 336.2 kB / 3.078 GB, free: 381.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.165e-05/5.983, allocations: 8.359 kB / 3.078 GB, free: 381.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001697/5.985, allocations: 154 kB / 3.078 GB, free: 381.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001895/5.985, allocations: 57.81 kB / 3.078 GB, free: 381.6 MB / 1.151 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 () * 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.0005237/5.986, allocations: 137.3 kB / 3.078 GB, free: 381.4 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006373/5.992, allocations: 1.735 MB / 3.08 GB, free: 381.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003355/5.992, allocations: 113.4 kB / 3.08 GB, free: 381.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00693/5.999, allocations: 2.106 MB / 3.082 GB, free: 381.1 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.549e-05/5.999, allocations: 24.98 kB / 3.082 GB, free: 381.1 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.293e-05/5.999, allocations: 1.703 kB / 3.082 GB, free: 381.1 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.439e-05/5.999, allocations: 8 kB / 3.082 GB, free: 381.1 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01042/6.01, allocations: 3.774 MB / 3.085 GB, free: 380.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.36e-05/6.01, allocations: 1.562 kB / 3.085 GB, free: 380.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002788/6.013, allocations: 321.7 kB / 3.086 GB, free: 380.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002023/6.013, allocations: 23.88 kB / 3.086 GB, free: 380.3 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001917/6.013, allocations: 34.02 kB / 3.086 GB, free: 380.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001038/6.014, allocations: 1.223 MB / 3.087 GB, free: 379 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/6.014, allocations: 6.062 kB / 3.087 GB, free: 379 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008921/6.023, allocations: 1.979 MB / 3.089 GB, free: 378.2 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001146/6.024, allocations: 421.3 kB / 3.089 GB, free: 377.9 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003077/6.025, allocations: 4.766 kB / 3.089 GB, free: 377.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002137/6.027, allocations: 116.7 kB / 3.089 GB, free: 377.9 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003533/6.027, allocations: 99.64 kB / 3.09 GB, free: 377.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002178/6.027, allocations: 50.95 kB / 3.09 GB, free: 377.9 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001139/6.029, allocations: 0.5274 MB / 3.09 GB, free: 377.6 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.91e-07/6.029, allocations: 0 / 3.09 GB, free: 377.6 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.00363/6.032, allocations: 0.7175 MB / 3.091 GB, free: 377.5 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (144): * Single equations (assignments): 141 * 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.01084/6.043, allocations: 3.29 MB / 3.094 GB, free: 375.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.005496/6.049, allocations: 1.841 MB / 3.096 GB, free: 375.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.364e-05/6.049, allocations: 1.812 kB / 3.096 GB, free: 375.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001815/6.051, allocations: 0.7575 MB / 3.097 GB, free: 374.8 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002204/6.053, allocations: 262.5 kB / 3.097 GB, free: 374.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006695/6.059, allocations: 2.267 MB / 3.099 GB, free: 373.8 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008415/6.06, allocations: 1.267 MB / 3.1 GB, free: 373.1 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.004379/6.065, allocations: 0.6083 MB / 3.101 GB, free: 372.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001163/6.066, allocations: 0.5877 MB / 3.101 GB, free: 372.4 MB / 1.151 GB Notification: Performance of SimCode: time 1.082e-06/6.066, allocations: 0 / 3.101 GB, free: 372.4 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06093/6.127, allocations: 29.51 MB / 3.13 GB, free: 370.7 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001733/6.127, allocations: 170.2 kB / 3.13 GB, free: 370.5 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.125/9.252, allocations: 0 / 3.13 GB, free: 370.5 MB / 1.151 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