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.299/2.299, allocations: 387.4 MB / 394.9 MB, free: 13.41 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.00123/0.00123, allocations: 180.8 kB / 487.4 MB, free: 5.043 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.579/1.579, allocations: 221.5 MB / 0.7824 GB, free: 0.918 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 91.47 kB / 0.9219 GB, free: 2.164 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.644e-05/2.663e-05, allocations: 6.125 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2888/0.2888, allocations: 142.4 MB / 1.206 GB, free: 43.82 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.806/5.095, allocations: 1.779 GB / 2.985 GB, free: 102.5 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002757/5.095, allocations: 106.2 kB / 2.985 GB, free: 102.4 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 1.082/6.177, allocations: 172.2 MB / 3.153 GB, free: 363.5 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.913e-06/6.177, allocations: 0 / 3.153 GB, free: 363.5 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0003331/6.178, allocations: 95.91 kB / 3.154 GB, free: 363.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.01113/6.189, allocations: 3.484 MB / 3.157 GB, free: 361.9 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/6.189, allocations: 12.16 kB / 3.157 GB, free: 361.9 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01251/6.201, allocations: 1.787 MB / 3.159 GB, free: 361.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005959/6.207, allocations: 2.216 MB / 3.161 GB, free: 361.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002462/6.208, allocations: 137.9 kB / 3.161 GB, free: 361.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001868/6.209, allocations: 235.4 kB / 3.161 GB, free: 361.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01196/6.221, allocations: 4.936 MB / 3.166 GB, free: 360.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01585/6.237, allocations: 5.062 MB / 3.171 GB, free: 358.3 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001934/6.238, allocations: 4.188 kB / 3.171 GB, free: 358.3 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001417/6.239, allocations: 11.36 kB / 3.171 GB, free: 358.3 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002041/6.239, allocations: 197.8 kB / 3.171 GB, free: 358.3 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0353/6.275, allocations: 22.18 MB / 3.193 GB, free: 342.4 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005696/6.28, allocations: 3.349 MB / 3.196 GB, free: 340.6 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002183/6.282, allocations: 1.542 MB / 3.198 GB, free: 339.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007639/6.283, allocations: 0.5116 MB / 3.198 GB, free: 339.2 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002728/6.286, allocations: 1.731 MB / 3.2 GB, free: 338.2 MB / 1.151 GB Notification: Performance of pre-optimization done (n=242): time 4.899e-06/6.286, allocations: 0 / 3.2 GB, free: 338.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=245): time 0.01508/6.301, allocations: 6.084 MB / 3.206 GB, free: 334.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/6.301, allocations: 444.8 kB / 3.206 GB, free: 334.2 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002121/6.303, allocations: 1.305 MB / 3.207 GB, free: 333.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0004489/6.304, allocations: 29.92 kB / 3.207 GB, free: 333.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001233/6.305, allocations: 1.624 MB / 3.209 GB, free: 331.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008384/6.306, allocations: 0.7812 MB / 3.21 GB, free: 330.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003481/6.306, allocations: 0 / 3.21 GB, free: 330.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001691/6.307, allocations: 411.4 kB / 3.21 GB, free: 330.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001848/6.308, allocations: 1.259 MB / 3.211 GB, free: 329 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002191/6.311, allocations: 1.96 MB / 3.213 GB, free: 326.8 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007646/6.318, allocations: 2.655 MB / 3.216 GB, free: 324.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.861e-05/6.318, allocations: 8 kB / 3.216 GB, free: 324.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=338) (initialization): time 0.01319/6.332, allocations: 4.518 MB / 3.22 GB, free: 319.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001589/6.333, allocations: 7.078 MB / 3.227 GB, free: 312 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.493e-05/6.333, allocations: 19.94 kB / 3.227 GB, free: 312 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.689e-05/6.333, allocations: 36 kB / 3.227 GB, free: 311.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004326/6.338, allocations: 0.8112 MB / 3.228 GB, free: 311.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.617e-05/6.338, allocations: 39.92 kB / 3.228 GB, free: 311.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003701/6.341, allocations: 342 kB / 3.228 GB, free: 310.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006637/6.342, allocations: 139.9 kB / 3.229 GB, free: 310.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/6.342, allocations: 10.06 kB / 3.229 GB, free: 310.6 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01187/6.354, allocations: 4.05 MB / 3.233 GB, free: 306.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.881e-05/6.354, allocations: 16.22 kB / 3.233 GB, free: 306.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.498e-05/6.354, allocations: 40 kB / 3.233 GB, free: 306.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004017/6.358, allocations: 0.7722 MB / 3.233 GB, free: 305.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.334e-05/6.358, allocations: 43.86 kB / 3.233 GB, free: 305.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003381/6.362, allocations: 294.3 kB / 3.234 GB, free: 305.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005677/6.362, allocations: 127.9 kB / 3.234 GB, free: 305.2 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.001043/6.363, allocations: 184.1 kB / 3.234 GB, free: 305 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0115/6.375, allocations: 3.997 MB / 3.238 GB, free: 301 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000819/6.376, allocations: 217.4 kB / 3.238 GB, free: 300.8 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01372/6.389, allocations: 4.602 MB / 3.243 GB, free: 296.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.367e-05/6.389, allocations: 28 kB / 3.243 GB, free: 296.1 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/6.389, allocations: 0 / 3.243 GB, free: 296.1 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.166e-05/6.39, allocations: 15.95 kB / 3.243 GB, free: 296.1 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0198/6.409, allocations: 8.438 MB / 3.251 GB, free: 287.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.264e-05/6.409, allocations: 4 kB / 3.251 GB, free: 287.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003973/6.413, allocations: 0.7257 MB / 3.252 GB, free: 286.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.255e-05/6.413, allocations: 16 kB / 3.252 GB, free: 286.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004865/6.414, allocations: 39.94 kB / 3.252 GB, free: 286.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.332e-05/6.414, allocations: 19.94 kB / 3.252 GB, free: 286.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/6.414, allocations: 4 kB / 3.252 GB, free: 286.8 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01074/6.425, allocations: 4.582 MB / 3.256 GB, free: 282.1 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001608/6.426, allocations: 0.7511 MB / 3.257 GB, free: 281.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007644/6.427, allocations: 11.98 kB / 3.257 GB, free: 281.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003129/6.43, allocations: 235.7 kB / 3.257 GB, free: 281.1 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003017/6.431, allocations: 165.7 kB / 3.257 GB, free: 280.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002635/6.431, allocations: 91.94 kB / 3.257 GB, free: 280.8 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001925/6.433, allocations: 1.044 MB / 3.258 GB, free: 279.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.4e-07/6.433, allocations: 0 / 3.258 GB, free: 279.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.005929/6.439, allocations: 1.195 MB / 3.26 GB, free: 278.6 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.01298/6.452, allocations: 6.221 MB / 3.266 GB, free: 272.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.007791/6.46, allocations: 4.809 MB / 3.27 GB, free: 267.6 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 9.708e-06/6.46, allocations: 0 / 3.27 GB, free: 267.6 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.002372/6.462, allocations: 1.549 MB / 3.272 GB, free: 266 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003347/6.465, allocations: 476.9 kB / 3.272 GB, free: 265.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01728/6.483, allocations: 6.363 MB / 3.279 GB, free: 259.1 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003025/6.486, allocations: 2.544 MB / 3.281 GB, free: 256.6 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.008156/6.494, allocations: 1.384 MB / 3.282 GB, free: 255.2 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003132/6.497, allocations: 1.468 MB / 3.284 GB, free: 253.8 MB / 1.151 GB Notification: Performance of SimCode: time 8.21e-07/6.497, allocations: 0 / 3.284 GB, free: 253.8 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1052/6.602, allocations: 63.41 MB / 3.346 GB, free: 190.7 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001494/6.603, allocations: 207.8 kB / 3.346 GB, free: 190.4 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.898/10.5, allocations: 0 / 3.346 GB, free: 190.4 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