Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.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.SolarGeometry.Examples.ZenithAngle,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_Examples_ZenithAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_Examples_ZenithAngle",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.004564/0.004568, allocations: 97.62 kB / 15.73 MB, free: 6.496 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.001069/0.001069, allocations: 195.2 kB / 16.67 MB, free: 6.391 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.27/1.27, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002085/0.002085, allocations: 286.5 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9198/0.9198, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001759/0.001759, allocations: 100.2 kB / 0.6809 GB, free: 36 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1302, allocations: 86.97 MB / 0.7659 GB, free: 8.984 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle): time 0.005179/0.1354, allocations: 4.316 MB / 0.7701 GB, free: 4.648 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.4067/0.5421, allocations: 150.6 MB / 0.9171 GB, free: 8.113 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006373/0.5428, allocations: 19.88 kB / 0.9171 GB, free: 8.094 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.000466/0.5433, allocations: 164.5 kB / 0.9173 GB, free: 7.934 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.001272/0.5446, allocations: 0.5115 MB / 0.9178 GB, free: 7.438 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.001584/0.5462, allocations: 0.8233 MB / 0.9186 GB, free: 6.641 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.001108/0.5473, allocations: 1.317 MB / 0.9199 GB, free: 5.316 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007291/0.5481, allocations: 0.6178 MB / 0.9205 GB, free: 4.676 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004942/0.5486, allocations: 478.3 kB / 0.9209 GB, free: 4.207 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004758/0.5491, allocations: 0.49 MB / 0.9214 GB, free: 3.715 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0001346/0.5492, allocations: 120 kB / 0.9215 GB, free: 3.598 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006906/0.5499, allocations: 483.6 kB / 0.922 GB, free: 3.125 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0002336/0.5501, allocations: 299.1 kB / 0.9223 GB, free: 2.832 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.0004081/0.5506, allocations: 0.5363 MB / 0.9228 GB, free: 2.293 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.001542/0.5521, allocations: 1.628 MB / 0.9244 GB, free: 0.668 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.5521, allocations: 0 / 0.9244 GB, free: 0.668 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.223e-06/0.5521, allocations: 4 kB / 0.9244 GB, free: 0.6641 MB / 0.67 GB Notification: Performance of Transformations before backend: time 1.957e-05/0.5522, allocations: 0 / 0.9244 GB, free: 0.6641 MB / 0.67 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 211 * Number of variables: 211 Notification: Performance of Generate backend data structure: time 0.002147/0.5543, allocations: 1.448 MB / 0.9258 GB, free: 15.17 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.5544, allocations: 12.03 kB / 0.9258 GB, free: 15.16 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001383/0.5545, allocations: 136.2 kB / 0.9259 GB, free: 15.02 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000803/0.5553, allocations: 192.1 kB / 0.9261 GB, free: 14.83 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009813/0.5563, allocations: 0.7663 MB / 0.9269 GB, free: 14.02 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.117e-05/0.5564, allocations: 66 kB / 0.9269 GB, free: 13.96 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.732e-05/0.5565, allocations: 76 kB / 0.927 GB, free: 13.89 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001345/0.5578, allocations: 0.924 MB / 0.9279 GB, free: 12.92 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.5578, allocations: 0 / 0.9279 GB, free: 12.92 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.872e-05/0.5579, allocations: 36 kB / 0.9279 GB, free: 12.89 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.683e-05/0.5579, allocations: 20 kB / 0.928 GB, free: 12.87 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001595/0.5595, allocations: 1.112 MB / 0.9291 GB, free: 11.75 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00342/0.563, allocations: 2.498 MB / 0.9315 GB, free: 9.188 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001413/0.5644, allocations: 0.8954 MB / 0.9324 GB, free: 8.266 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004926/0.5649, allocations: 307.5 kB / 0.9327 GB, free: 7.965 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 6.983e-05/0.565, allocations: 32.61 kB / 0.9327 GB, free: 7.934 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007501/0.5657, allocations: 494.6 kB / 0.9332 GB, free: 7.434 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=79): time 2.204e-06/0.5658, allocations: 0 / 0.9332 GB, free: 7.434 MB / 0.6856 GB Notification: Performance of matching and sorting (n=79): time 0.002793/0.5686, allocations: 1.198 MB / 0.9343 GB, free: 6.207 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/0.5687, allocations: 192.6 kB / 0.9345 GB, free: 5.977 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006907/0.5694, allocations: 0.6215 MB / 0.9351 GB, free: 5.352 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 7.09e-05/0.5695, allocations: 45.7 kB / 0.9352 GB, free: 5.301 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002668/0.5697, allocations: 401 kB / 0.9356 GB, free: 4.902 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001779/0.5699, allocations: 265.8 kB / 0.9358 GB, free: 4.641 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001991/0.5701, allocations: 146.2 kB / 0.9359 GB, free: 4.492 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001425/0.5703, allocations: 386.7 kB / 0.9363 GB, free: 4.105 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000456/0.5707, allocations: 249.9 kB / 0.9366 GB, free: 3.863 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005383/0.5713, allocations: 362.5 kB / 0.9369 GB, free: 3.484 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009687/0.5723, allocations: 0.5838 MB / 0.9375 GB, free: 2.887 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.5723, allocations: 0 / 0.9375 GB, free: 2.887 MB / 0.6856 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001688/0.574, allocations: 0.7985 MB / 0.9382 GB, free: 2.082 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.488e-05/0.574, allocations: 10.19 kB / 0.9383 GB, free: 2.074 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.574, allocations: 0 / 0.9383 GB, free: 2.074 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005231/0.5745, allocations: 80.88 kB / 0.9383 GB, free: 1.992 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005507/0.5751, allocations: 151.7 kB / 0.9385 GB, free: 1.844 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001845/0.577, allocations: 1.648 MB / 0.9401 GB, free: 52 kB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005907/0.5776, allocations: 83.53 kB / 0.9402 GB, free: 15.97 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.59e-05/0.5776, allocations: 33.28 kB / 0.9402 GB, free: 15.94 MB / 0.7012 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 15 (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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 84 * 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.0003607/0.578, allocations: 277.6 kB / 0.9405 GB, free: 15.66 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000139/0.5782, allocations: 79.48 kB / 0.9405 GB, free: 15.58 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002122/0.5803, allocations: 1.067 MB / 0.9416 GB, free: 14.49 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.818e-06/0.5803, allocations: 12 kB / 0.9416 GB, free: 14.48 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.5803, allocations: 3.938 kB / 0.9416 GB, free: 14.48 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/0.5803, allocations: 3.984 kB / 0.9416 GB, free: 14.47 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002826/0.5832, allocations: 1.958 MB / 0.9435 GB, free: 12.45 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.5832, allocations: 0 / 0.9435 GB, free: 12.45 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004999/0.5837, allocations: 139.8 kB / 0.9436 GB, free: 12.32 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004002/0.5841, allocations: 72.8 kB / 0.9437 GB, free: 12.24 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.157e-05/0.5842, allocations: 27.97 kB / 0.9437 GB, free: 12.21 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001697/0.5859, allocations: 1.678 MB / 0.9454 GB, free: 10.39 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.5859, allocations: 0 / 0.9454 GB, free: 10.39 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001787/0.5877, allocations: 1.002 MB / 0.9464 GB, free: 9.375 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003185/0.588, allocations: 272.2 kB / 0.9466 GB, free: 9.09 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001126/0.5881, allocations: 20 kB / 0.9466 GB, free: 9.07 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006013/0.5887, allocations: 68.89 kB / 0.9467 GB, free: 9.004 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/0.5889, allocations: 76.66 kB / 0.9468 GB, free: 8.934 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.577e-05/0.5889, allocations: 31.97 kB / 0.9468 GB, free: 8.902 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0005099/0.5895, allocations: 459 kB / 0.9472 GB, free: 8.457 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5895, allocations: 0 / 0.9472 GB, free: 8.457 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.0007319/0.5902, allocations: 307.1 kB / 0.9475 GB, free: 8.156 MB / 0.7012 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.00319/0.5934, allocations: 2.038 MB / 0.9495 GB, free: 6.277 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.001512/0.5949, allocations: 0.7975 MB / 0.9503 GB, free: 5.469 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.5949, allocations: 0 / 0.9503 GB, free: 5.469 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.0008575/0.5958, allocations: 0.5275 MB / 0.9508 GB, free: 4.926 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001143/0.597, allocations: 298.4 kB / 0.9511 GB, free: 4.668 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01006/0.607, allocations: 6.315 MB / 0.9573 GB, free: 14.23 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005551/0.6076, allocations: 1.015 MB / 0.9583 GB, free: 13.19 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.000736/0.6084, allocations: 270.4 kB / 0.9585 GB, free: 12.92 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004891/0.6089, allocations: 371.3 kB / 0.9589 GB, free: 12.56 MB / 0.7169 GB Notification: Performance of SimCode: time 6.21e-07/0.6089, allocations: 0 / 0.9589 GB, free: 12.56 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04331/0.6522, allocations: 21.16 MB / 0.9795 GB, free: 7.742 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.99, allocations: 0 / 0.9795 GB, free: 7.742 MB / 0.7325 GB (rm -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe ; mkfifo BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe >> ../files/BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle_res.csv --start-time 100000 --stop-time 300000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 80 BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_Examples_ZenithAngle.fmu > BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe 2>&1)