Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,fileNamePrefix="Buildings_maint_7_0_x_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,fileNamePrefix="Buildings_maint_7_0_x_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.432/1.432, allocations: 252 MB / 267 MB, free: 10.98 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001187/0.001187, allocations: 174.7 kB / 326.6 MB, free: 2.238 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.078/2.078, allocations: 205.4 MB / 0.5777 GB, free: 20.33 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008747/0.0008751, allocations: 99.95 kB / 0.6823 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000443/0.000443, allocations: 9.438 kB / 0.7964 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.265, allocations: 106.3 MB / 0.9003 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.005452/0.2705, allocations: 4.309 MB / 0.9045 GB, free: 59.53 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.1698/0.4404, allocations: 136.8 MB / 1.038 GB, free: 2.367 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001493/0.4419, allocations: 19.88 kB / 1.038 GB, free: 2.348 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.0008531/0.4428, allocations: 146.8 kB / 1.038 GB, free: 2.203 MB / 0.6823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/BoundaryConditions/WeatherData/BaseClasses/getHeaderElementTMY3.mo:2:1-105:25:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘ contains a call to impure function ‘Modelica.Utilities.Streams.readLine‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/BoundaryConditions/WeatherData/BaseClasses/getLongitudeTMY3.mo:2:1-48:21:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getLongitudeTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/BoundaryConditions/WeatherData/BaseClasses/getLatitudeTMY3.mo:2:1-48:20:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getLatitudeTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/BoundaryConditions/WeatherData/BaseClasses/getTimeZoneTMY3.mo:2:1-47:20:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getTimeZoneTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. Notification: Performance of NFTyping.typeBindings: time 0.002662/0.4455, allocations: 432.4 kB / 1.039 GB, free: 1.781 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.002855/0.4484, allocations: 0.6933 MB / 1.039 GB, free: 1.098 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.002505/0.4509, allocations: 1.338 MB / 1.041 GB, free: 15.75 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001536/0.4524, allocations: 0.8752 MB / 1.041 GB, free: 14.85 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001102/0.4535, allocations: 425.8 kB / 1.042 GB, free: 14.43 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007064/0.4543, allocations: 461.2 kB / 1.042 GB, free: 13.98 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.0001001/0.4544, allocations: 28 kB / 1.042 GB, free: 13.95 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009758/0.4554, allocations: 271.8 kB / 1.043 GB, free: 13.69 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.0002994/0.4557, allocations: 226.8 kB / 1.043 GB, free: 13.46 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.0003652/0.456, allocations: 268.8 kB / 1.043 GB, free: 13.2 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.001928/0.458, allocations: 1.625 MB / 1.045 GB, free: 11.57 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.458, allocations: 4 kB / 1.045 GB, free: 11.56 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.146e-06/0.458, allocations: 0 / 1.045 GB, free: 11.56 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.794e-05/0.458, allocations: 0 / 1.045 GB, free: 11.56 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 364 * Number of variables: 364 Notification: Performance of Generate backend data structure: time 0.003165/0.4612, allocations: 1.49 MB / 1.046 GB, free: 10.02 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.4613, allocations: 8.031 kB / 1.046 GB, free: 10.01 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002837/0.4616, allocations: 215.1 kB / 1.046 GB, free: 9.793 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001034/0.4626, allocations: 249.8 kB / 1.047 GB, free: 9.547 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001464/0.4641, allocations: 0.8719 MB / 1.047 GB, free: 8.633 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001516/0.4643, allocations: 132.6 kB / 1.048 GB, free: 8.496 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001817/0.4644, allocations: 140 kB / 1.048 GB, free: 8.359 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002631/0.4671, allocations: 1.42 MB / 1.049 GB, free: 6.883 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.433e-05/0.4671, allocations: 0 / 1.049 GB, free: 6.883 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001342/0.4673, allocations: 63.95 kB / 1.049 GB, free: 6.82 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.403e-05/0.4673, allocations: 36 kB / 1.049 GB, free: 6.785 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002439/0.4698, allocations: 1.459 MB / 1.051 GB, free: 5.32 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006494/0.4763, allocations: 3.781 MB / 1.054 GB, free: 1.465 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001607/0.4779, allocations: 0.9114 MB / 1.055 GB, free: 0.543 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006083/0.4785, allocations: 379.7 kB / 1.056 GB, free: 172 kB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 9.738e-05/0.4786, allocations: 36.94 kB / 1.056 GB, free: 136 kB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.5684/1.047, allocations: 0.5444 MB / 1.056 GB, free: 154.3 MB / 0.698 GB Notification: Performance of pre-optimization done (n=93): time 5.64e-06/1.047, allocations: 0 / 1.056 GB, free: 154.3 MB / 0.698 GB Notification: Performance of matching and sorting (n=93): time 0.003696/1.051, allocations: 1.377 MB / 1.057 GB, free: 154.1 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.591e-05/1.051, allocations: 192.7 kB / 1.058 GB, free: 153.9 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001008/1.052, allocations: 0.7393 MB / 1.058 GB, free: 153.8 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 8.681e-05/1.052, allocations: 41.86 kB / 1.058 GB, free: 153.8 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004446/1.053, allocations: 0.5918 MB / 1.059 GB, free: 153.5 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002096/1.053, allocations: 312.5 kB / 1.059 GB, free: 153.3 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.542e-05/1.053, allocations: 15.53 kB / 1.059 GB, free: 153.3 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 8.54e-05/1.053, allocations: 343.2 kB / 1.06 GB, free: 153 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005564/1.053, allocations: 302.9 kB / 1.06 GB, free: 153 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006666/1.054, allocations: 436.2 kB / 1.06 GB, free: 153 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006603/1.055, allocations: 373.7 kB / 1.061 GB, free: 152.9 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/1.055, allocations: 0 / 1.061 GB, free: 152.9 MB / 0.698 GB Notification: Performance of matching and sorting (n=105) (initialization): time 0.002118/1.057, allocations: 0.981 MB / 1.062 GB, free: 152.8 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/1.057, allocations: 10.23 kB / 1.062 GB, free: 152.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/1.057, allocations: 0 / 1.062 GB, free: 152.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000698/1.058, allocations: 88.52 kB / 1.062 GB, free: 152.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008468/1.059, allocations: 186.7 kB / 1.062 GB, free: 152.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001955/1.061, allocations: 1.531 MB / 1.063 GB, free: 151.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008474/1.061, allocations: 103.5 kB / 1.063 GB, free: 151.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.379e-05/1.061, allocations: 37.34 kB / 1.064 GB, free: 151.5 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (103): * Single equations (assignments): 102 * 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.0007821/1.062, allocations: 320.1 kB / 1.064 GB, free: 151.4 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001555/1.062, allocations: 98.05 kB / 1.064 GB, free: 151.3 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003007/1.065, allocations: 1.306 MB / 1.065 GB, free: 151.2 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/1.065, allocations: 16.22 kB / 1.065 GB, free: 151.2 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/1.065, allocations: 0 / 1.065 GB, free: 151.2 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.118e-05/1.066, allocations: 5.438 kB / 1.065 GB, free: 151.2 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005014/1.071, allocations: 2.5 MB / 1.068 GB, free: 150.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/1.071, allocations: 0 / 1.068 GB, free: 150.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008268/1.071, allocations: 184.5 kB / 1.068 GB, free: 150.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000568/1.072, allocations: 82.78 kB / 1.068 GB, free: 150.8 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.672e-05/1.072, allocations: 29.52 kB / 1.068 GB, free: 150.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001793/1.074, allocations: 1.56 MB / 1.069 GB, free: 149.5 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/1.074, allocations: 3.938 kB / 1.069 GB, free: 149.5 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002661/1.077, allocations: 1.114 MB / 1.071 GB, free: 149.2 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005925/1.077, allocations: 338.6 kB / 1.071 GB, free: 149.1 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001464/1.077, allocations: 21.22 kB / 1.071 GB, free: 149.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007577/1.078, allocations: 76.08 kB / 1.071 GB, free: 149.1 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002142/1.078, allocations: 79.34 kB / 1.071 GB, free: 149.1 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001095/1.078, allocations: 45.05 kB / 1.071 GB, free: 149.1 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001041/1.079, allocations: 0.5407 MB / 1.072 GB, free: 149 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.2e-07/1.079, allocations: 0 / 1.072 GB, free: 149 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001497/1.081, allocations: 383.8 kB / 1.072 GB, free: 148.9 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 104 * 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: 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.004173/1.085, allocations: 2.122 MB / 1.074 GB, free: 148 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002314/1.087, allocations: 0.933 MB / 1.075 GB, free: 147.9 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/1.088, allocations: 0 / 1.075 GB, free: 147.9 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001188/1.089, allocations: 0.5785 MB / 1.076 GB, free: 147.8 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001679/1.09, allocations: 282.1 kB / 1.076 GB, free: 147.7 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0145/1.105, allocations: 6.429 MB / 1.082 GB, free: 144.4 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009155/1.106, allocations: 1.166 MB / 1.083 GB, free: 143.7 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001188/1.107, allocations: 291.2 kB / 1.084 GB, free: 143.6 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006901/1.108, allocations: 0.5392 MB / 1.084 GB, free: 143.2 MB / 0.698 GB Notification: Performance of SimCode: time 1.933e-06/1.108, allocations: 1.094 kB / 1.084 GB, free: 143.2 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04806/1.156, allocations: 25.11 MB / 1.109 GB, free: 121.6 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001871/1.156, allocations: 293 kB / 1.109 GB, free: 121.2 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.088/4.244, allocations: 0 / 1.109 GB, free: 121.2 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe >> ../files/Buildings_maint.7.0.x_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface_fmu --startTime=1.82304e+07 --stopTime=1.83168e+07 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface.fmu > Buildings_maint.7.0.x_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe 2>&1)