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: 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.001143/0.001143, allocations: 196.8 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.19/1.19, allocations: 222.9 MB / 240.2 MB, free: 4.383 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.076/2.076, allocations: 390.2 MB / 0.6647 GB, free: 432 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 71.88 kB / 0.8126 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4741/0.4753, allocations: 140.4 MB / 0.9497 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.005047/0.4804, allocations: 5.323 MB / 0.9549 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1317/0.6121, allocations: 151 MB / 1.102 GB, free: 4.957 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008637/0.613, allocations: 23.88 kB / 1.102 GB, free: 4.934 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0006424/0.6136, allocations: 201.9 kB / 1.103 GB, free: 4.734 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.001931/0.6156, allocations: 0.6387 MB / 1.103 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001995/0.6176, allocations: 0.9908 MB / 1.104 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001605/0.6192, allocations: 1.795 MB / 1.106 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001286/0.6205, allocations: 1.164 MB / 1.107 GB, free: 108 kB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008697/0.6214, allocations: 0.7709 MB / 1.108 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008806/0.6223, allocations: 0.8439 MB / 1.109 GB, free: 14.48 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0003164/0.6226, allocations: 220 kB / 1.109 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008582/0.6235, allocations: 0.5503 MB / 1.109 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0003714/0.6239, allocations: 494.5 kB / 1.11 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.000781/0.6247, allocations: 0.9095 MB / 1.111 GB, free: 12.32 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.00212/0.6268, allocations: 2.524 MB / 1.113 GB, free: 9.789 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.6268, allocations: 4 kB / 1.113 GB, free: 9.785 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.082e-06/0.6268, allocations: 0 / 1.113 GB, free: 9.785 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 4.776e-05/0.6269, allocations: 4 kB / 1.113 GB, free: 9.781 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.003458/0.6303, allocations: 2.01 MB / 1.115 GB, free: 7.715 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.6304, allocations: 8.031 kB / 1.115 GB, free: 7.707 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000242/0.6306, allocations: 224.2 kB / 1.115 GB, free: 7.477 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009657/0.6316, allocations: 262.5 kB / 1.116 GB, free: 7.219 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001153/0.6328, allocations: 0.9655 MB / 1.117 GB, free: 6.211 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001196/0.6329, allocations: 148.8 kB / 1.117 GB, free: 6.059 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001553/0.633, allocations: 148 kB / 1.117 GB, free: 5.914 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002242/0.6353, allocations: 1.596 MB / 1.118 GB, free: 4.262 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.403e-05/0.6353, allocations: 0 / 1.118 GB, free: 4.262 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001229/0.6355, allocations: 64 kB / 1.118 GB, free: 4.199 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.558e-05/0.6355, allocations: 40 kB / 1.119 GB, free: 4.16 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002304/0.6378, allocations: 1.596 MB / 1.12 GB, free: 2.559 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00557/0.6434, allocations: 4.248 MB / 1.124 GB, free: 14.23 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001717/0.6451, allocations: 1.094 MB / 1.125 GB, free: 13.13 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006482/0.6458, allocations: 435.6 kB / 1.126 GB, free: 12.7 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 7.774e-05/0.6459, allocations: 45.08 kB / 1.126 GB, free: 12.66 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00105/0.6469, allocations: 0.6959 MB / 1.126 GB, free: 11.94 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=111): time 2.184e-06/0.6469, allocations: 0 / 1.126 GB, free: 11.94 MB / 0.8887 GB Notification: Performance of matching and sorting (n=111): time 0.00345/0.6504, allocations: 1.645 MB / 1.128 GB, free: 10.27 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.864e-05/0.6505, allocations: 200.9 kB / 1.128 GB, free: 10.04 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009065/0.6514, allocations: 0.8378 MB / 1.129 GB, free: 9.172 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 7.589e-05/0.6515, allocations: 49.7 kB / 1.129 GB, free: 9.117 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003628/0.6518, allocations: 0.6206 MB / 1.13 GB, free: 8.488 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002362/0.6521, allocations: 366.8 kB / 1.13 GB, free: 8.125 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002804/0.6524, allocations: 206.8 kB / 1.13 GB, free: 7.918 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 9.739e-05/0.6525, allocations: 345.9 kB / 1.131 GB, free: 7.574 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006485/0.6531, allocations: 374.4 kB / 1.131 GB, free: 7.207 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007543/0.6539, allocations: 0.4985 MB / 1.131 GB, free: 6.676 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001385/0.6553, allocations: 0.8594 MB / 1.132 GB, free: 5.805 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.6553, allocations: 0 / 1.132 GB, free: 5.805 MB / 0.8887 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.002246/0.6576, allocations: 1.149 MB / 1.133 GB, free: 4.641 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.6576, allocations: 5.875 kB / 1.133 GB, free: 4.637 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.6576, allocations: 4 kB / 1.133 GB, free: 4.633 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005571/0.6582, allocations: 84.83 kB / 1.133 GB, free: 4.547 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008574/0.659, allocations: 215.7 kB / 1.134 GB, free: 4.336 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001842/0.6609, allocations: 1.654 MB / 1.135 GB, free: 2.539 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008144/0.6617, allocations: 135.1 kB / 1.135 GB, free: 2.406 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-05/0.6618, allocations: 43.97 kB / 1.135 GB, free: 2.363 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.0004492/0.6622, allocations: 347.9 kB / 1.136 GB, free: 2.012 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000187/0.6624, allocations: 110.6 kB / 1.136 GB, free: 1.902 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002965/0.6654, allocations: 1.532 MB / 1.137 GB, free: 364 kB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.248e-06/0.6654, allocations: 12 kB / 1.137 GB, free: 352 kB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.6654, allocations: 0 / 1.137 GB, free: 352 kB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.301e-05/0.6654, allocations: 11.97 kB / 1.137 GB, free: 340 kB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001316/0.6668, allocations: 1.372 MB / 1.139 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.6668, allocations: 0 / 1.139 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007786/0.6676, allocations: 203.6 kB / 1.139 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004184/0.668, allocations: 72.8 kB / 1.139 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.419e-05/0.6681, allocations: 31.97 kB / 1.139 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001641/0.6697, allocations: 1.685 MB / 1.141 GB, free: 12.78 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.6697, allocations: 0 / 1.141 GB, free: 12.78 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002309/0.6721, allocations: 1.281 MB / 1.142 GB, free: 11.47 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004096/0.6725, allocations: 359.2 kB / 1.142 GB, free: 11.1 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001614/0.6726, allocations: 35.84 kB / 1.142 GB, free: 11.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008154/0.6735, allocations: 83.84 kB / 1.142 GB, free: 10.98 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001708/0.6736, allocations: 101.2 kB / 1.142 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.033e-05/0.6737, allocations: 51.95 kB / 1.143 GB, free: 10.84 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0007139/0.6745, allocations: 0.6176 MB / 1.143 GB, free: 10.21 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.11e-07/0.6745, allocations: 0 / 1.143 GB, free: 10.21 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0008877/0.6754, allocations: 438.5 kB / 1.144 GB, free: 9.777 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.003638/0.679, allocations: 2.36 MB / 1.146 GB, free: 7.566 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.003057/0.6821, allocations: 1.39 MB / 1.147 GB, free: 6.168 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.6821, allocations: 256 / 1.147 GB, free: 6.168 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.6831, allocations: 0.6855 MB / 1.148 GB, free: 5.469 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001125/0.6843, allocations: 322.8 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.01313/0.6974, allocations: 9.358 MB / 1.157 GB, free: 11.5 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006668/0.6981, allocations: 1.22 MB / 1.159 GB, free: 10.24 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0009067/0.699, allocations: 321 kB / 1.159 GB, free: 9.926 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000792/0.6998, allocations: 0.6125 MB / 1.159 GB, free: 9.312 MB / 0.92 GB Notification: Performance of SimCode: time 3.11e-07/0.6998, allocations: 0 / 1.159 GB, free: 9.312 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04997/0.7498, allocations: 28.41 MB / 1.187 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/11.11, allocations: 0 / 1.187 GB, free: 13.26 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface_res.csv --start-time 1.82304e+07 --stop-time 1.83168e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_9_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface.fmu > Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches