Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N.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.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N",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.231/2.231, allocations: 387.1 MB / 399.7 MB, free: 9.496 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.001169/0.001169, allocations: 180.9 kB / 492.3 MB, free: 0.6484 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.637/1.637, allocations: 221.3 MB / 0.7872 GB, free: 13.01 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.000972/0.0009718, allocations: 93.94 kB / 0.9267 GB, free: 14.08 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.149e-05/3.151e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2701/0.2702, allocations: 142.4 MB / 1.213 GB, free: 38.48 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.704/4.974, allocations: 1.78 GB / 2.992 GB, free: 84.03 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002573/4.975, allocations: 102.8 kB / 2.992 GB, free: 83.93 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 1.117/6.091, allocations: 173 MB / 3.161 GB, free: 362.5 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.575e-06/6.092, allocations: 0 / 3.161 GB, free: 362.5 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0003426/6.092, allocations: 95.97 kB / 3.161 GB, free: 362.5 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: 1069 * Number of variables: 1069 Notification: Performance of Generate backend data structure: time 0.01169/6.104, allocations: 3.476 MB / 3.165 GB, free: 360.2 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/6.104, allocations: 18.47 kB / 3.165 GB, free: 360.2 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002518/6.106, allocations: 0.5696 MB / 3.165 GB, free: 359.8 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01242/6.119, allocations: 1.791 MB / 3.167 GB, free: 359 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00731/6.126, allocations: 2.221 MB / 3.169 GB, free: 357.4 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003588/6.126, allocations: 307.7 kB / 3.17 GB, free: 357.3 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002006/6.128, allocations: 402.8 kB / 3.17 GB, free: 357.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01452/6.143, allocations: 5.637 MB / 3.175 GB, free: 353.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001575/6.143, allocations: 11.39 kB / 3.175 GB, free: 353.8 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001197/6.144, allocations: 175.2 kB / 3.176 GB, free: 353.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001987/6.145, allocations: 195.4 kB / 3.176 GB, free: 353.6 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01067/6.155, allocations: 5.356 MB / 3.181 GB, free: 350.1 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03507/6.19, allocations: 23.12 MB / 3.204 GB, free: 325.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005448/6.196, allocations: 3.467 MB / 3.207 GB, free: 322.2 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002226/6.198, allocations: 1.606 MB / 3.209 GB, free: 320.6 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007245/6.199, allocations: 0.518 MB / 3.209 GB, free: 320 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002686/6.202, allocations: 1.807 MB / 3.211 GB, free: 318.2 MB / 1.151 GB Notification: Performance of pre-optimization done (n=242): time 7.214e-06/6.202, allocations: 0 / 3.211 GB, free: 318.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=245): time 0.008332/6.21, allocations: 5.117 MB / 3.216 GB, free: 313 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.728e-05/6.21, allocations: 445.2 kB / 3.216 GB, free: 312.5 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002506/6.213, allocations: 1.535 MB / 3.218 GB, free: 311 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0003828/6.213, allocations: 77.92 kB / 3.218 GB, free: 310.9 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001215/6.214, allocations: 1.614 MB / 3.219 GB, free: 309.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007268/6.215, allocations: 0.8144 MB / 3.22 GB, free: 308.4 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002649/6.215, allocations: 56 kB / 3.22 GB, free: 308.4 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001621/6.215, allocations: 411.4 kB / 3.221 GB, free: 308 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002101/6.217, allocations: 1.306 MB / 3.222 GB, free: 306.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002411/6.22, allocations: 2.032 MB / 3.224 GB, free: 304.3 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002489/6.222, allocations: 1.597 MB / 3.225 GB, free: 302.7 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.259e-05/6.222, allocations: 4 kB / 3.226 GB, free: 302.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=338) (initialization): time 0.005943/6.228, allocations: 3.65 MB / 3.229 GB, free: 299 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001297/6.23, allocations: 7.162 MB / 3.236 GB, free: 291.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.457e-05/6.23, allocations: 16 kB / 3.236 GB, free: 291.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.674e-05/6.23, allocations: 36 kB / 3.236 GB, free: 291.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004292/6.234, allocations: 0.815 MB / 3.237 GB, free: 290.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.67e-05/6.234, allocations: 43.86 kB / 3.237 GB, free: 290.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003555/6.238, allocations: 390.1 kB / 3.237 GB, free: 289.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004958/6.238, allocations: 135.9 kB / 3.237 GB, free: 289.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/6.238, allocations: 4 kB / 3.237 GB, free: 289.7 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005426/6.244, allocations: 3.226 MB / 3.241 GB, free: 286.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.65e-05/6.244, allocations: 20 kB / 3.241 GB, free: 286.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.951e-05/6.244, allocations: 36.14 kB / 3.241 GB, free: 286.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003651/6.247, allocations: 0.7684 MB / 3.241 GB, free: 285.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-05/6.248, allocations: 43.86 kB / 3.241 GB, free: 285.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003054/6.251, allocations: 362.2 kB / 3.242 GB, free: 285.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003289/6.251, allocations: 127.9 kB / 3.242 GB, free: 285.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * 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 (338): * Single equations (assignments): 338 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006997/6.252, allocations: 277.3 kB / 3.242 GB, free: 284.8 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006229/6.252, allocations: 241.1 kB / 3.242 GB, free: 284.6 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006579/6.259, allocations: 3.676 MB / 3.246 GB, free: 280.8 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.782e-05/6.259, allocations: 35.98 kB / 3.246 GB, free: 280.8 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/6.259, allocations: 0 / 3.246 GB, free: 280.8 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.399e-05/6.259, allocations: 11.95 kB / 3.246 GB, free: 280.8 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01267/6.272, allocations: 8.234 MB / 3.254 GB, free: 272.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.23e-05/6.272, allocations: 4 kB / 3.254 GB, free: 272.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003725/6.275, allocations: 0.7257 MB / 3.255 GB, free: 271.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.941e-05/6.276, allocations: 16 kB / 3.255 GB, free: 271.7 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003401/6.276, allocations: 75.89 kB / 3.255 GB, free: 271.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-05/6.276, allocations: 12 kB / 3.255 GB, free: 271.7 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/6.276, allocations: 4 kB / 3.255 GB, free: 271.7 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005624/6.282, allocations: 3.639 MB / 3.258 GB, free: 267.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001565/6.283, allocations: 0.7665 MB / 3.259 GB, free: 267 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006493/6.284, allocations: 55.98 kB / 3.259 GB, free: 267 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00297/6.287, allocations: 279.7 kB / 3.26 GB, free: 266.7 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000302/6.287, allocations: 161.7 kB / 3.26 GB, free: 266.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002417/6.287, allocations: 91.94 kB / 3.26 GB, free: 266.5 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.002045/6.289, allocations: 1.253 MB / 3.261 GB, free: 265.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.4e-07/6.289, allocations: 0 / 3.261 GB, free: 265.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.00508/6.295, allocations: 1.35 MB / 3.262 GB, free: 263.8 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (265): * Single equations (assignments): 263 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006571/6.301, allocations: 5.331 MB / 3.268 GB, free: 258.5 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.007348/6.308, allocations: 5.039 MB / 3.272 GB, free: 253.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 8.847e-06/6.309, allocations: 0 / 3.272 GB, free: 253.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.002119/6.311, allocations: 1.606 MB / 3.274 GB, free: 251.8 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003019/6.314, allocations: 0.52 MB / 3.275 GB, free: 251.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01486/6.329, allocations: 6.607 MB / 3.281 GB, free: 244.6 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00194/6.331, allocations: 2.538 MB / 3.283 GB, free: 242.1 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.005921/6.336, allocations: 1.409 MB / 3.285 GB, free: 240.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002074/6.339, allocations: 1.456 MB / 3.286 GB, free: 239.2 MB / 1.151 GB Notification: Performance of SimCode: time 7.32e-07/6.339, allocations: 4 kB / 3.286 GB, free: 239.2 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09466/6.433, allocations: 67.08 MB / 3.352 GB, free: 172.5 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002336/6.434, allocations: 226 kB / 3.352 GB, free: 172.3 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.955/10.39, allocations: 1.406 kB / 3.352 GB, free: 172.3 MB / 1.151 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N_res.mat does not exist to compare? outputFormat=mat