Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.BoundaryConditions.SolarGeometry.Examples.ProjectedShadowLength.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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.ProjectedShadowLength,fileNamePrefix="Buildings_8_Buildings_BoundaryConditions_SolarGeometry_Examples_ProjectedShadowLength",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarGeometry.Examples.ProjectedShadowLength,fileNamePrefix="Buildings_8_Buildings_BoundaryConditions_SolarGeometry_Examples_ProjectedShadowLength",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.001088/0.001088, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 188.3 kB / 16.64 MB, free: 6.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.333/1.333, allocations: 205.1 MB / 222.5 MB, free: 4.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.635/1.635, allocations: 292.3 MB / 0.549 GB, free: 12.75 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002628/0.002628, allocations: 71.45 kB / 0.6718 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.2451, allocations: 114.6 MB / 0.7836 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.Examples.ProjectedShadowLength): time 0.004956/0.2501, allocations: 3.555 MB / 0.7871 GB, free: 9.676 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.004222/0.2544, allocations: 2.461 MB / 0.7895 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005877/0.255, allocations: 19.94 kB / 0.7895 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002881/0.2553, allocations: 71.06 kB / 0.7896 GB, free: 7.109 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:216:3-259:11:writable] Warning: Pure function 'Modelica.Utilities.Strings.find' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4-maint.8.1.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 8.1.4-maint.8.1.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 8.1.4-maint.8.1.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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getAbsolutePath.mo:2:1-50:20:writable] Warning: Pure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getAbsolutePath' contains a call to impure function 'Modelica.Utilities.Files.exist'. Notification: Performance of NFTyping.typeBindings: time 0.001557/0.2569, allocations: 397.8 kB / 0.79 GB, free: 6.719 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005669/0.2574, allocations: 327.4 kB / 0.7903 GB, free: 6.398 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0006653/0.2581, allocations: 0.8707 MB / 0.7911 GB, free: 5.523 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004485/0.2586, allocations: 369.6 kB / 0.7915 GB, free: 5.148 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.2618/0.5204, allocations: 46.16 MB / 0.8366 GB, free: 9.047 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005901/0.521, allocations: 350.4 kB / 0.8369 GB, free: 8.703 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0001936/0.5212, allocations: 72 kB / 0.837 GB, free: 8.633 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000268/0.5215, allocations: 95.97 kB / 0.8371 GB, free: 8.539 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001344/0.5216, allocations: 167.4 kB / 0.8372 GB, free: 8.375 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0003913/0.522, allocations: 346.2 kB / 0.8376 GB, free: 8.035 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0009186/0.523, allocations: 0.8601 MB / 0.8384 GB, free: 7.172 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.523, allocations: 0 / 0.8384 GB, free: 7.172 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.503e-06/0.523, allocations: 0 / 0.8384 GB, free: 7.172 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 2.766e-05/0.523, allocations: 0 / 0.8384 GB, free: 7.172 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.002195/0.5252, allocations: 0.943 MB / 0.8393 GB, free: 6.176 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.5253, allocations: 12.03 kB / 0.8393 GB, free: 6.164 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001204/0.5254, allocations: 102.7 kB / 0.8394 GB, free: 6.055 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001263/0.5255, allocations: 72.09 kB / 0.8395 GB, free: 5.984 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00281/0.5283, allocations: 490.8 kB / 0.84 GB, free: 5.465 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.512e-05/0.5284, allocations: 45.69 kB / 0.84 GB, free: 5.422 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.956e-05/0.5285, allocations: 67.92 kB / 0.8401 GB, free: 5.355 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009683/0.5294, allocations: 0.603 MB / 0.8407 GB, free: 4.73 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.5295, allocations: 0 / 0.8407 GB, free: 4.73 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.641e-05/0.5295, allocations: 24 kB / 0.8407 GB, free: 4.707 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.5295, allocations: 16 kB / 0.8407 GB, free: 4.691 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008569/0.5304, allocations: 447.4 kB / 0.8411 GB, free: 4.254 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002407/0.5328, allocations: 1.666 MB / 0.8427 GB, free: 2.523 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002923/0.5358, allocations: 0.8467 MB / 0.8436 GB, free: 1.641 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000476/0.5362, allocations: 295.1 kB / 0.8439 GB, free: 1.34 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00039/0.5366, allocations: 425.5 kB / 0.8443 GB, free: 0.832 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.995e-05/0.5367, allocations: 46.55 kB / 0.8443 GB, free: 0.7773 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=72): time 2.235e-06/0.5367, allocations: 0 / 0.8443 GB, free: 0.7773 MB / 0.6544 GB Notification: Performance of matching and sorting (n=72): time 0.001449/0.5382, allocations: 0.7174 MB / 0.845 GB, free: 56 kB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.156e-05/0.5382, allocations: 140.5 kB / 0.8451 GB, free: 15.89 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003239/0.5386, allocations: 329.7 kB / 0.8455 GB, free: 15.55 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 3.942e-05/0.5386, allocations: 41.7 kB / 0.8455 GB, free: 15.51 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.5388, allocations: 244.8 kB / 0.8457 GB, free: 15.27 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001695/0.5389, allocations: 240.5 kB / 0.846 GB, free: 15.03 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001641/0.5391, allocations: 114.3 kB / 0.8461 GB, free: 14.91 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001226/0.5392, allocations: 358.8 kB / 0.8464 GB, free: 14.55 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007747/0.54, allocations: 165.2 kB / 0.8466 GB, free: 14.39 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003765/0.5404, allocations: 225.8 kB / 0.8468 GB, free: 14.16 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007683/0.5412, allocations: 439.2 kB / 0.8472 GB, free: 13.71 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.5412, allocations: 7.938 kB / 0.8472 GB, free: 13.71 MB / 0.67 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0009973/0.5422, allocations: 0.5317 MB / 0.8477 GB, free: 13.17 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.5422, allocations: 8 kB / 0.8477 GB, free: 13.16 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.5422, allocations: 0 / 0.8477 GB, free: 13.16 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.5423, allocations: 4 kB / 0.8477 GB, free: 13.16 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005992/0.5429, allocations: 131.8 kB / 0.8479 GB, free: 13.03 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.491e-05/0.5429, allocations: 4 kB / 0.8479 GB, free: 13.02 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003612/0.5433, allocations: 43.52 kB / 0.8479 GB, free: 12.98 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.166e-05/0.5433, allocations: 23.98 kB / 0.8479 GB, free: 12.96 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (72): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002391/0.5436, allocations: 201.6 kB / 0.8481 GB, free: 12.75 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001469/0.5437, allocations: 47.44 kB / 0.8482 GB, free: 12.7 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00176/0.5455, allocations: 0.925 MB / 0.8491 GB, free: 11.78 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.347e-05/0.5455, allocations: 19.94 kB / 0.8491 GB, free: 11.76 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/0.5455, allocations: 4 kB / 0.8491 GB, free: 11.75 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/0.5456, allocations: 7.984 kB / 0.8491 GB, free: 11.75 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000983/0.5465, allocations: 0.719 MB / 0.8498 GB, free: 10.98 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.443e-06/0.5466, allocations: 0 / 0.8498 GB, free: 10.98 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007312/0.5473, allocations: 183.7 kB / 0.85 GB, free: 10.8 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.651e-05/0.5473, allocations: 8 kB / 0.85 GB, free: 10.79 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.013e-05/0.5474, allocations: 23.98 kB / 0.85 GB, free: 10.77 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.546e-06/0.5474, allocations: 11.94 kB / 0.85 GB, free: 10.75 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.5474, allocations: 0 / 0.85 GB, free: 10.75 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001332/0.5487, allocations: 1.061 MB / 0.8511 GB, free: 9.676 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002368/0.549, allocations: 216 kB / 0.8513 GB, free: 9.445 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.57e-05/0.5491, allocations: 20 kB / 0.8513 GB, free: 9.426 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004249/0.5495, allocations: 23.98 kB / 0.8513 GB, free: 9.402 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.612e-05/0.5496, allocations: 71.84 kB / 0.8514 GB, free: 9.332 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-05/0.5496, allocations: 31.98 kB / 0.8514 GB, free: 9.301 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0002296/0.5499, allocations: 239.2 kB / 0.8516 GB, free: 9.066 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5499, allocations: 0 / 0.8516 GB, free: 9.066 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.0005879/0.5505, allocations: 155.6 kB / 0.8518 GB, free: 8.914 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001664/0.5522, allocations: 1.642 MB / 0.8534 GB, free: 7.246 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.001025/0.5532, allocations: 0.5466 MB / 0.8539 GB, free: 6.703 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.5532, allocations: 0 / 0.8539 GB, free: 6.703 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.0005502/0.5538, allocations: 379.5 kB / 0.8543 GB, free: 6.332 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005712/0.5543, allocations: 57.56 kB / 0.8543 GB, free: 6.273 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006001/0.5603, allocations: 4.399 MB / 0.8586 GB, free: 1.766 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004685/0.5608, allocations: 0.918 MB / 0.8595 GB, free: 0.8203 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0003796/0.5612, allocations: 112.7 kB / 0.8596 GB, free: 0.707 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003667/0.5616, allocations: 259.3 kB / 0.8599 GB, free: 468 kB / 0.67 GB Notification: Performance of SimCode: time 8.21e-07/0.5616, allocations: 4 kB / 0.8599 GB, free: 464 kB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02911/0.5907, allocations: 9.282 MB / 0.869 GB, free: 7.207 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.156/8.746, allocations: 0 / 0.869 GB, free: 7.207 MB / 0.6856 GB (rm -f Buildings_8_Buildings.BoundaryConditions.SolarGeometry.Examples.ProjectedShadowLength.pipe ; mkfifo Buildings_8_Buildings.BoundaryConditions.SolarGeometry.Examples.ProjectedShadowLength.pipe ; head -c 1048576 < Buildings_8_Buildings.BoundaryConditions.SolarGeometry.Examples.ProjectedShadowLength.pipe >> ../files/Buildings_8_Buildings.BoundaryConditions.SolarGeometry.Examples.ProjectedShadowLength.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_BoundaryConditions_SolarGeometry_Examples_ProjectedShadowLength_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_BoundaryConditions_SolarGeometry_Examples_ProjectedShadowLength.fmu > Buildings_8_Buildings.BoundaryConditions.SolarGeometry.Examples.ProjectedShadowLength.pipe 2>&1)