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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001641/0.001641, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 223.2 MB / 239.9 MB, free: 5.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.451/2.451, allocations: 390.3 MB / 0.6653 GB, free: 3.02 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003695/0.0003695, allocations: 8 kB / 0.8146 GB, free: 14.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9035/0.9038, allocations: 142.3 MB / 0.9536 GB, free: 8.188 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.PVSimple): time 0.008092/0.912, allocations: 6.776 MB / 0.9602 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1683/1.08, allocations: 129.1 MB / 1.086 GB, free: 7.969 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001704/1.082, allocations: 23.88 kB / 1.086 GB, free: 7.945 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0009599/1.083, allocations: 150.7 kB / 1.086 GB, free: 7.797 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002802/1.086, allocations: 0.7237 MB / 1.087 GB, free: 7.074 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002779/1.089, allocations: 0.9164 MB / 1.088 GB, free: 6.164 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.002828/1.092, allocations: 1.334 MB / 1.089 GB, free: 4.828 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002397/1.094, allocations: 1.34 MB / 1.091 GB, free: 3.438 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001166/1.095, allocations: 0.6107 MB / 1.091 GB, free: 2.824 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001285/1.096, allocations: 0.6579 MB / 1.092 GB, free: 2.164 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0003578/1.097, allocations: 56 kB / 1.092 GB, free: 2.109 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001308/1.098, allocations: 403.4 kB / 1.092 GB, free: 1.715 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0003999/1.099, allocations: 350.6 kB / 1.093 GB, free: 1.371 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0003966/1.099, allocations: 332.7 kB / 1.093 GB, free: 1.039 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.002317/1.101, allocations: 2.139 MB / 1.095 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/1.101, allocations: 0 / 1.095 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.262e-06/1.101, allocations: 0 / 1.095 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.939e-05/1.101, allocations: 0 / 1.095 GB, free: 14.89 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 439 * Number of variables: 439 Notification: Performance of Generate backend data structure: time 0.003849/1.105, allocations: 1.906 MB / 1.097 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/1.105, allocations: 8.031 kB / 1.097 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002995/1.106, allocations: 249.1 kB / 1.097 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006144/1.112, allocations: 0.9808 MB / 1.098 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002134/1.114, allocations: 1.047 MB / 1.099 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001159/1.114, allocations: 131.3 kB / 1.099 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002542/1.114, allocations: 172 kB / 1.099 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004807/1.119, allocations: 2.195 MB / 1.102 GB, free: 8.031 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.107e-05/1.119, allocations: 0 / 1.102 GB, free: 8.031 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000188/1.119, allocations: 71.98 kB / 1.102 GB, free: 7.961 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-05/1.119, allocations: 79.27 kB / 1.102 GB, free: 7.883 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00598/1.125, allocations: 2.553 MB / 1.104 GB, free: 5.324 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01157/1.137, allocations: 6.755 MB / 1.111 GB, free: 14.35 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004167/1.141, allocations: 1.718 MB / 1.113 GB, free: 12.62 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006422/1.142, allocations: 495 kB / 1.113 GB, free: 12.04 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002249/1.144, allocations: 1.066 MB / 1.114 GB, free: 10.95 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=144): time 3.256e-06/1.144, allocations: 0 / 1.114 GB, free: 10.95 MB / 0.8731 GB Notification: Performance of matching and sorting (n=144): time 0.006152/1.15, allocations: 2.464 MB / 1.116 GB, free: 8.457 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001567/1.15, allocations: 300 kB / 1.117 GB, free: 8.098 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001193/1.152, allocations: 0.9162 MB / 1.118 GB, free: 7.16 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001236/1.152, allocations: 61.64 kB / 1.118 GB, free: 7.094 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004942/1.152, allocations: 0.6754 MB / 1.118 GB, free: 6.406 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003792/1.153, allocations: 473.1 kB / 1.119 GB, free: 5.938 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.984e-05/1.153, allocations: 24 kB / 1.119 GB, free: 5.914 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001492/1.153, allocations: 361.9 kB / 1.119 GB, free: 5.555 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001739/1.155, allocations: 0.6519 MB / 1.12 GB, free: 4.902 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001909/1.157, allocations: 0.8731 MB / 1.121 GB, free: 3.969 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001822/1.158, allocations: 0.7091 MB / 1.121 GB, free: 3.258 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/1.158, allocations: 7.891 kB / 1.121 GB, free: 3.25 MB / 0.8731 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004367/1.163, allocations: 1.785 MB / 1.123 GB, free: 1.453 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004366/1.163, allocations: 1.139 MB / 1.124 GB, free: 232 kB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/1.163, allocations: 7.984 kB / 1.124 GB, free: 224 kB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002069/1.164, allocations: 32.84 kB / 1.124 GB, free: 188 kB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00184/1.165, allocations: 371.4 kB / 1.125 GB, free: 15.82 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001157/1.167, allocations: 1.294 MB / 1.126 GB, free: 14.39 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001783/1.168, allocations: 236 kB / 1.126 GB, free: 14.16 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001562/1.169, allocations: 63.95 kB / 1.126 GB, free: 14.1 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 9.979e-06/1.169, allocations: 4 kB / 1.126 GB, free: 14.1 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004143/1.173, allocations: 1.631 MB / 1.128 GB, free: 12.46 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/1.173, allocations: 4 kB / 1.128 GB, free: 12.46 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/1.173, allocations: 12.19 kB / 1.128 GB, free: 12.45 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001828/1.175, allocations: 367.5 kB / 1.128 GB, free: 12.09 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.609e-05/1.175, allocations: 12 kB / 1.128 GB, free: 12.08 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001627/1.176, allocations: 222.7 kB / 1.128 GB, free: 11.86 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001206/1.176, allocations: 59.95 kB / 1.128 GB, free: 11.8 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.HDifTil.incAng.decAng.tNext,HDifTil.incAng.decAng.tNext,$PRE.HDirTil.incAng.decAng.tNext,HDirTil.incAng.decAng.tNext,$PRE.weaDat.locTim.tNext,weaDat.locTim.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.decAng.tNext,weaDat.decAng.tNext) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 168 * 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.0009383/1.177, allocations: 478.9 kB / 1.129 GB, free: 11.32 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002803/1.178, allocations: 138.3 kB / 1.129 GB, free: 11.19 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005268/1.183, allocations: 2.113 MB / 1.131 GB, free: 9.059 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.515e-05/1.183, allocations: 16 kB / 1.131 GB, free: 9.043 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/1.183, allocations: 8 kB / 1.131 GB, free: 9.035 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.578e-05/1.183, allocations: 15.84 kB / 1.131 GB, free: 9.02 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002587/1.186, allocations: 2.04 MB / 1.133 GB, free: 6.918 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/1.186, allocations: 0 / 1.133 GB, free: 6.918 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001718/1.187, allocations: 323.6 kB / 1.133 GB, free: 6.602 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001442/1.187, allocations: 28.84 kB / 1.133 GB, free: 6.57 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/1.188, allocations: 43.95 kB / 1.133 GB, free: 6.527 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001042/1.189, allocations: 1.276 MB / 1.135 GB, free: 5.117 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/1.189, allocations: 8.281 kB / 1.135 GB, free: 5.109 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004984/1.194, allocations: 1.876 MB / 1.137 GB, free: 3.195 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00114/1.195, allocations: 446.7 kB / 1.137 GB, free: 2.738 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004471/1.195, allocations: 32 kB / 1.137 GB, free: 2.707 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001778/1.197, allocations: 160.8 kB / 1.137 GB, free: 2.551 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003149/1.197, allocations: 113.1 kB / 1.137 GB, free: 2.441 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001565/1.198, allocations: 67.95 kB / 1.137 GB, free: 2.375 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001598/1.199, allocations: 0.6514 MB / 1.138 GB, free: 1.715 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.3e-07/1.199, allocations: 0 / 1.138 GB, free: 1.715 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.003274/1.202, allocations: 0.8174 MB / 1.139 GB, free: 0.8945 MB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,HDifTil.incAng.decAng.tNext,HDirTil.incAng.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 7 (weaDat.decAng.tNext,weaDat.eqnTim.tNext,weaDat.conTim.tNext,weaDat.conTimMin.tNext,weaDat.locTim.tNext,HDirTil.incAng.decAng.tNext,HDifTil.incAng.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (160): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.007185/1.21, allocations: 3.093 MB / 1.142 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.006983/1.217, allocations: 2.681 MB / 1.144 GB, free: 11.25 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 8.455e-06/1.217, allocations: 0 / 1.144 GB, free: 11.25 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.002312/1.219, allocations: 1.006 MB / 1.145 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001631/1.221, allocations: 293.6 kB / 1.146 GB, free: 9.953 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.021/1.242, allocations: 10.94 MB / 1.156 GB, free: 14.66 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001117/1.243, allocations: 1.344 MB / 1.158 GB, free: 13.29 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.003053/1.246, allocations: 0.5495 MB / 1.158 GB, free: 12.73 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001186/1.247, allocations: 0.6788 MB / 1.159 GB, free: 12.05 MB / 0.92 GB Notification: Performance of SimCode: time 8.52e-07/1.247, allocations: 3.938 kB / 1.159 GB, free: 12.05 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06769/1.315, allocations: 33.04 MB / 1.191 GB, free: 11.38 MB / 0.9512 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002462/1.315, allocations: 260.5 kB / 1.191 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.727/4.042, allocations: 0 / 1.191 GB, free: 11.04 MB / 0.9512 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