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/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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001958/0.001958, allocations: 100 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.002597/0.002598, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.618/2.618, allocations: 223.2 MB / 239.9 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.525/4.525, allocations: 409.2 MB / 0.6838 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0006977/0.0006984, allocations: 12 kB / 0.8375 GB, free: 6.562 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.368/1.369, allocations: 146.8 MB / 0.9809 GB, free: 6.266 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.PVSimple): time 0.01033/1.38, allocations: 6.78 MB / 0.9875 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.2106/1.59, allocations: 129.1 MB / 1.114 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002495/1.593, allocations: 27.88 kB / 1.114 GB, free: 13.99 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.001139/1.594, allocations: 150.7 kB / 1.114 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.004754/1.599, allocations: 0.7153 MB / 1.114 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.004782/1.604, allocations: 0.9206 MB / 1.115 GB, free: 12.21 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.004841/1.608, allocations: 1.342 MB / 1.117 GB, free: 10.87 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004082/1.613, allocations: 1.348 MB / 1.118 GB, free: 9.473 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002759/1.615, allocations: 0.6068 MB / 1.119 GB, free: 8.863 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002469/1.618, allocations: 0.6609 MB / 1.119 GB, free: 8.199 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0003608/1.618, allocations: 56 kB / 1.119 GB, free: 8.145 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002304/1.621, allocations: 395.5 kB / 1.12 GB, free: 7.758 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0006583/1.621, allocations: 354.6 kB / 1.12 GB, free: 7.41 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0009337/1.622, allocations: 336.7 kB / 1.12 GB, free: 7.074 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.005183/1.627, allocations: 2.139 MB / 1.122 GB, free: 4.93 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/1.627, allocations: 0 / 1.122 GB, free: 4.93 MB / 0.8731 GB Notification: Performance of FrontEnd: time 4.137e-06/1.627, allocations: 0 / 1.122 GB, free: 4.93 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 8.896e-05/1.628, allocations: 0 / 1.122 GB, free: 4.93 MB / 0.8731 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.008193/1.636, allocations: 1.906 MB / 1.124 GB, free: 2.969 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 8.725e-05/1.636, allocations: 8.031 kB / 1.124 GB, free: 2.961 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001008/1.637, allocations: 245.1 kB / 1.124 GB, free: 2.711 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01102/1.648, allocations: 0.977 MB / 1.125 GB, free: 1.73 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004688/1.653, allocations: 1.059 MB / 1.126 GB, free: 0.625 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004152/1.653, allocations: 127.3 kB / 1.127 GB, free: 0.5 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006267/1.654, allocations: 160 kB / 1.127 GB, free: 352 kB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009828/1.664, allocations: 2.199 MB / 1.129 GB, free: 14.08 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.222e-05/1.664, allocations: 3.938 kB / 1.129 GB, free: 14.07 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003488/1.664, allocations: 75.98 kB / 1.129 GB, free: 14 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000168/1.664, allocations: 79.27 kB / 1.129 GB, free: 13.92 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01244/1.677, allocations: 2.546 MB / 1.132 GB, free: 11.37 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02355/1.7, allocations: 6.754 MB / 1.138 GB, free: 4.391 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00769/1.708, allocations: 1.721 MB / 1.14 GB, free: 2.664 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001077/1.709, allocations: 491 kB / 1.14 GB, free: 2.094 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004336/1.714, allocations: 1.063 MB / 1.141 GB, free: 1.004 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=144): time 6.012e-06/1.714, allocations: 0 / 1.141 GB, free: 1.004 MB / 0.8887 GB Notification: Performance of matching and sorting (n=144): time 0.01244/1.726, allocations: 2.46 MB / 1.144 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002731/1.727, allocations: 308 kB / 1.144 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00304/1.73, allocations: 0.9162 MB / 1.145 GB, free: 13.21 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0004061/1.73, allocations: 61.62 kB / 1.145 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.001121/1.731, allocations: 0.6676 MB / 1.146 GB, free: 12.47 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009595/1.732, allocations: 477.1 kB / 1.146 GB, free: 12 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002526/1.733, allocations: 28 kB / 1.146 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0003447/1.733, allocations: 357.9 kB / 1.146 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003514/1.736, allocations: 0.6598 MB / 1.147 GB, free: 10.95 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003887/1.74, allocations: 0.8739 MB / 1.148 GB, free: 10.02 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003809/1.744, allocations: 0.717 MB / 1.149 GB, free: 9.301 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.424e-05/1.744, allocations: 3.938 kB / 1.149 GB, free: 9.297 MB / 0.9044 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.009578/1.754, allocations: 1.773 MB / 1.15 GB, free: 7.512 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.001166/1.755, allocations: 1.143 MB / 1.151 GB, free: 6.281 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.814e-05/1.755, allocations: 4 kB / 1.151 GB, free: 6.277 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003806/1.756, allocations: 40.77 kB / 1.152 GB, free: 6.234 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00375/1.759, allocations: 367.5 kB / 1.152 GB, free: 5.875 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002321/1.762, allocations: 1.297 MB / 1.153 GB, free: 4.441 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003442/1.765, allocations: 230.7 kB / 1.153 GB, free: 4.215 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005738/1.766, allocations: 63.94 kB / 1.153 GB, free: 4.152 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/1.766, allocations: 4 kB / 1.153 GB, free: 4.148 MB / 0.9044 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009214/1.775, allocations: 1.635 MB / 1.155 GB, free: 2.512 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.347e-05/1.775, allocations: 0 / 1.155 GB, free: 2.512 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.9e-05/1.775, allocations: 12 kB / 1.155 GB, free: 2.5 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00379/1.779, allocations: 363.7 kB / 1.155 GB, free: 2.145 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.178e-05/1.779, allocations: 15.92 kB / 1.155 GB, free: 2.129 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003302/1.782, allocations: 219.2 kB / 1.156 GB, free: 1.914 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004192/1.783, allocations: 63.94 kB / 1.156 GB, free: 1.852 MB / 0.9044 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.002035/1.785, allocations: 482.9 kB / 1.156 GB, free: 1.371 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009869/1.786, allocations: 134.3 kB / 1.156 GB, free: 1.238 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01102/1.797, allocations: 2.128 MB / 1.158 GB, free: 15.09 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.36e-05/1.797, allocations: 19.94 kB / 1.158 GB, free: 15.07 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-05/1.797, allocations: 7.953 kB / 1.158 GB, free: 15.07 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.895e-05/1.797, allocations: 7.969 kB / 1.158 GB, free: 15.06 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006381/1.804, allocations: 2.022 MB / 1.16 GB, free: 12.97 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.5e-05/1.804, allocations: 0 / 1.16 GB, free: 12.97 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003299/1.807, allocations: 331.6 kB / 1.161 GB, free: 12.65 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000318/1.807, allocations: 32.78 kB / 1.161 GB, free: 12.61 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000422/1.808, allocations: 43.95 kB / 1.161 GB, free: 12.57 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002113/1.81, allocations: 1.284 MB / 1.162 GB, free: 11.16 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/1.81, allocations: 3.984 kB / 1.162 GB, free: 11.15 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009704/1.82, allocations: 1.868 MB / 1.164 GB, free: 9.246 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001738/1.821, allocations: 450.7 kB / 1.164 GB, free: 8.785 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000795/1.822, allocations: 32 kB / 1.164 GB, free: 8.754 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003083/1.825, allocations: 164.4 kB / 1.164 GB, free: 8.594 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000445/1.826, allocations: 109.1 kB / 1.165 GB, free: 8.484 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003148/1.826, allocations: 63.94 kB / 1.165 GB, free: 8.422 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.002316/1.829, allocations: 0.6553 MB / 1.165 GB, free: 7.758 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.81e-07/1.829, allocations: 0 / 1.165 GB, free: 7.758 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.004949/1.834, allocations: 0.8173 MB / 1.166 GB, free: 6.938 MB / 0.92 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.01259/1.846, allocations: 3.09 MB / 1.169 GB, free: 3.988 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.01236/1.859, allocations: 2.677 MB / 1.172 GB, free: 1.301 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.541e-05/1.859, allocations: 4 kB / 1.172 GB, free: 1.297 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.003878/1.863, allocations: 1.006 MB / 1.173 GB, free: 284 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002768/1.865, allocations: 297.7 kB / 1.173 GB, free: 15.99 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03693/1.902, allocations: 10.95 MB / 1.184 GB, free: 4.691 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001652/1.904, allocations: 1.34 MB / 1.185 GB, free: 3.32 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.00573/1.91, allocations: 0.5379 MB / 1.185 GB, free: 2.777 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00252/1.912, allocations: 0.6788 MB / 1.186 GB, free: 2.098 MB / 0.9356 GB Notification: Performance of SimCode: time 2.896e-06/1.912, allocations: 4 kB / 1.186 GB, free: 2.094 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2245/2.137, allocations: 33.03 MB / 1.218 GB, free: 1.43 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005216/2.138, allocations: 257.6 kB / 1.219 GB, free: 1.086 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.775/7.913, allocations: 0 / 1.219 GB, free: 1.086 MB / 0.9669 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) Environment - environmentSimulation: 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