Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.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.BaseClasses.Examples.AltitudeAngle,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_BaseClasses_Examples_AltitudeAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_BaseClasses_Examples_AltitudeAngle",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.001213/0.001213, allocations: 108 kB / 15.6 MB, free: 132 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.001596/0.001596, allocations: 192.3 kB / 16.53 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.549/1.549, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002888/0.002888, allocations: 279 kB / 290.7 MB, free: 2.016 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9571/0.9571, allocations: 169.3 MB / 0.4982 GB, free: 13.89 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003403/0.003404, allocations: 97 kB / 0.5953 GB, free: 27.9 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1763/0.1798, allocations: 86.98 MB / 0.6803 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle): time 0.006899/0.1867, allocations: 4.419 MB / 0.6846 GB, free: 12.16 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4499/0.6366, allocations: 150.6 MB / 0.8317 GB, free: 0.8203 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006965/0.6374, allocations: 19.81 kB / 0.8317 GB, free: 0.8125 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0004599/0.6378, allocations: 177.9 kB / 0.8318 GB, free: 0.7188 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001383/0.6392, allocations: 0.5137 MB / 0.8323 GB, free: 0.5703 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001627/0.6409, allocations: 0.8378 MB / 0.8332 GB, free: 0.5039 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001099/0.642, allocations: 1.346 MB / 0.8345 GB, free: 296 kB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007406/0.6427, allocations: 0.6185 MB / 0.8351 GB, free: 164 kB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005554/0.6433, allocations: 497.8 kB / 0.8356 GB, free: 64 kB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005677/0.6439, allocations: 0.5186 MB / 0.8361 GB, free: 15.94 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001813/0.6441, allocations: 118.3 kB / 0.8362 GB, free: 15.94 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009435/0.645, allocations: 465.9 kB / 0.8366 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000254/0.6453, allocations: 308 kB / 0.8369 GB, free: 15.88 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004732/0.6458, allocations: 0.558 MB / 0.8375 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001756/0.6475, allocations: 1.594 MB / 0.839 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.6476, allocations: 5.344 kB / 0.839 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.553e-06/0.6476, allocations: 4 kB / 0.839 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.493e-05/0.6476, allocations: 0 / 0.839 GB, free: 15.46 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 219 * Number of variables: 219 Notification: Performance of Generate backend data structure: time 0.002603/0.6502, allocations: 1.458 MB / 0.8405 GB, free: 14.66 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.6502, allocations: 9.719 kB / 0.8405 GB, free: 14.66 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001539/0.6504, allocations: 137 kB / 0.8406 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000995/0.6514, allocations: 187.9 kB / 0.8408 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009632/0.6524, allocations: 0.7577 MB / 0.8415 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.978e-05/0.6524, allocations: 65.25 kB / 0.8416 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001057/0.6526, allocations: 87.86 kB / 0.8417 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/0.6541, allocations: 0.9448 MB / 0.8426 GB, free: 13.81 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.836e-05/0.6541, allocations: 3.938 kB / 0.8426 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.474e-05/0.6542, allocations: 38.22 kB / 0.8426 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.929e-05/0.6542, allocations: 26 kB / 0.8426 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001643/0.6558, allocations: 1.129 MB / 0.8437 GB, free: 13.51 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003729/0.6596, allocations: 2.553 MB / 0.8462 GB, free: 11.7 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001478/0.6611, allocations: 0.9054 MB / 0.8471 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005238/0.6616, allocations: 316.6 kB / 0.8474 GB, free: 11.04 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 7.313e-05/0.6617, allocations: 32.61 kB / 0.8475 GB, free: 11.03 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009022/0.6626, allocations: 0.519 MB / 0.848 GB, free: 10.7 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=85): time 2.705e-06/0.6626, allocations: 0 / 0.848 GB, free: 10.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=85): time 0.003171/0.6658, allocations: 1.254 MB / 0.8492 GB, free: 10.02 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.706e-05/0.6659, allocations: 192.9 kB / 0.8494 GB, free: 9.797 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007433/0.6667, allocations: 0.6444 MB / 0.85 GB, free: 9.426 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.785e-05/0.6667, allocations: 42.89 kB / 0.85 GB, free: 9.383 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002933/0.667, allocations: 400.1 kB / 0.8504 GB, free: 9.031 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000208/0.6673, allocations: 280.5 kB / 0.8507 GB, free: 8.797 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002186/0.6675, allocations: 160.2 kB / 0.8508 GB, free: 8.699 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001605/0.6676, allocations: 384.3 kB / 0.8512 GB, free: 8.332 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004777/0.6681, allocations: 255.8 kB / 0.8515 GB, free: 8.207 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005962/0.6687, allocations: 373.8 kB / 0.8518 GB, free: 7.969 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00105/0.6698, allocations: 0.6171 MB / 0.8524 GB, free: 7.633 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.6698, allocations: 3.844 kB / 0.8524 GB, free: 7.633 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001825/0.6716, allocations: 0.8328 MB / 0.8532 GB, free: 7.203 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.6717, allocations: 9.344 kB / 0.8532 GB, free: 7.203 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.6717, allocations: 3.938 kB / 0.8532 GB, free: 7.199 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005765/0.6723, allocations: 87.53 kB / 0.8533 GB, free: 7.152 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006363/0.6729, allocations: 160.5 kB / 0.8535 GB, free: 7.113 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001994/0.6749, allocations: 1.624 MB / 0.8551 GB, free: 5.516 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007385/0.6757, allocations: 100.4 kB / 0.8552 GB, free: 5.449 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.053e-05/0.6757, allocations: 34.39 kB / 0.8552 GB, free: 5.438 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 18 (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,decAng.tNext,$PRE.decAng.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 92 * 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.0004521/0.6762, allocations: 271.3 kB / 0.8555 GB, free: 5.223 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001683/0.6764, allocations: 85.59 kB / 0.8555 GB, free: 5.18 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002379/0.6788, allocations: 1.137 MB / 0.8566 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.6788, allocations: 14.34 kB / 0.8567 GB, free: 4.543 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.6788, allocations: 0 / 0.8567 GB, free: 4.543 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.6788, allocations: 7.984 kB / 0.8567 GB, free: 4.535 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003318/0.6821, allocations: 2.041 MB / 0.8587 GB, free: 3.223 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.6822, allocations: 0 / 0.8587 GB, free: 3.223 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005821/0.6827, allocations: 156 kB / 0.8588 GB, free: 3.188 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004472/0.6832, allocations: 73.84 kB / 0.8589 GB, free: 3.148 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.142e-05/0.6833, allocations: 27.88 kB / 0.8589 GB, free: 3.129 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001861/0.6851, allocations: 1.661 MB / 0.8605 GB, free: 1.512 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.6852, allocations: 0 / 0.8605 GB, free: 1.512 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002114/0.6873, allocations: 1.055 MB / 0.8616 GB, free: 0.9219 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004371/0.6877, allocations: 277.7 kB / 0.8618 GB, free: 0.6797 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001827/0.6879, allocations: 24.77 kB / 0.8618 GB, free: 0.6602 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007462/0.6887, allocations: 64.78 kB / 0.8619 GB, free: 0.6289 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001627/0.6888, allocations: 82.59 kB / 0.862 GB, free: 0.5859 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.555e-05/0.6889, allocations: 37.08 kB / 0.862 GB, free: 0.5742 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0006143/0.6896, allocations: 464.2 kB / 0.8625 GB, free: 320 kB / 0.5762 GB Notification: Performance of sort global known variables: time 2.81e-07/0.6896, allocations: 0 / 0.8625 GB, free: 320 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0009545/0.6905, allocations: 318.8 kB / 0.8628 GB, free: 224 kB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 6 (decAng.tNext,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 (100): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.003562/0.6941, allocations: 2.113 MB / 0.8648 GB, free: 14.91 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002437/0.6965, allocations: 1.059 MB / 0.8659 GB, free: 14.44 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.6966, allocations: 3.25 kB / 0.8659 GB, free: 14.44 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0009428/0.6975, allocations: 0.5435 MB / 0.8664 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001272/0.6988, allocations: 304.8 kB / 0.8667 GB, free: 13.98 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01141/0.7102, allocations: 6.738 MB / 0.8733 GB, free: 9.695 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006199/0.7109, allocations: 1.037 MB / 0.8743 GB, free: 8.848 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0008956/0.7118, allocations: 269.7 kB / 0.8745 GB, free: 8.715 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005584/0.7123, allocations: 398 kB / 0.8749 GB, free: 8.398 MB / 0.5919 GB Notification: Performance of SimCode: time 5.31e-07/0.7124, allocations: 0 / 0.8749 GB, free: 8.398 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05055/0.7629, allocations: 21.67 MB / 0.8961 GB, free: 3.355 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.91, allocations: 27.34 kB / 0.8961 GB, free: 3.332 MB / 0.6075 GB (rm -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.pipe ; mkfifo BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.pipe >> ../files/BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_BaseClasses_Examples_AltitudeAngle.fmu > BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.pipe 2>&1)