Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.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.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle,fileNamePrefix="Buildings_9_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle,fileNamePrefix="Buildings_9_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle",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.001137/0.001137, allocations: 99.31 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.001324/0.001324, 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.478/1.478, allocations: 223.2 MB / 239.9 MB, free: 5.332 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.414/2.414, allocations: 390.3 MB / 0.6653 GB, free: 2.984 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005109/0.0005111, allocations: 8 kB / 0.8146 GB, free: 14.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7902/0.7907, allocations: 142.3 MB / 0.9536 GB, free: 8.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle): time 0.005291/0.7961, allocations: 4.558 MB / 0.958 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1593/0.9554, allocations: 128.1 MB / 1.083 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001201/0.9567, allocations: 19.88 kB / 1.083 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0004891/0.9572, allocations: 95.06 kB / 1.083 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.00223/0.9594, allocations: 0.6517 MB / 1.084 GB, free: 10.42 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002009/0.9614, allocations: 0.721 MB / 1.085 GB, free: 9.707 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001985/0.9634, allocations: 1.157 MB / 1.086 GB, free: 8.547 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001114/0.9646, allocations: 0.84 MB / 1.087 GB, free: 7.68 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009104/0.9655, allocations: 0.5523 MB / 1.087 GB, free: 7.125 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008035/0.9663, allocations: 0.5595 MB / 1.088 GB, free: 6.562 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001321/0.9664, allocations: 44 kB / 1.088 GB, free: 6.52 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007951/0.9672, allocations: 327.6 kB / 1.088 GB, free: 6.199 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002752/0.9675, allocations: 278.8 kB / 1.088 GB, free: 5.926 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002938/0.9678, allocations: 296.8 kB / 1.089 GB, free: 5.629 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001807/0.9696, allocations: 1.796 MB / 1.09 GB, free: 3.828 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.9697, allocations: 0 / 1.09 GB, free: 3.828 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.743e-06/0.9697, allocations: 0 / 1.09 GB, free: 3.828 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 2.562e-05/0.9697, allocations: 0 / 1.09 GB, free: 3.828 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003604/0.9733, allocations: 1.703 MB / 1.092 GB, free: 2.062 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.9734, allocations: 8.031 kB / 1.092 GB, free: 2.055 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003014/0.9737, allocations: 227.9 kB / 1.092 GB, free: 1.82 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001051/0.9747, allocations: 265.6 kB / 1.092 GB, free: 1.559 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001545/0.9763, allocations: 0.9343 MB / 1.093 GB, free: 0.5781 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/0.9764, allocations: 123 kB / 1.093 GB, free: 468 kB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001856/0.9766, allocations: 148 kB / 1.094 GB, free: 320 kB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002615/0.9792, allocations: 1.557 MB / 1.095 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.812e-05/0.9792, allocations: 3.953 kB / 1.095 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001366/0.9794, allocations: 71.98 kB / 1.095 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.752e-05/0.9794, allocations: 36 kB / 1.095 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00276/0.9822, allocations: 1.635 MB / 1.097 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007058/0.9893, allocations: 4.18 MB / 1.101 GB, free: 8.691 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002028/0.9913, allocations: 1.19 MB / 1.102 GB, free: 7.5 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001115/0.9915, allocations: 49.06 kB / 1.102 GB, free: 7.453 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001255/0.9927, allocations: 0.7744 MB / 1.103 GB, free: 6.66 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=128): time 2.304e-06/0.9927, allocations: 0 / 1.103 GB, free: 6.66 MB / 0.8575 GB Notification: Performance of matching and sorting (n=128): time 0.004153/0.9969, allocations: 1.835 MB / 1.105 GB, free: 4.801 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/0.997, allocations: 197.2 kB / 1.105 GB, free: 4.566 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001192/0.9982, allocations: 0.8615 MB / 1.106 GB, free: 3.68 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0001038/0.9983, allocations: 53.7 kB / 1.106 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004936/0.9989, allocations: 0.617 MB / 1.106 GB, free: 2.992 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.000345/0.9992, allocations: 410.2 kB / 1.107 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.388e-05/0.9993, allocations: 23.94 kB / 1.107 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001428/0.9994, allocations: 353.9 kB / 1.107 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007783/1, allocations: 426.4 kB / 1.107 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008821/1.001, allocations: 0.5526 MB / 1.108 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008621/1.002, allocations: 482.3 kB / 1.108 GB, free: 0.7461 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/1.002, allocations: 0 / 1.108 GB, free: 0.7461 MB / 0.8575 GB Notification: Performance of matching and sorting (n=151) (initialization): time 0.002711/1.005, allocations: 1.293 MB / 1.11 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/1.005, allocations: 4 kB / 1.11 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.248e-06/1.005, allocations: 0 / 1.11 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005942/1.005, allocations: 84.84 kB / 1.11 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001084/1.006, allocations: 259.6 kB / 1.11 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002198/1.009, allocations: 1.541 MB / 1.112 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001253/1.01, allocations: 167 kB / 1.112 GB, free: 13.25 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001253/1.01, allocations: 55.95 kB / 1.112 GB, free: 13.2 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 30 ($whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.incAngHor.decAng.tNext,incAngHor.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,$PRE.incAngNor.decAng.tNext,incAngNor.decAng.tNext,$PRE.incAngWes.decAng.tNext,incAngWes.decAng.tNext,$PRE.incAngSou.decAng.tNext,incAngSou.decAng.tNext,$PRE.incAngEas.decAng.tNext,incAngEas.decAng.tNext) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (149): * Single equations (assignments): 148 * 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 2} Notification: Performance of prepare postOptimizeDAE: time 0.0007854/1.011, allocations: 344.1 kB / 1.112 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002527/1.011, allocations: 130.4 kB / 1.112 GB, free: 12.72 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003717/1.015, allocations: 1.725 MB / 1.114 GB, free: 10.98 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-05/1.015, allocations: 12 kB / 1.114 GB, free: 10.96 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/1.015, allocations: 7.984 kB / 1.114 GB, free: 10.96 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.548e-05/1.015, allocations: 7.969 kB / 1.114 GB, free: 10.95 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002083/1.017, allocations: 1.412 MB / 1.115 GB, free: 9.488 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.7e-06/1.017, allocations: 0 / 1.115 GB, free: 9.488 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009343/1.018, allocations: 219.7 kB / 1.116 GB, free: 9.273 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005598/1.019, allocations: 84.77 kB / 1.116 GB, free: 9.188 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001011/1.019, allocations: 39.97 kB / 1.116 GB, free: 9.148 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002045/1.021, allocations: 1.575 MB / 1.117 GB, free: 7.434 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/1.021, allocations: 4.031 kB / 1.117 GB, free: 7.43 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002902/1.024, allocations: 1.406 MB / 1.119 GB, free: 6.004 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008397/1.024, allocations: 402.9 kB / 1.119 GB, free: 5.59 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000212/1.025, allocations: 31.98 kB / 1.119 GB, free: 5.559 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009246/1.026, allocations: 112.5 kB / 1.119 GB, free: 5.449 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000235/1.026, allocations: 113.1 kB / 1.119 GB, free: 5.336 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001222/1.026, allocations: 55.91 kB / 1.119 GB, free: 5.281 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0009408/1.027, allocations: 0.6464 MB / 1.12 GB, free: 4.625 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.1e-07/1.027, allocations: 0 / 1.12 GB, free: 4.625 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001217/1.028, allocations: 454.6 kB / 1.12 GB, free: 4.18 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,incAngHor.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,incAngNor.decAng.tNext,incAngWes.decAng.tNext,incAngSou.decAng.tNext,incAngEas.decAng.tNext) * Number of discrete states: 10 (incAngHor.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,incAngNor.decAng.tNext,incAngWes.decAng.tNext,incAngSou.decAng.tNext,incAngEas.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (144): * Single equations (assignments): 133 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.004336/1.033, allocations: 2.477 MB / 1.123 GB, free: 1.855 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002441/1.035, allocations: 1.228 MB / 1.124 GB, free: 0.6172 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/1.035, allocations: 4 kB / 1.124 GB, free: 0.6133 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001278/1.036, allocations: 0.7402 MB / 1.125 GB, free: 15.86 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001275/1.038, allocations: 262.3 kB / 1.125 GB, free: 15.61 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01514/1.053, allocations: 8.217 MB / 1.133 GB, free: 7.109 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008575/1.054, allocations: 1.266 MB / 1.134 GB, free: 5.816 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001307/1.055, allocations: 329.9 kB / 1.134 GB, free: 5.492 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009099/1.056, allocations: 0.6281 MB / 1.135 GB, free: 4.863 MB / 0.8887 GB Notification: Performance of SimCode: time 8.81e-07/1.056, allocations: 0 / 1.135 GB, free: 4.863 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0548/1.111, allocations: 29.98 MB / 1.164 GB, free: 7.281 MB / 0.92 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002154/1.111, allocations: 273.5 kB / 1.165 GB, free: 6.922 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.495/3.606, allocations: 0 / 1.165 GB, free: 6.922 MB / 0.92 GB (rm -f Buildings_9_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.pipe ; mkfifo Buildings_9_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.pipe ; head -c 1048576 < Buildings_9_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.pipe >> ../files/Buildings_9_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle_res.mat --tempDir=temp_Buildings_9_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle.fmu > Buildings_9_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle_res.mat does not exist to compare? outputFormat=mat