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.00116/0.00116, allocations: 108 kB / 15.61 MB, free: 152 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.001141/0.001141, allocations: 195 kB / 16.53 MB, free: 6.664 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.181/1.181, allocations: 222.9 MB / 240.2 MB, free: 4.414 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.059/2.059, allocations: 390.2 MB / 0.6647 GB, free: 452 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 63.91 kB / 0.8126 GB, free: 14.39 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4853/0.4867, allocations: 140.4 MB / 0.9497 GB, free: 9.07 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.004926/0.4916, allocations: 5.324 MB / 0.9549 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1346/0.6262, allocations: 151 MB / 1.102 GB, free: 4.961 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008674/0.6271, allocations: 23.94 kB / 1.102 GB, free: 4.938 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0006109/0.6277, allocations: 201.9 kB / 1.103 GB, free: 4.738 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.001889/0.6297, allocations: 0.642 MB / 1.103 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001975/0.6316, allocations: 0.9909 MB / 1.104 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001668/0.6333, allocations: 1.795 MB / 1.106 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001272/0.6346, allocations: 1.16 MB / 1.107 GB, free: 112 kB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008341/0.6354, allocations: 0.7748 MB / 1.108 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008427/0.6363, allocations: 0.8377 MB / 1.109 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.000298/0.6366, allocations: 220 kB / 1.109 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008397/0.6374, allocations: 0.5503 MB / 1.109 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0003814/0.6378, allocations: 498.5 kB / 1.11 GB, free: 13.24 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0007606/0.6386, allocations: 0.9134 MB / 1.111 GB, free: 12.32 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.00213/0.6407, allocations: 2.524 MB / 1.113 GB, free: 9.789 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.6408, allocations: 4 kB / 1.113 GB, free: 9.785 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.092e-06/0.6408, allocations: 0 / 1.113 GB, free: 9.785 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 4.515e-05/0.6408, allocations: 0 / 1.113 GB, free: 9.785 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.003393/0.6442, allocations: 2.002 MB / 1.115 GB, free: 7.727 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.6443, allocations: 12.03 kB / 1.115 GB, free: 7.715 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002214/0.6445, allocations: 232.2 kB / 1.115 GB, free: 7.477 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009283/0.6454, allocations: 254.5 kB / 1.116 GB, free: 7.227 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001156/0.6466, allocations: 0.9655 MB / 1.117 GB, free: 6.219 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000118/0.6467, allocations: 152.8 kB / 1.117 GB, free: 6.062 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001627/0.6469, allocations: 155.9 kB / 1.117 GB, free: 5.91 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002191/0.6491, allocations: 1.596 MB / 1.118 GB, free: 4.258 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.314e-05/0.6491, allocations: 0 / 1.118 GB, free: 4.258 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001304/0.6492, allocations: 64 kB / 1.118 GB, free: 4.195 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.426e-05/0.6493, allocations: 36 kB / 1.119 GB, free: 4.16 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002278/0.6516, allocations: 1.592 MB / 1.12 GB, free: 2.562 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005443/0.657, allocations: 4.252 MB / 1.124 GB, free: 14.23 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001716/0.6587, allocations: 1.094 MB / 1.125 GB, free: 13.13 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006451/0.6594, allocations: 431.7 kB / 1.126 GB, free: 12.71 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 8.833e-05/0.6595, allocations: 53 kB / 1.126 GB, free: 12.66 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001053/0.6606, allocations: 0.6881 MB / 1.126 GB, free: 11.95 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=111): time 2.124e-06/0.6606, allocations: 4 kB / 1.126 GB, free: 11.94 MB / 0.8887 GB Notification: Performance of matching and sorting (n=111): time 0.003441/0.664, allocations: 1.645 MB / 1.128 GB, free: 10.27 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.722e-05/0.6641, allocations: 200.9 kB / 1.128 GB, free: 10.04 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009034/0.665, allocations: 0.8417 MB / 1.129 GB, free: 9.168 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 7.343e-05/0.6651, allocations: 49.7 kB / 1.129 GB, free: 9.113 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003937/0.6655, allocations: 0.6206 MB / 1.13 GB, free: 8.484 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.000239/0.6657, allocations: 358.8 kB / 1.13 GB, free: 8.129 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000276/0.666, allocations: 206.8 kB / 1.13 GB, free: 7.922 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.6661, allocations: 345.9 kB / 1.131 GB, free: 7.578 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00065/0.6668, allocations: 378.4 kB / 1.131 GB, free: 7.207 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007608/0.6676, allocations: 0.4985 MB / 1.131 GB, free: 6.676 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001397/0.669, allocations: 0.8594 MB / 1.132 GB, free: 5.805 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.669, allocations: 0 / 1.132 GB, free: 5.805 MB / 0.8887 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.002228/0.6712, allocations: 1.149 MB / 1.133 GB, free: 4.641 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.6712, allocations: 4 kB / 1.133 GB, free: 4.637 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.6713, allocations: 128 / 1.133 GB, free: 4.637 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005341/0.6718, allocations: 84.78 kB / 1.133 GB, free: 4.551 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008308/0.6726, allocations: 223.6 kB / 1.134 GB, free: 4.332 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00187/0.6745, allocations: 1.646 MB / 1.135 GB, free: 2.543 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007543/0.6753, allocations: 126.9 kB / 1.135 GB, free: 2.418 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.684e-05/0.6754, allocations: 47.95 kB / 1.135 GB, free: 2.371 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.0004392/0.6758, allocations: 347.9 kB / 1.136 GB, free: 2.02 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001828/0.676, allocations: 118.5 kB / 1.136 GB, free: 1.902 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002979/0.679, allocations: 1.532 MB / 1.137 GB, free: 364 kB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.679, allocations: 12 kB / 1.137 GB, free: 352 kB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.679, allocations: 0 / 1.137 GB, free: 352 kB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.679, allocations: 3.984 kB / 1.137 GB, free: 348 kB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001291/0.6803, allocations: 1.38 MB / 1.139 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.98e-06/0.6803, allocations: 3.984 kB / 1.139 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007285/0.6811, allocations: 195.7 kB / 1.139 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004323/0.6815, allocations: 80.72 kB / 1.139 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.738e-05/0.6816, allocations: 31.97 kB / 1.139 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00167/0.6833, allocations: 1.678 MB / 1.141 GB, free: 12.78 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.6833, allocations: 4.031 kB / 1.141 GB, free: 12.78 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002264/0.6856, allocations: 1.285 MB / 1.142 GB, free: 11.47 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000404/0.686, allocations: 359.3 kB / 1.142 GB, free: 11.1 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001483/0.6861, allocations: 35.84 kB / 1.142 GB, free: 11.06 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007842/0.6869, allocations: 85.94 kB / 1.142 GB, free: 10.98 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001638/0.6871, allocations: 97.17 kB / 1.143 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.217e-05/0.6872, allocations: 47.97 kB / 1.143 GB, free: 10.84 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0007049/0.6879, allocations: 0.6215 MB / 1.143 GB, free: 10.21 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.2e-07/0.6879, allocations: 0 / 1.143 GB, free: 10.21 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0008076/0.6887, allocations: 434.5 kB / 1.144 GB, free: 9.781 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.003655/0.6924, allocations: 2.354 MB / 1.146 GB, free: 7.574 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.002978/0.6954, allocations: 1.398 MB / 1.147 GB, free: 6.168 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.6954, allocations: 0 / 1.147 GB, free: 6.168 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001057/0.6964, allocations: 0.6816 MB / 1.148 GB, free: 5.473 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001114/0.6976, allocations: 326.9 kB / 1.148 GB, free: 5.172 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01316/0.7107, allocations: 9.353 MB / 1.157 GB, free: 11.5 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007106/0.7114, allocations: 1.228 MB / 1.159 GB, free: 10.24 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0008633/0.7123, allocations: 313.1 kB / 1.159 GB, free: 9.93 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007489/0.7131, allocations: 0.6086 MB / 1.159 GB, free: 9.32 MB / 0.92 GB Notification: Performance of SimCode: time 3.11e-07/0.7131, allocations: 0 / 1.159 GB, free: 9.32 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1035/0.8166, allocations: 28.4 MB / 1.187 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.96, allocations: 8.062 kB / 1.187 GB, free: 13.28 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)