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.142/2.142, allocations: 387.1 MB / 399.7 MB, free: 9.473 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.0009738/0.0009738, allocations: 176.9 kB / 492.3 MB, free: 0.6328 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.45/1.45, allocations: 221.3 MB / 0.7871 GB, free: 12.89 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.000926/0.0009261, allocations: 91.89 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.64e-05/3.642e-05, allocations: 7.984 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2451/0.2452, allocations: 142.3 MB / 1.212 GB, free: 38.42 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.238/4.483, allocations: 1.765 GB / 2.977 GB, free: 75.31 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002763/4.483, allocations: 98.81 kB / 2.977 GB, free: 75.26 MB / 1.151 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.1701/4.654, allocations: 74.78 MB / 3.05 GB, free: 3.812 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.013e-06/4.654, allocations: 0 / 3.05 GB, free: 3.812 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001247/4.654, allocations: 36 kB / 3.05 GB, free: 3.777 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.003506/4.657, allocations: 1.603 MB / 3.052 GB, free: 2.117 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/4.657, allocations: 12.03 kB / 3.052 GB, free: 2.105 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004244/4.658, allocations: 224 kB / 3.052 GB, free: 1.875 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005352/4.663, allocations: 0.8367 MB / 3.053 GB, free: 1.035 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001639/4.665, allocations: 0.8922 MB / 3.054 GB, free: 104 kB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.5907/5.255, allocations: 105.1 kB / 3.054 GB, free: 388.5 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007655/5.256, allocations: 146.8 kB / 3.054 GB, free: 388.5 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004166/5.26, allocations: 1.756 MB / 3.056 GB, free: 388.3 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.079e-05/5.261, allocations: 0 / 3.056 GB, free: 388.3 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001817/5.261, allocations: 64.06 kB / 3.056 GB, free: 388.3 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001537/5.261, allocations: 67.67 kB / 3.056 GB, free: 388.3 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003863/5.265, allocations: 1.979 MB / 3.058 GB, free: 388.2 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01291/5.278, allocations: 6.227 MB / 3.064 GB, free: 386.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002712/5.28, allocations: 1.3 MB / 3.065 GB, free: 386.3 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001078/5.282, allocations: 0.6196 MB / 3.066 GB, free: 386.3 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006686/5.282, allocations: 491 kB / 3.066 GB, free: 385.8 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001383/5.284, allocations: 0.796 MB / 3.067 GB, free: 385.7 MB / 1.151 GB Notification: Performance of pre-optimization done (n=129): time 3.055e-06/5.284, allocations: 1.219 kB / 3.067 GB, free: 385.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=129): time 0.002704/5.286, allocations: 1.253 MB / 3.068 GB, free: 385.6 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.905e-05/5.286, allocations: 356.3 kB / 3.069 GB, free: 385.2 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001309/5.288, allocations: 0.7929 MB / 3.069 GB, free: 385 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001197/5.288, allocations: 50.86 kB / 3.069 GB, free: 385 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006634/5.289, allocations: 0.5891 MB / 3.07 GB, free: 384.8 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004515/5.289, allocations: 427.7 kB / 3.07 GB, free: 384.5 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.119e-05/5.289, allocations: 25.06 kB / 3.07 GB, free: 384.5 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001134/5.289, allocations: 353.8 kB / 3.071 GB, free: 384.2 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008816/5.29, allocations: 469.6 kB / 3.071 GB, free: 384.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001081/5.291, allocations: 0.665 MB / 3.072 GB, free: 384.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001047/5.292, allocations: 0.5269 MB / 3.072 GB, free: 384 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.363e-06/5.292, allocations: 1.281 kB / 3.072 GB, free: 384 MB / 1.151 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002831/5.295, allocations: 1.355 MB / 3.074 GB, free: 383.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002218/5.295, allocations: 1.055 MB / 3.075 GB, free: 382.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/5.295, allocations: 3.859 kB / 3.075 GB, free: 382.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002097/5.296, allocations: 29.84 kB / 3.075 GB, free: 382.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001955/5.298, allocations: 337.6 kB / 3.075 GB, free: 382.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00034/5.298, allocations: 0.5448 MB / 3.076 GB, free: 382.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001662/5.3, allocations: 199 kB / 3.076 GB, free: 382.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001584/5.3, allocations: 58.27 kB / 3.076 GB, free: 382.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/5.3, allocations: 3.469 kB / 3.076 GB, free: 382.3 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002413/5.302, allocations: 1.215 MB / 3.077 GB, free: 382.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/5.302, allocations: 3.594 kB / 3.077 GB, free: 382.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/5.302, allocations: 8.25 kB / 3.077 GB, free: 382.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001852/5.304, allocations: 337 kB / 3.077 GB, free: 382.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.708e-05/5.304, allocations: 9.266 kB / 3.077 GB, free: 382.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001775/5.306, allocations: 194.5 kB / 3.078 GB, free: 382.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002056/5.306, allocations: 55.52 kB / 3.078 GB, free: 382.2 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.0005779/5.307, allocations: 178.1 kB / 3.078 GB, free: 382.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005033/5.307, allocations: 125.5 kB / 3.078 GB, free: 382 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004171/5.311, allocations: 1.661 MB / 3.08 GB, free: 381.9 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.889e-05/5.311, allocations: 18.84 kB / 3.08 GB, free: 381.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/5.311, allocations: 1.062 kB / 3.08 GB, free: 381.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.346e-05/5.312, allocations: 12.3 kB / 3.08 GB, free: 381.9 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006465/5.318, allocations: 3.514 MB / 3.083 GB, free: 380.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.144e-06/5.318, allocations: 2.125 kB / 3.083 GB, free: 380.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001773/5.32, allocations: 321.7 kB / 3.083 GB, free: 380.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001367/5.32, allocations: 23.77 kB / 3.083 GB, free: 380.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001253/5.32, allocations: 43.33 kB / 3.083 GB, free: 380.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000951/5.321, allocations: 1.275 MB / 3.085 GB, free: 379.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/5.321, allocations: 1.312 kB / 3.085 GB, free: 379.6 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003108/5.324, allocations: 1.527 MB / 3.086 GB, free: 378.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000827/5.325, allocations: 428.7 kB / 3.087 GB, free: 378.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001988/5.325, allocations: 28.98 kB / 3.087 GB, free: 378.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001414/5.327, allocations: 139 kB / 3.087 GB, free: 378.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002332/5.327, allocations: 95.45 kB / 3.087 GB, free: 378.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000138/5.327, allocations: 55.67 kB / 3.087 GB, free: 378.5 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001083/5.328, allocations: 0.6404 MB / 3.088 GB, free: 378.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.7e-07/5.328, allocations: 0 / 3.088 GB, free: 378.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002253/5.33, allocations: 0.7663 MB / 3.088 GB, free: 378 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.004292/5.335, allocations: 2.869 MB / 3.091 GB, free: 376.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.003942/5.339, allocations: 1.942 MB / 3.093 GB, free: 375.7 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/5.339, allocations: 7.266 kB / 3.093 GB, free: 375.7 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001292/5.34, allocations: 0.7841 MB / 3.094 GB, free: 375.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001665/5.342, allocations: 295 kB / 3.094 GB, free: 375.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005506/5.347, allocations: 2.392 MB / 3.096 GB, free: 374.2 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009846/5.348, allocations: 1.275 MB / 3.098 GB, free: 373.5 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.003134/5.351, allocations: 0.6234 MB / 3.098 GB, free: 373.3 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000927/5.352, allocations: 0.5781 MB / 3.099 GB, free: 372.9 MB / 1.151 GB Notification: Performance of SimCode: time 8.32e-07/5.352, allocations: 1.125 kB / 3.099 GB, free: 372.9 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05532/5.408, allocations: 31.79 MB / 3.13 GB, free: 371 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001565/5.408, allocations: 221.9 kB / 3.13 GB, free: 370.8 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.013/8.421, allocations: 0 / 3.13 GB, free: 370.8 MB / 1.151 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