Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Climate.Examples.TiltedRadiation.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.Climate.Examples.TiltedRadiation,fileNamePrefix="BuildingSystems_BuildingSystems_Climate_Examples_TiltedRadiation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Climate.Examples.TiltedRadiation,fileNamePrefix="BuildingSystems_BuildingSystems_Climate_Examples_TiltedRadiation",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.004639/0.004639, allocations: 101.6 kB / 15.73 MB, free: 5.996 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.001183/0.001183, allocations: 190.3 kB / 16.67 MB, free: 5.93 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.181/1.181, 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.001934/0.001934, allocations: 282.1 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.8631/0.8631, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001595/0.001595, allocations: 112.1 kB / 0.6809 GB, free: 16 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1363, allocations: 86.96 MB / 0.7659 GB, free: 8.973 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Climate.Examples.TiltedRadiation): time 0.003555/0.1399, allocations: 3.068 MB / 0.7688 GB, free: 5.887 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00389/0.1438, allocations: 3.244 MB / 0.772 GB, free: 2.625 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000141/0.1439, allocations: 0 / 0.772 GB, free: 2.625 MB / 0.5606 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Climate/SolarRadiationTransformers/SolarRadiationTransformerGeneral.mo:25:3-27:116:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0002821/0.1442, allocations: 71.31 kB / 0.7721 GB, free: 2.555 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0008704/0.1451, allocations: 432 kB / 0.7725 GB, free: 2.133 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006791/0.1458, allocations: 388.9 kB / 0.7729 GB, free: 1.758 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0005517/0.1464, allocations: 0.7064 MB / 0.7736 GB, free: 1.051 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001885/0.1466, allocations: 122.5 kB / 0.7737 GB, free: 0.9297 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000273/0.1468, allocations: 287.1 kB / 0.7739 GB, free: 0.6484 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003893/0.1472, allocations: 322.8 kB / 0.7743 GB, free: 340 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.83e-05/0.1473, allocations: 64 kB / 0.7743 GB, free: 276 kB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2798/0.4271, allocations: 493.6 kB / 0.7748 GB, free: 8.926 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001979/0.4273, allocations: 171.4 kB / 0.775 GB, free: 8.926 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003046/0.4276, allocations: 289.3 kB / 0.7752 GB, free: 8.895 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001328/0.429, allocations: 0.9808 MB / 0.7762 GB, free: 8.773 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.429, allocations: 0 / 0.7762 GB, free: 8.773 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.563e-06/0.429, allocations: 3.062 kB / 0.7762 GB, free: 8.773 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.436e-06/0.429, allocations: 0 / 0.7762 GB, free: 8.773 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.001843/0.4309, allocations: 0.9309 MB / 0.7771 GB, free: 8.172 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.4309, allocations: 10.38 kB / 0.7771 GB, free: 8.172 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001002/0.431, allocations: 90.28 kB / 0.7772 GB, free: 8.133 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003139/0.4342, allocations: 0.5565 MB / 0.7777 GB, free: 8.105 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001191/0.4354, allocations: 0.5631 MB / 0.7783 GB, free: 7.855 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001425/0.4355, allocations: 200.5 kB / 0.7785 GB, free: 7.664 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.196e-05/0.4356, allocations: 45.91 kB / 0.7785 GB, free: 7.66 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001309/0.4369, allocations: 0.6805 MB / 0.7792 GB, free: 7.586 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.437, allocations: 0 / 0.7792 GB, free: 7.586 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.345e-05/0.437, allocations: 15.81 kB / 0.7792 GB, free: 7.586 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.437, allocations: 11.59 kB / 0.7792 GB, free: 7.586 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001701/0.4387, allocations: 0.7739 MB / 0.78 GB, free: 7.57 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002991/0.4417, allocations: 1.717 MB / 0.7816 GB, free: 7.203 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002903/0.4447, allocations: 1.029 MB / 0.7827 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007996/0.4455, allocations: 362.1 kB / 0.783 GB, free: 6.945 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001325/0.4468, allocations: 1.773 MB / 0.7847 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001174/0.448, allocations: 463.4 kB / 0.7852 GB, free: 20.79 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=66): time 2.605e-06/0.448, allocations: 0 / 0.7852 GB, free: 20.79 MB / 0.5762 GB Notification: Performance of matching and sorting (n=66): time 0.002545/0.4506, allocations: 1.065 MB / 0.7862 GB, free: 20.42 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.175e-05/0.4506, allocations: 116.2 kB / 0.7863 GB, free: 20.29 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000355/0.451, allocations: 361 kB / 0.7867 GB, free: 20.1 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.852e-05/0.4511, allocations: 36.58 kB / 0.7867 GB, free: 20.06 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.4512, allocations: 220.5 kB / 0.7869 GB, free: 19.88 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001368/0.4513, allocations: 233.2 kB / 0.7871 GB, free: 19.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002288/0.4516, allocations: 150.9 kB / 0.7873 GB, free: 19.63 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001096/0.4517, allocations: 350.4 kB / 0.7876 GB, free: 19.3 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007332/0.4524, allocations: 315.9 kB / 0.7879 GB, free: 19.2 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007851/0.4532, allocations: 443.2 kB / 0.7883 GB, free: 18.98 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001487/0.4547, allocations: 0.7269 MB / 0.789 GB, free: 18.64 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.716e-06/0.4547, allocations: 4 kB / 0.789 GB, free: 18.63 MB / 0.5762 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00185/0.4566, allocations: 0.8577 MB / 0.7899 GB, free: 18.33 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.4566, allocations: 5.75 kB / 0.7899 GB, free: 18.33 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.4566, allocations: 5.719 kB / 0.7899 GB, free: 18.32 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.4566, allocations: 9.594 kB / 0.7899 GB, free: 18.32 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000933/0.4576, allocations: 186.6 kB / 0.7901 GB, free: 18.32 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.4576, allocations: 11.52 kB / 0.7901 GB, free: 18.32 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000667/0.4583, allocations: 97.08 kB / 0.7902 GB, free: 18.27 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.059e-05/0.4584, allocations: 34.42 kB / 0.7902 GB, free: 18.27 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (weatherData.weatherData.conTim.tNext,$PRE.weatherData.weatherData.conTim.tNext,$whenCondition1,radiationFixed.outsidePolarCircle,radiationOneAxisTracked.outsidePolarCircle) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002717/0.4586, allocations: 204.7 kB / 0.7904 GB, free: 18.11 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.4588, allocations: 52.05 kB / 0.7905 GB, free: 18.08 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002463/0.4612, allocations: 1.121 MB / 0.7916 GB, free: 17.66 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/0.4612, allocations: 8.188 kB / 0.7916 GB, free: 17.66 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.4613, allocations: 0 / 0.7916 GB, free: 17.66 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.087e-05/0.4613, allocations: 12.84 kB / 0.7916 GB, free: 17.66 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002716/0.464, allocations: 1.766 MB / 0.7933 GB, free: 16.81 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.464, allocations: 0.75 kB / 0.7933 GB, free: 16.81 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008946/0.4649, allocations: 191 kB / 0.7935 GB, free: 16.81 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.4649, allocations: 7.094 kB / 0.7935 GB, free: 16.8 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.694e-05/0.465, allocations: 30.98 kB / 0.7935 GB, free: 16.79 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.275e-06/0.465, allocations: 2.125 kB / 0.7935 GB, free: 16.79 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.465, allocations: 2.359 kB / 0.7935 GB, free: 16.79 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001841/0.4669, allocations: 1.004 MB / 0.7945 GB, free: 16.34 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002942/0.4672, allocations: 221.7 kB / 0.7947 GB, free: 16.17 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.867e-05/0.4673, allocations: 21.09 kB / 0.7947 GB, free: 16.16 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006322/0.4679, allocations: 55.81 kB / 0.7948 GB, free: 16.14 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.468, allocations: 57.77 kB / 0.7948 GB, free: 16.14 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.886e-05/0.4681, allocations: 33.27 kB / 0.7949 GB, free: 16.13 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002697/0.4684, allocations: 253.5 kB / 0.7951 GB, free: 16 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6.01e-07/0.4684, allocations: 4 kB / 0.7951 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007935/0.4692, allocations: 237.5 kB / 0.7954 GB, free: 15.93 MB / 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: 2 ($whenCondition1,weatherData.weatherData.conTim.tNext) * Number of discrete states: 1 (weatherData.weatherData.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003294/0.4725, allocations: 1.958 MB / 0.7973 GB, free: 14.86 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002076/0.4746, allocations: 0.8094 MB / 0.7981 GB, free: 14.63 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.4746, allocations: 0.5 kB / 0.7981 GB, free: 14.63 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001128/0.4757, allocations: 478.3 kB / 0.7985 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005168/0.4763, allocations: 82.3 kB / 0.7986 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008486/0.4848, allocations: 5.129 MB / 0.8036 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003998/0.4852, allocations: 0.8701 MB / 0.8044 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0007054/0.4859, allocations: 177.6 kB / 0.8046 GB, free: 10.92 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004232/0.4863, allocations: 219.5 kB / 0.8048 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of SimCode: time 5.61e-07/0.4863, allocations: 0 / 0.8048 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03413/0.5205, allocations: 14.54 MB / 0.819 GB, free: 5.27 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.738/8.258, allocations: 5.938 kB / 0.819 GB, free: 5.266 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Climate.Examples.TiltedRadiation.pipe ; mkfifo BuildingSystems_BuildingSystems.Climate.Examples.TiltedRadiation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Climate.Examples.TiltedRadiation.pipe >> ../files/BuildingSystems_BuildingSystems.Climate.Examples.TiltedRadiation.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Climate.Examples.TiltedRadiation_res.csv --start-time 0 --stop-time 3.1536e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 12614.4 BuildingSystems_BuildingSystems_Climate_Examples_TiltedRadiation.fmu > BuildingSystems_BuildingSystems.Climate.Examples.TiltedRadiation.pipe 2>&1)