Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,fileNamePrefix="BuildingSystems_BuildingSystems_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.004906/0.004906, allocations: 101.3 kB / 15.73 MB, free: 6.012 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.001142/0.001142, allocations: 194.4 kB / 16.67 MB, free: 5.949 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.326/1.326, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002125/0.002125, allocations: 279.2 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9493/0.9493, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001832/0.001832, allocations: 95.84 kB / 0.6809 GB, free: 24 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.1634, allocations: 86.97 MB / 0.7659 GB, free: 8.969 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.006443/0.1699, allocations: 5.342 MB / 0.7711 GB, free: 3.605 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.5111/0.681, allocations: 151 MB / 0.9185 GB, free: 6.652 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009727/0.682, allocations: 19.88 kB / 0.9185 GB, free: 6.633 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.0008345/0.6828, allocations: 213.9 kB / 0.9187 GB, free: 6.422 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.002382/0.6853, allocations: 0.6311 MB / 0.9194 GB, free: 5.812 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.002407/0.6877, allocations: 1.005 MB / 0.9203 GB, free: 4.832 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.002193/0.6899, allocations: 1.803 MB / 0.9221 GB, free: 3.023 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001728/0.6916, allocations: 1.167 MB / 0.9232 GB, free: 1.816 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001184/0.6928, allocations: 0.7863 MB / 0.924 GB, free: 1.027 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001146/0.694, allocations: 0.8439 MB / 0.9248 GB, free: 184 kB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.000508/0.6945, allocations: 220 kB / 0.925 GB, free: 15.96 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001251/0.6958, allocations: 0.5621 MB / 0.9256 GB, free: 15.4 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.000622/0.6964, allocations: 494.5 kB / 0.9261 GB, free: 14.92 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.001134/0.6976, allocations: 0.9173 MB / 0.927 GB, free: 14 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.002983/0.7006, allocations: 2.589 MB / 0.9295 GB, free: 11.41 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.7006, allocations: 0 / 0.9295 GB, free: 11.41 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.764e-06/0.7006, allocations: 0 / 0.9295 GB, free: 11.41 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 7.198e-05/0.7007, allocations: 4 kB / 0.9295 GB, free: 11.4 MB / 0.6856 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.004076/0.7048, allocations: 1.994 MB / 0.9314 GB, free: 9.355 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.7048, allocations: 16.02 kB / 0.9314 GB, free: 9.34 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002557/0.7051, allocations: 224.2 kB / 0.9317 GB, free: 9.109 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00102/0.7061, allocations: 256.6 kB / 0.9319 GB, free: 8.859 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001586/0.7077, allocations: 0.997 MB / 0.9329 GB, free: 7.816 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001452/0.7079, allocations: 140.8 kB / 0.933 GB, free: 7.672 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002033/0.7081, allocations: 156 kB / 0.9332 GB, free: 7.52 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002845/0.711, allocations: 1.59 MB / 0.9347 GB, free: 5.875 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.961e-05/0.711, allocations: 0 / 0.9347 GB, free: 5.875 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000139/0.7112, allocations: 63.94 kB / 0.9348 GB, free: 5.812 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.968e-05/0.7112, allocations: 44 kB / 0.9348 GB, free: 5.77 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002473/0.7137, allocations: 1.596 MB / 0.9364 GB, free: 4.168 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006593/0.7203, allocations: 4.179 MB / 0.9405 GB, free: 15.9 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001818/0.7221, allocations: 1.093 MB / 0.9415 GB, free: 14.81 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006737/0.7228, allocations: 427.7 kB / 0.9419 GB, free: 14.39 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 8.339e-05/0.7229, allocations: 44.84 kB / 0.942 GB, free: 14.35 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001106/0.724, allocations: 0.7031 MB / 0.9427 GB, free: 13.63 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=111): time 2.765e-06/0.7241, allocations: 0 / 0.9427 GB, free: 13.63 MB / 0.7012 GB Notification: Performance of matching and sorting (n=111): time 0.003684/0.7278, allocations: 1.649 MB / 0.9443 GB, free: 11.96 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.794e-05/0.7279, allocations: 196.9 kB / 0.9445 GB, free: 11.72 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001072/0.729, allocations: 0.8378 MB / 0.9453 GB, free: 10.86 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001284/0.7291, allocations: 53.7 kB / 0.9453 GB, free: 10.8 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.000474/0.7296, allocations: 0.6206 MB / 0.9459 GB, free: 10.17 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002958/0.7299, allocations: 351 kB / 0.9463 GB, free: 9.82 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002925/0.7302, allocations: 206.7 kB / 0.9465 GB, free: 9.613 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.7303, allocations: 349.9 kB / 0.9468 GB, free: 9.266 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006606/0.731, allocations: 370.4 kB / 0.9472 GB, free: 8.902 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007703/0.7317, allocations: 0.5102 MB / 0.9477 GB, free: 8.367 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0014/0.7332, allocations: 0.8555 MB / 0.9485 GB, free: 7.5 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.7332, allocations: 0 / 0.9485 GB, free: 7.5 MB / 0.7012 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.002425/0.7356, allocations: 1.153 MB / 0.9496 GB, free: 6.332 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.7356, allocations: 10.34 kB / 0.9496 GB, free: 6.324 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.7357, allocations: 0 / 0.9496 GB, free: 6.324 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006164/0.7363, allocations: 87.64 kB / 0.9497 GB, free: 6.238 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009512/0.7373, allocations: 219.7 kB / 0.9499 GB, free: 6.023 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00218/0.7394, allocations: 1.653 MB / 0.9515 GB, free: 4.23 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001043/0.7405, allocations: 127 kB / 0.9517 GB, free: 4.105 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001089/0.7406, allocations: 43.97 kB / 0.9517 GB, free: 4.062 MB / 0.7012 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.0006827/0.7413, allocations: 349.9 kB / 0.952 GB, free: 3.715 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002552/0.7416, allocations: 114.8 kB / 0.9521 GB, free: 3.602 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003159/0.7447, allocations: 1.529 MB / 0.9536 GB, free: 2.066 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-05/0.7448, allocations: 12 kB / 0.9536 GB, free: 2.055 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.7448, allocations: 0 / 0.9536 GB, free: 2.055 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.7448, allocations: 7.984 kB / 0.9537 GB, free: 2.047 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00167/0.7465, allocations: 1.381 MB / 0.955 GB, free: 0.6133 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.7465, allocations: 4 kB / 0.955 GB, free: 0.6094 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007944/0.7473, allocations: 195.7 kB / 0.9552 GB, free: 428 kB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004457/0.7478, allocations: 72.77 kB / 0.9553 GB, free: 352 kB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000102/0.7479, allocations: 35.97 kB / 0.9553 GB, free: 316 kB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001922/0.7498, allocations: 1.67 MB / 0.9569 GB, free: 14.49 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.7498, allocations: 0 / 0.9569 GB, free: 14.49 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002757/0.7526, allocations: 1.285 MB / 0.9582 GB, free: 13.18 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005477/0.7532, allocations: 363.2 kB / 0.9585 GB, free: 12.8 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001781/0.7534, allocations: 31.84 kB / 0.9586 GB, free: 12.77 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008115/0.7542, allocations: 79.91 kB / 0.9586 GB, free: 12.7 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001937/0.7544, allocations: 101.2 kB / 0.9587 GB, free: 12.59 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.348e-05/0.7545, allocations: 47.97 kB / 0.9588 GB, free: 12.55 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0008439/0.7553, allocations: 0.6234 MB / 0.9594 GB, free: 11.91 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7553, allocations: 0 / 0.9594 GB, free: 11.91 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.001111/0.7565, allocations: 438.6 kB / 0.9598 GB, free: 11.48 MB / 0.7169 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.003888/0.7604, allocations: 2.356 MB / 0.9621 GB, free: 9.281 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.002147/0.7625, allocations: 1.121 MB / 0.9632 GB, free: 8.152 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.7626, allocations: 0 / 0.9632 GB, free: 8.152 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001116/0.7637, allocations: 0.6819 MB / 0.9639 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001295/0.765, allocations: 325 kB / 0.9642 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01423/0.7792, allocations: 8.859 MB / 0.9728 GB, free: 14.15 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007365/0.78, allocations: 1.224 MB / 0.974 GB, free: 12.89 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.000998/0.781, allocations: 317 kB / 0.9743 GB, free: 12.58 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007996/0.7818, allocations: 0.6047 MB / 0.9749 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of SimCode: time 7.61e-07/0.7818, allocations: 4 kB / 0.9749 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07103/0.8529, allocations: 29.36 MB / 1.004 GB, free: 14.99 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.72/13.57, allocations: 10.86 kB / 1.004 GB, free: 14.98 MB / 0.7637 GB (rm -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; mkfifo BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe >> ../files/BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface_fmu --startTime=1.82304e+07 --stopTime=1.83168e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface.fmu > BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe 2>&1)