Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.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: translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005812/0.005812, allocations: 106.3 kB / 15.74 MB, free: 6.004 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.001468/0.001468, allocations: 196.5 kB / 16.68 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.287/1.287, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002001/0.002001, allocations: 293.8 kB / 290.8 MB, free: 14.42 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9282/0.9282, allocations: 169.3 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001661, allocations: 99.84 kB / 0.6814 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4117/0.4134, allocations: 86.98 MB / 0.7664 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle): time 0.004766/0.4182, allocations: 3.787 MB / 0.7701 GB, free: 116 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.004501/0.4227, allocations: 3.442 MB / 0.7734 GB, free: 12.65 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002478/0.4229, allocations: 15.88 kB / 0.7734 GB, free: 12.64 MB / 0.545 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/Photovoltaics/BaseClasses/PVModuleGeneral.mo:38:3-39:117:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/Photovoltaics/BaseClasses/OpticalModels/OpticalModelGeneral.mo:10:3-12:121:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). [/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.0004825/0.4234, allocations: 126.9 kB / 0.7735 GB, free: 12.51 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001025/0.4245, allocations: 465.3 kB / 0.774 GB, free: 12.05 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007002/0.4252, allocations: 374 kB / 0.7744 GB, free: 11.69 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0006895/0.4259, allocations: 0.7682 MB / 0.7751 GB, free: 10.92 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002713/0.4262, allocations: 193.9 kB / 0.7753 GB, free: 10.73 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003432/0.4265, allocations: 330.8 kB / 0.7756 GB, free: 10.41 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004569/0.427, allocations: 334.6 kB / 0.7759 GB, free: 10.08 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.000104/0.4271, allocations: 68 kB / 0.776 GB, free: 10.01 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000756/0.4279, allocations: 499.5 kB / 0.7765 GB, free: 9.523 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001553/0.428, allocations: 175.4 kB / 0.7766 GB, free: 9.352 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002533/0.4283, allocations: 330.2 kB / 0.7769 GB, free: 9.027 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001076/0.4294, allocations: 1.105 MB / 0.778 GB, free: 7.922 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.4294, allocations: 0 / 0.778 GB, free: 7.922 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.273e-06/0.4294, allocations: 0 / 0.778 GB, free: 7.922 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.236e-06/0.4294, allocations: 4 kB / 0.778 GB, free: 7.918 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.00174/0.4311, allocations: 1.019 MB / 0.779 GB, free: 6.848 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 2.955e-05/0.4312, allocations: 8.031 kB / 0.779 GB, free: 6.84 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003466/0.4347, allocations: 0.6244 MB / 0.7796 GB, free: 6.215 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001308/0.436, allocations: 0.6234 MB / 0.7802 GB, free: 5.555 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001196/0.4361, allocations: 122.7 kB / 0.7804 GB, free: 5.418 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.683e-05/0.4362, allocations: 51.94 kB / 0.7804 GB, free: 5.367 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001542/0.4378, allocations: 0.7151 MB / 0.7811 GB, free: 4.633 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.4378, allocations: 0 / 0.7811 GB, free: 4.633 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.686e-05/0.4378, allocations: 23.94 kB / 0.7811 GB, free: 4.609 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.4379, allocations: 15.98 kB / 0.7811 GB, free: 4.594 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002004/0.4399, allocations: 0.7767 MB / 0.7819 GB, free: 3.812 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003219/0.4431, allocations: 1.907 MB / 0.7838 GB, free: 1.848 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00284/0.446, allocations: 0.8659 MB / 0.7846 GB, free: 0.9727 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009941/0.447, allocations: 386.3 kB / 0.785 GB, free: 0.5938 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001901/0.4489, allocations: 1.769 MB / 0.7867 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001098/0.45, allocations: 458.8 kB / 0.7872 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=58): time 2.345e-06/0.45, allocations: 0 / 0.7872 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of matching and sorting (n=58): time 0.006549/0.4566, allocations: 1.671 MB / 0.7888 GB, free: 12.28 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.95e-05/0.4566, allocations: 115.4 kB / 0.7889 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004643/0.4571, allocations: 426.1 kB / 0.7893 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.243e-05/0.4572, allocations: 33.7 kB / 0.7893 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001829/0.4574, allocations: 280.6 kB / 0.7896 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001549/0.4575, allocations: 185.2 kB / 0.7898 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002156/0.4578, allocations: 130.2 kB / 0.7899 GB, free: 11.08 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.4579, allocations: 358.8 kB / 0.7902 GB, free: 10.72 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008869/0.4588, allocations: 325.1 kB / 0.7906 GB, free: 10.4 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009762/0.4598, allocations: 447.8 kB / 0.791 GB, free: 9.922 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001833/0.4616, allocations: 0.7284 MB / 0.7917 GB, free: 9.156 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/0.4616, allocations: 4 kB / 0.7917 GB, free: 9.152 MB / 0.5606 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00367/0.4653, allocations: 1.061 MB / 0.7927 GB, free: 8.078 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.4653, allocations: 8 kB / 0.7927 GB, free: 8.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.4654, allocations: 4 kB / 0.7927 GB, free: 8.066 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007143/0.4661, allocations: 144.9 kB / 0.7929 GB, free: 7.922 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008237/0.4669, allocations: 159.7 kB / 0.793 GB, free: 7.766 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004707/0.4716, allocations: 2.12 MB / 0.7951 GB, free: 5.504 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007409/0.4724, allocations: 102.1 kB / 0.7952 GB, free: 5.406 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.241e-05/0.4725, allocations: 31.97 kB / 0.7952 GB, free: 5.375 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 4 (weatherData.weatherData.conTim.tNext,$PRE.weatherData.weatherData.conTim.tNext,$whenCondition1,radiation.outsidePolarCircle) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 70 * 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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003164/0.4728, allocations: 220.4 kB / 0.7954 GB, free: 5.156 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.4729, allocations: 55.34 kB / 0.7955 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003386/0.4763, allocations: 1.089 MB / 0.7966 GB, free: 3.996 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.4763, allocations: 11.94 kB / 0.7966 GB, free: 3.984 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.345e-06/0.4763, allocations: 0 / 0.7966 GB, free: 3.984 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.4764, allocations: 7.984 kB / 0.7966 GB, free: 3.977 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003937/0.4803, allocations: 1.801 MB / 0.7983 GB, free: 2.117 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.4803, allocations: 0 / 0.7983 GB, free: 2.117 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007602/0.4811, allocations: 147.8 kB / 0.7985 GB, free: 1.973 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005817/0.4817, allocations: 120.7 kB / 0.7986 GB, free: 1.852 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.425e-05/0.4817, allocations: 19.92 kB / 0.7986 GB, free: 1.832 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003725/0.4855, allocations: 1.97 MB / 0.8005 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.4855, allocations: 0 / 0.8005 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002989/0.4885, allocations: 1.046 MB / 0.8016 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002601/0.4888, allocations: 212.1 kB / 0.8018 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.282e-05/0.4889, allocations: 16 kB / 0.8018 GB, free: 14.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006349/0.4895, allocations: 59.92 kB / 0.8018 GB, free: 14.34 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/0.4896, allocations: 52.72 kB / 0.8019 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.984e-05/0.4897, allocations: 23.98 kB / 0.8019 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003319/0.49, allocations: 291.1 kB / 0.8022 GB, free: 13.99 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.9e-07/0.49, allocations: 0 / 0.8022 GB, free: 13.99 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008219/0.4909, allocations: 243.6 kB / 0.8024 GB, free: 13.75 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 (69): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001261/0.4921, allocations: 0.4931 MB / 0.8029 GB, free: 13.39 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002278/0.4944, allocations: 0.8943 MB / 0.8038 GB, free: 12.49 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.4944, allocations: 0 / 0.8038 GB, free: 12.49 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001498/0.4959, allocations: 0.5959 MB / 0.8043 GB, free: 11.88 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005101/0.4965, allocations: 65.89 kB / 0.8044 GB, free: 11.81 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002346/0.4988, allocations: 1.276 MB / 0.8057 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004331/0.4993, allocations: 0.8811 MB / 0.8065 GB, free: 9.598 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0006018/0.4999, allocations: 148.5 kB / 0.8067 GB, free: 9.453 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000238/0.5001, allocations: 75.38 kB / 0.8067 GB, free: 9.379 MB / 0.5762 GB Notification: Performance of SimCode: time 5.21e-07/0.5001, allocations: 0 / 0.8067 GB, free: 9.379 MB / 0.5762 GB Notification: Performance of Templates: time 0.01679/0.5169, allocations: 10.63 MB / 0.8171 GB, free: 14.82 MB / 0.5919 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.sim & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe 2>&1)