Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.SolarIrradiation.Examples.DirectTiltedSurface,fileNamePrefix="Buildings_9_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,fileNamePrefix="Buildings_9_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface",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.0012/0.0012, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001182/0.001182, allocations: 190.9 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.195/1.195, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.079/2.079, allocations: 390.2 MB / 0.6644 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 67.89 kB / 0.8122 GB, free: 14.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.48/0.4812, allocations: 140.4 MB / 0.9492 GB, free: 9.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.004831/0.4861, allocations: 5.318 MB / 0.9544 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1306/0.6167, allocations: 148.7 MB / 1.1 GB, free: 7.438 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009506/0.6177, allocations: 19.94 kB / 1.1 GB, free: 7.418 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0006878/0.6184, allocations: 154.7 kB / 1.1 GB, free: 7.266 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.001944/0.6204, allocations: 0.5585 MB / 1.1 GB, free: 6.707 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002039/0.6224, allocations: 0.9101 MB / 1.101 GB, free: 5.805 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001787/0.6242, allocations: 1.791 MB / 1.103 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001315/0.6256, allocations: 1.164 MB / 1.104 GB, free: 2.801 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008781/0.6265, allocations: 0.7784 MB / 1.105 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009131/0.6274, allocations: 0.8362 MB / 1.106 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0003432/0.6277, allocations: 220 kB / 1.106 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009016/0.6286, allocations: 0.5504 MB / 1.106 GB, free: 424 kB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0004285/0.6291, allocations: 498.5 kB / 1.107 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0007778/0.6299, allocations: 0.9212 MB / 1.108 GB, free: 15 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001958/0.6318, allocations: 2.528 MB / 1.11 GB, free: 12.46 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.6318, allocations: 0 / 1.11 GB, free: 12.46 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.152e-06/0.6318, allocations: 0 / 1.11 GB, free: 12.46 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.38e-05/0.6319, allocations: 0 / 1.11 GB, free: 12.46 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: 398 * Number of variables: 398 Notification: Performance of Generate backend data structure: time 0.002997/0.6349, allocations: 1.999 MB / 1.112 GB, free: 10.41 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.6349, allocations: 8.031 kB / 1.112 GB, free: 10.4 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002173/0.6351, allocations: 232.2 kB / 1.113 GB, free: 10.16 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008867/0.636, allocations: 258.5 kB / 1.113 GB, free: 9.91 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001077/0.6371, allocations: 0.9694 MB / 1.114 GB, free: 8.898 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001131/0.6372, allocations: 144.8 kB / 1.114 GB, free: 8.75 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001554/0.6374, allocations: 163.9 kB / 1.114 GB, free: 8.59 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002226/0.6396, allocations: 1.585 MB / 1.116 GB, free: 6.949 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.712e-05/0.6397, allocations: 0 / 1.116 GB, free: 6.949 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001199/0.6398, allocations: 64 kB / 1.116 GB, free: 6.887 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.528e-05/0.6398, allocations: 40 kB / 1.116 GB, free: 6.848 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002173/0.642, allocations: 1.592 MB / 1.117 GB, free: 5.25 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005245/0.6473, allocations: 4.256 MB / 1.121 GB, free: 0.918 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001636/0.6489, allocations: 1.094 MB / 1.122 GB, free: 15.82 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006333/0.6495, allocations: 427.6 kB / 1.123 GB, free: 15.39 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 8.336e-05/0.6496, allocations: 49.06 kB / 1.123 GB, free: 15.34 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001066/0.6507, allocations: 0.6959 MB / 1.124 GB, free: 14.63 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=111): time 2.244e-06/0.6507, allocations: 3.938 kB / 1.124 GB, free: 14.62 MB / 0.8887 GB Notification: Performance of matching and sorting (n=111): time 0.00333/0.6541, allocations: 1.653 MB / 1.125 GB, free: 12.95 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.721e-05/0.6541, allocations: 192.9 kB / 1.125 GB, free: 12.71 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008341/0.655, allocations: 0.8417 MB / 1.126 GB, free: 11.85 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 7.764e-05/0.6551, allocations: 49.7 kB / 1.126 GB, free: 11.79 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003433/0.6554, allocations: 0.6206 MB / 1.127 GB, free: 11.16 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.000222/0.6556, allocations: 358.8 kB / 1.127 GB, free: 10.81 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002694/0.6559, allocations: 206.8 kB / 1.127 GB, free: 10.6 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 9.43e-05/0.656, allocations: 341.9 kB / 1.128 GB, free: 10.26 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006135/0.6566, allocations: 382.4 kB / 1.128 GB, free: 9.887 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000722/0.6574, allocations: 0.4985 MB / 1.129 GB, free: 9.355 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001302/0.6587, allocations: 0.8632 MB / 1.129 GB, free: 8.48 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.6587, allocations: 0 / 1.129 GB, free: 8.48 MB / 0.8887 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.002122/0.6608, allocations: 1.149 MB / 1.131 GB, free: 7.32 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.6608, allocations: 10 kB / 1.131 GB, free: 7.312 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.6609, allocations: 4 kB / 1.131 GB, free: 7.309 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005496/0.6614, allocations: 84.78 kB / 1.131 GB, free: 7.223 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008437/0.6623, allocations: 219.7 kB / 1.131 GB, free: 7.008 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001735/0.664, allocations: 1.652 MB / 1.132 GB, free: 5.215 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007514/0.6648, allocations: 126.9 kB / 1.133 GB, free: 5.09 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.54e-05/0.6649, allocations: 47.95 kB / 1.133 GB, free: 5.043 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 24 (HDirWal.incAng.decAng.tNext,$PRE.HDirWal.incAng.decAng.tNext,HDirFlo.incAng.decAng.tNext,$PRE.HDirFlo.incAng.decAng.tNext,HDirRoo.incAng.decAng.tNext,$PRE.HDirRoo.incAng.decAng.tNext,weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (127): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0004233/0.6653, allocations: 352.6 kB / 1.133 GB, free: 4.691 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001779/0.6655, allocations: 118.6 kB / 1.133 GB, free: 4.574 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002862/0.6683, allocations: 1.516 MB / 1.135 GB, free: 3.039 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.6684, allocations: 16 kB / 1.135 GB, free: 3.023 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.6684, allocations: 4 kB / 1.135 GB, free: 3.02 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.948e-06/0.6684, allocations: 7.922 kB / 1.135 GB, free: 3.012 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001205/0.6696, allocations: 1.388 MB / 1.136 GB, free: 1.574 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.6696, allocations: 0 / 1.136 GB, free: 1.574 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007313/0.6703, allocations: 183.8 kB / 1.136 GB, free: 1.395 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003974/0.6707, allocations: 84.72 kB / 1.136 GB, free: 1.309 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.034e-05/0.6708, allocations: 35.97 kB / 1.136 GB, free: 1.273 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001573/0.6724, allocations: 1.677 MB / 1.138 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.6724, allocations: 3.984 kB / 1.138 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002176/0.6746, allocations: 1.281 MB / 1.139 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003673/0.675, allocations: 359.2 kB / 1.139 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001508/0.6751, allocations: 35.84 kB / 1.139 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007677/0.6759, allocations: 83.91 kB / 1.14 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000159/0.6761, allocations: 93.17 kB / 1.14 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.555e-05/0.6762, allocations: 51.97 kB / 1.14 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0006328/0.6768, allocations: 0.6176 MB / 1.14 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.81e-07/0.6768, allocations: 0 / 1.14 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0007735/0.6776, allocations: 450.5 kB / 1.141 GB, free: 12.45 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,HDirRoo.incAng.decAng.tNext,HDirFlo.incAng.decAng.tNext,HDirWal.incAng.decAng.tNext) * Number of discrete states: 8 (weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,HDirRoo.incAng.decAng.tNext,HDirFlo.incAng.decAng.tNext,HDirWal.incAng.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003489/0.6811, allocations: 2.336 MB / 1.143 GB, free: 10.26 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.002887/0.684, allocations: 1.394 MB / 1.144 GB, free: 8.852 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.684, allocations: 0 / 1.144 GB, free: 8.852 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001011/0.685, allocations: 0.6817 MB / 1.145 GB, free: 8.156 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.6861, allocations: 324.5 kB / 1.145 GB, free: 7.859 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01405/0.7002, allocations: 10.03 MB / 1.155 GB, free: 13.52 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006206/0.7008, allocations: 1.228 MB / 1.156 GB, free: 12.26 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0008922/0.7017, allocations: 317 kB / 1.157 GB, free: 11.95 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007059/0.7024, allocations: 0.6008 MB / 1.157 GB, free: 11.34 MB / 0.92 GB Notification: Performance of SimCode: time 4.4e-07/0.7024, allocations: 4 kB / 1.157 GB, free: 11.34 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.407/2.109, allocations: 28.16 MB / 1.185 GB, free: 15.56 MB / 0.9512 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002494/2.109, allocations: 310 kB / 1.185 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.325/4.435, allocations: 0 / 1.185 GB, free: 15.18 MB / 0.9512 GB (rm -f Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; mkfifo Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; head -c 1048576 < Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe >> ../files/Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface_res.mat --tempDir=temp_Buildings_9_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface_fmu --startTime=1.82304e+07 --stopTime=1.83168e+07 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface.fmu > Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe 2>&1)