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.007764/0.007764, allocations: 104.7 kB / 15.74 MB, free: 6.055 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.001978/0.001978, allocations: 198.1 kB / 16.68 MB, free: 5.965 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.264/1.264, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.09/2.09, allocations: 390.3 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 63.91 kB / 0.9504 GB, free: 8.16 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6684/0.6697, allocations: 140.4 MB / 1.087 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.005584/0.6753, allocations: 5.325 MB / 1.093 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.1576/0.833, allocations: 151 MB / 1.24 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001133/0.8341, allocations: 23.06 kB / 1.24 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0008088/0.835, allocations: 199.8 kB / 1.24 GB, free: 15.52 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.002379/0.8374, allocations: 0.6299 MB / 1.241 GB, free: 15.04 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.002531/0.8399, allocations: 1.008 MB / 1.242 GB, free: 14.26 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.002122/0.8421, allocations: 1.806 MB / 1.244 GB, free: 13.13 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001622/0.8437, allocations: 1.161 MB / 1.245 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001144/0.8449, allocations: 0.7763 MB / 1.246 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001205/0.8461, allocations: 0.8401 MB / 1.246 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0004207/0.8465, allocations: 220 kB / 1.247 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001231/0.8478, allocations: 0.566 MB / 1.247 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.000489/0.8483, allocations: 494.5 kB / 1.248 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.001031/0.8493, allocations: 0.9134 MB / 1.248 GB, free: 8.875 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002936/0.8522, allocations: 2.582 MB / 1.251 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.8523, allocations: 4 kB / 1.251 GB, free: 6.281 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.545e-06/0.8523, allocations: 0 / 1.251 GB, free: 6.281 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.08e-05/0.8523, allocations: 3.938 kB / 1.251 GB, free: 6.277 MB / 0.9825 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.004179/0.8565, allocations: 2.008 MB / 1.253 GB, free: 4.215 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.8566, allocations: 12.03 kB / 1.253 GB, free: 4.203 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003362/0.8569, allocations: 232.2 kB / 1.253 GB, free: 3.965 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001137/0.8581, allocations: 250.6 kB / 1.253 GB, free: 3.719 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001631/0.8597, allocations: 0.9889 MB / 1.254 GB, free: 2.688 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001429/0.8599, allocations: 148.8 kB / 1.255 GB, free: 2.535 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001998/0.8601, allocations: 152 kB / 1.255 GB, free: 2.387 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002671/0.8628, allocations: 1.593 MB / 1.256 GB, free: 0.7383 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.213e-05/0.8628, allocations: 4 kB / 1.256 GB, free: 0.7344 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001344/0.8629, allocations: 63.94 kB / 1.256 GB, free: 0.6719 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.594e-05/0.863, allocations: 40 kB / 1.256 GB, free: 0.6328 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002561/0.8655, allocations: 1.592 MB / 1.258 GB, free: 15.04 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006511/0.8721, allocations: 4.186 MB / 1.262 GB, free: 10.77 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001917/0.874, allocations: 1.098 MB / 1.263 GB, free: 9.668 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007287/0.8748, allocations: 435.7 kB / 1.263 GB, free: 9.238 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.284e-05/0.8749, allocations: 41.08 kB / 1.264 GB, free: 9.199 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001136/0.876, allocations: 0.6957 MB / 1.264 GB, free: 8.48 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=111): time 3.586e-06/0.876, allocations: 0 / 1.264 GB, free: 8.48 MB / 0.9981 GB Notification: Performance of matching and sorting (n=111): time 0.003879/0.8799, allocations: 1.645 MB / 1.266 GB, free: 6.812 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.779e-05/0.88, allocations: 200.9 kB / 1.266 GB, free: 6.574 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001139/0.8812, allocations: 0.8416 MB / 1.267 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.000113/0.8813, allocations: 49.69 kB / 1.267 GB, free: 5.652 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004519/0.8818, allocations: 0.6168 MB / 1.267 GB, free: 5.027 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002835/0.882, allocations: 362.8 kB / 1.268 GB, free: 4.668 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003078/0.8824, allocations: 198.8 kB / 1.268 GB, free: 4.469 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.8825, allocations: 357.9 kB / 1.268 GB, free: 4.113 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007166/0.8832, allocations: 374.4 kB / 1.269 GB, free: 3.746 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008141/0.884, allocations: 0.5024 MB / 1.269 GB, free: 3.211 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00149/0.8855, allocations: 0.8555 MB / 1.27 GB, free: 2.344 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.8855, allocations: 0 / 1.27 GB, free: 2.344 MB / 0.9981 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.002497/0.888, allocations: 1.145 MB / 1.271 GB, free: 1.184 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.8881, allocations: 10.5 kB / 1.271 GB, free: 1.176 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.8881, allocations: 0 / 1.271 GB, free: 1.176 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005883/0.8887, allocations: 84.83 kB / 1.271 GB, free: 1.09 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009191/0.8896, allocations: 219.7 kB / 1.271 GB, free: 0.875 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001999/0.8916, allocations: 1.66 MB / 1.273 GB, free: 15.07 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009719/0.8926, allocations: 127 kB / 1.273 GB, free: 14.95 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001106/0.8927, allocations: 43.97 kB / 1.273 GB, free: 14.91 MB / 1.014 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.0006169/0.8934, allocations: 347.9 kB / 1.274 GB, free: 14.55 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002735/0.8936, allocations: 118.5 kB / 1.274 GB, free: 14.44 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003262/0.8969, allocations: 1.524 MB / 1.275 GB, free: 12.9 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.541e-05/0.8969, allocations: 12 kB / 1.275 GB, free: 12.89 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.897, allocations: 0 / 1.275 GB, free: 12.89 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.326e-05/0.897, allocations: 11.97 kB / 1.275 GB, free: 12.88 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001632/0.8986, allocations: 1.376 MB / 1.277 GB, free: 11.45 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.752e-06/0.8986, allocations: 0 / 1.277 GB, free: 11.45 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008131/0.8995, allocations: 199.7 kB / 1.277 GB, free: 11.25 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004501/0.8999, allocations: 68.8 kB / 1.277 GB, free: 11.18 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.163e-05/0.9, allocations: 39.91 kB / 1.277 GB, free: 11.14 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001832/0.9019, allocations: 1.677 MB / 1.278 GB, free: 9.32 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.9019, allocations: 8 kB / 1.278 GB, free: 9.312 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002601/0.9045, allocations: 1.281 MB / 1.28 GB, free: 8.012 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006139/0.9051, allocations: 359.2 kB / 1.28 GB, free: 7.641 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002023/0.9053, allocations: 27.94 kB / 1.28 GB, free: 7.613 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008973/0.9062, allocations: 79.91 kB / 1.28 GB, free: 7.535 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001992/0.9064, allocations: 109.1 kB / 1.28 GB, free: 7.426 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001091/0.9066, allocations: 51.95 kB / 1.28 GB, free: 7.375 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0008351/0.9074, allocations: 0.6176 MB / 1.281 GB, free: 6.746 MB / 1.014 GB Notification: Performance of sort global known variables: time 2e-07/0.9074, allocations: 0 / 1.281 GB, free: 6.746 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001062/0.9085, allocations: 442.5 kB / 1.281 GB, free: 6.312 MB / 1.014 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.0041/0.9126, allocations: 2.345 MB / 1.284 GB, free: 4.113 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002185/0.9148, allocations: 1.113 MB / 1.285 GB, free: 2.992 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.9148, allocations: 4.25 kB / 1.285 GB, free: 2.988 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.001161/0.916, allocations: 0.6893 MB / 1.285 GB, free: 2.285 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001357/0.9174, allocations: 327.7 kB / 1.286 GB, free: 1.988 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01507/0.9324, allocations: 8.841 MB / 1.294 GB, free: 8.984 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008084/0.9333, allocations: 1.22 MB / 1.296 GB, free: 7.73 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0009902/0.9343, allocations: 313.1 kB / 1.296 GB, free: 7.422 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008355/0.9351, allocations: 0.6124 MB / 1.296 GB, free: 6.809 MB / 1.029 GB Notification: Performance of SimCode: time 6.61e-07/0.9351, allocations: 4 kB / 1.296 GB, free: 6.805 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0561/0.9912, allocations: 28.76 MB / 1.325 GB, free: 10.39 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.54/13.53, allocations: 0 / 1.325 GB, free: 10.39 MB / 1.061 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