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.372/2.372, allocations: 390.3 MB / 402.8 MB, free: 6.656 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.001068/0.001068, allocations: 179 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.552/1.552, allocations: 221.3 MB / 0.7915 GB, free: 5.422 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.0009277/0.0009278, allocations: 95.83 kB / 0.9317 GB, free: 5.73 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.687e-05/3.69e-05, allocations: 0 / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3334/0.3335, allocations: 143 MB / 1.219 GB, free: 13.43 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.992/5.326, allocations: 1.766 GB / 2.984 GB, free: 68.83 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002967/5.326, allocations: 103.9 kB / 2.984 GB, free: 68.73 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 1.012/6.338, allocations: 74.78 MB / 3.058 GB, free: 398.3 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.863e-06/6.338, allocations: 0 / 3.058 GB, free: 398.3 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001251/6.338, allocations: 42.12 kB / 3.058 GB, free: 398.3 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.003625/6.342, allocations: 1.598 MB / 3.059 GB, free: 397.4 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 6.862e-05/6.342, allocations: 8.25 kB / 3.059 GB, free: 397.4 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003724/6.342, allocations: 225.4 kB / 3.059 GB, free: 397.4 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005898/6.348, allocations: 0.8388 MB / 3.06 GB, free: 397.3 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00215/6.35, allocations: 0.8944 MB / 3.061 GB, free: 397 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001225/6.35, allocations: 110.5 kB / 3.061 GB, free: 397 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002904/6.351, allocations: 144.2 kB / 3.061 GB, free: 397 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004058/6.355, allocations: 1.756 MB / 3.063 GB, free: 396.8 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.228e-05/6.355, allocations: 4.688 kB / 3.063 GB, free: 396.8 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001823/6.355, allocations: 60.55 kB / 3.063 GB, free: 396.8 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001253/6.355, allocations: 66.22 kB / 3.063 GB, free: 396.8 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004063/6.359, allocations: 1.978 MB / 3.065 GB, free: 396.7 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01338/6.373, allocations: 6.231 MB / 3.071 GB, free: 394.7 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002866/6.375, allocations: 1.305 MB / 3.072 GB, free: 394.7 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001357/6.377, allocations: 0.6231 MB / 3.073 GB, free: 394.7 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007746/6.378, allocations: 489.3 kB / 3.073 GB, free: 394.2 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001603/6.379, allocations: 0.7986 MB / 3.074 GB, free: 394.1 MB / 1.167 GB Notification: Performance of pre-optimization done (n=129): time 2.985e-06/6.379, allocations: 0 / 3.074 GB, free: 394.1 MB / 1.167 GB Notification: Performance of matching and sorting (n=129): time 0.00318/6.382, allocations: 1.253 MB / 3.075 GB, free: 394 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001422/6.383, allocations: 359.4 kB / 3.076 GB, free: 393.6 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001519/6.384, allocations: 0.79 MB / 3.077 GB, free: 393.4 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001283/6.384, allocations: 55.78 kB / 3.077 GB, free: 393.4 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006145/6.385, allocations: 0.5931 MB / 3.077 GB, free: 393.1 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.000433/6.385, allocations: 431 kB / 3.078 GB, free: 392.8 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.979e-05/6.385, allocations: 20.25 kB / 3.078 GB, free: 392.8 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001255/6.386, allocations: 351.8 kB / 3.078 GB, free: 392.5 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009264/6.386, allocations: 468.3 kB / 3.078 GB, free: 392.5 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001104/6.388, allocations: 0.6623 MB / 3.079 GB, free: 392.3 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/6.389, allocations: 0.5355 MB / 3.08 GB, free: 392.3 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/6.389, allocations: 1.312 kB / 3.08 GB, free: 392.3 MB / 1.167 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002908/6.392, allocations: 1.339 MB / 3.081 GB, free: 392.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002897/6.392, allocations: 1.06 MB / 3.082 GB, free: 391.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/6.392, allocations: 3 kB / 3.082 GB, free: 391.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002141/6.392, allocations: 30.11 kB / 3.082 GB, free: 391.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001911/6.394, allocations: 338 kB / 3.082 GB, free: 391.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003284/6.394, allocations: 0.5432 MB / 3.083 GB, free: 390.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001643/6.396, allocations: 197.5 kB / 3.083 GB, free: 390.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000155/6.396, allocations: 63.42 kB / 3.083 GB, free: 390.5 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/6.396, allocations: 4.281 kB / 3.083 GB, free: 390.5 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002411/6.399, allocations: 1.206 MB / 3.084 GB, free: 390.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/6.399, allocations: 2.75 kB / 3.084 GB, free: 390.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/6.399, allocations: 8.156 kB / 3.084 GB, free: 390.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001816/6.4, allocations: 349 kB / 3.085 GB, free: 390.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.337e-05/6.401, allocations: 12.28 kB / 3.085 GB, free: 390.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001574/6.402, allocations: 185.2 kB / 3.085 GB, free: 390.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000145/6.402, allocations: 60.42 kB / 3.085 GB, free: 390.1 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 () * 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.0004516/6.403, allocations: 175 kB / 3.085 GB, free: 389.9 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003211/6.403, allocations: 122.4 kB / 3.085 GB, free: 389.9 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003767/6.407, allocations: 1.67 MB / 3.087 GB, free: 389.2 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.869e-05/6.407, allocations: 14.53 kB / 3.087 GB, free: 389.2 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/6.407, allocations: 1.156 kB / 3.087 GB, free: 389.2 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.072e-05/6.407, allocations: 8.5 kB / 3.087 GB, free: 389.2 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006203/6.413, allocations: 3.504 MB / 3.09 GB, free: 387.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/6.413, allocations: 3.766 kB / 3.09 GB, free: 387.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001767/6.415, allocations: 319.2 kB / 3.091 GB, free: 387.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001461/6.415, allocations: 33.59 kB / 3.091 GB, free: 387.4 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001287/6.415, allocations: 45.52 kB / 3.091 GB, free: 387.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008835/6.416, allocations: 1.272 MB / 3.092 GB, free: 386.1 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/6.416, allocations: 1.312 kB / 3.092 GB, free: 386.1 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003034/6.419, allocations: 1.519 MB / 3.093 GB, free: 385.3 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008705/6.42, allocations: 420.6 kB / 3.094 GB, free: 385.1 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001986/6.42, allocations: 33.03 kB / 3.094 GB, free: 385 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001402/6.422, allocations: 141.2 kB / 3.094 GB, free: 385 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002407/6.422, allocations: 93.44 kB / 3.094 GB, free: 385 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001353/6.422, allocations: 52.7 kB / 3.094 GB, free: 385 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001083/6.423, allocations: 0.6472 MB / 3.095 GB, free: 384.7 MB / 1.167 GB Notification: Performance of sort global known variables: time 3.31e-07/6.423, allocations: 0 / 3.095 GB, free: 384.7 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.002602/6.426, allocations: 0.7661 MB / 3.095 GB, free: 384.4 MB / 1.167 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.004356/6.43, allocations: 2.867 MB / 3.098 GB, free: 382.8 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.003896/6.434, allocations: 1.947 MB / 3.1 GB, free: 382.1 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/6.434, allocations: 1.031 kB / 3.1 GB, free: 382.1 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.001291/6.435, allocations: 0.7894 MB / 3.101 GB, free: 381.8 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001559/6.437, allocations: 296 kB / 3.101 GB, free: 381.7 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005243/6.442, allocations: 2.38 MB / 3.103 GB, free: 380.6 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000879/6.443, allocations: 1.284 MB / 3.105 GB, free: 379.8 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.002917/6.446, allocations: 0.6216 MB / 3.105 GB, free: 379.7 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008966/6.447, allocations: 0.5744 MB / 3.106 GB, free: 379.2 MB / 1.167 GB Notification: Performance of SimCode: time 2.725e-06/6.447, allocations: 0 / 3.106 GB, free: 379.2 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06315/6.51, allocations: 31.8 MB / 3.137 GB, free: 377.4 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001735/6.51, allocations: 231.1 kB / 3.137 GB, free: 377.1 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.326/9.837, allocations: 0 / 3.137 GB, free: 377.1 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