Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.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.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez") translateModel(BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001031/0.001031, 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.001063/0.001063, allocations: 193.7 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.29/1.29, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002226/0.002226, allocations: 291.1 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.94/0.94, allocations: 169.3 MB / 0.4982 GB, free: 13.97 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001779/0.001779, allocations: 95.06 kB / 0.5952 GB, free: 27.73 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1409/0.1427, allocations: 86.98 MB / 0.6802 GB, free: 0.7188 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez): time 0.008562/0.1513, allocations: 6.457 MB / 0.6865 GB, free: 10.24 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4626/0.6139, allocations: 151.6 MB / 0.8345 GB, free: 0.9453 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001224/0.6152, allocations: 28.66 kB / 0.8346 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0008831/0.6161, allocations: 257.3 kB / 0.8348 GB, free: 0.7773 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.002415/0.6185, allocations: 0.6942 MB / 0.8355 GB, free: 0.5547 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002829/0.6214, allocations: 1.363 MB / 0.8368 GB, free: 476 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.003109/0.6245, allocations: 2.655 MB / 0.8394 GB, free: 120 kB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002305/0.6268, allocations: 1.593 MB / 0.841 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00186/0.6287, allocations: 1.14 MB / 0.8421 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001848/0.6305, allocations: 1.286 MB / 0.8433 GB, free: 14.52 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0005187/0.6311, allocations: 330.2 kB / 0.8437 GB, free: 14.52 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001253/0.6323, allocations: 0.6788 MB / 0.8443 GB, free: 14.36 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005202/0.6329, allocations: 0.6913 MB / 0.845 GB, free: 13.78 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001041/0.6339, allocations: 1.27 MB / 0.8462 GB, free: 12.8 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003182/0.6371, allocations: 3.479 MB / 0.8496 GB, free: 10.24 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 1.018e-05/0.6371, allocations: 4 kB / 0.8496 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.784e-06/0.6372, allocations: 0 / 0.8496 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.256e-05/0.6372, allocations: 0 / 0.8496 GB, free: 10.23 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: 578 * Number of variables: 578 Notification: Performance of Generate backend data structure: time 0.005647/0.6429, allocations: 2.786 MB / 0.8524 GB, free: 8.238 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.6429, allocations: 10.06 kB / 0.8524 GB, free: 8.238 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01586/0.6588, allocations: 2.104 MB / 0.8544 GB, free: 7.285 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00231/0.6611, allocations: 1.262 MB / 0.8557 GB, free: 6.266 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001204/0.6613, allocations: 167.6 kB / 0.8558 GB, free: 6.188 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003607/0.6616, allocations: 223 kB / 0.856 GB, free: 6.113 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008237/0.6699, allocations: 3.277 MB / 0.8592 GB, free: 4.141 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.51e-05/0.6699, allocations: 0 / 0.8592 GB, free: 4.141 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002645/0.6702, allocations: 96.64 kB / 0.8593 GB, free: 4.066 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.237e-05/0.6702, allocations: 55.41 kB / 0.8594 GB, free: 4.066 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01234/0.6826, allocations: 4.202 MB / 0.8635 GB, free: 2.035 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01596/0.6986, allocations: 7.313 MB / 0.8706 GB, free: 12.79 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00916/0.7078, allocations: 2.889 MB / 0.8734 GB, free: 11.34 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004628/0.7124, allocations: 1.482 MB / 0.8749 GB, free: 10.48 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008085/0.7133, allocations: 0.5094 MB / 0.8754 GB, free: 9.891 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005351/0.7186, allocations: 1.853 MB / 0.8772 GB, free: 8.023 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=213): time 3.587e-06/0.7187, allocations: 0 / 0.8772 GB, free: 8.023 MB / 0.5919 GB Notification: Performance of matching and sorting (n=213): time 0.01542/0.7341, allocations: 4.446 MB / 0.8815 GB, free: 3.551 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001168/0.7342, allocations: 213.8 kB / 0.8817 GB, free: 3.301 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001602/0.7358, allocations: 0.9447 MB / 0.8827 GB, free: 2.336 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0002202/0.7361, allocations: 73.64 kB / 0.8827 GB, free: 2.258 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006535/0.7367, allocations: 0.7388 MB / 0.8834 GB, free: 1.508 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006641/0.7374, allocations: 0.6761 MB / 0.8841 GB, free: 0.8398 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008178/0.7382, allocations: 391.2 kB / 0.8845 GB, free: 460 kB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.04e-05/0.7383, allocations: 305.1 kB / 0.8848 GB, free: 152 kB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004453/0.7428, allocations: 1.251 MB / 0.886 GB, free: 14.9 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0046/0.7474, allocations: 1.437 MB / 0.8874 GB, free: 13.44 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008825/0.7563, allocations: 2.602 MB / 0.8899 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.977e-06/0.7563, allocations: 7.938 kB / 0.8899 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of matching and sorting (n=241) (initialization): time 0.01052/0.7668, allocations: 3.116 MB / 0.893 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.512e-05/0.7669, allocations: 7.984 kB / 0.893 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.7669, allocations: 0 / 0.893 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006214/0.7675, allocations: 84.84 kB / 0.8931 GB, free: 7.586 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003934/0.7715, allocations: 0.607 MB / 0.8937 GB, free: 6.98 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002239/0.7737, allocations: 1.638 MB / 0.8953 GB, free: 5.199 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003485/0.7772, allocations: 375.8 kB / 0.8956 GB, free: 4.832 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003847/0.7776, allocations: 99.64 kB / 0.8957 GB, free: 4.738 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 26 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,HDifWal.incAng.decAng.tNext,$PRE.HDifWal.incAng.decAng.tNext,HDifFlo.incAng.decAng.tNext,$PRE.HDifFlo.incAng.decAng.tNext,HDifRoo.incAng.decAng.tNext,$PRE.HDifRoo.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 (239): * Single equations (assignments): 238 * 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.001216/0.7789, allocations: 444.7 kB / 0.8961 GB, free: 4.293 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005697/0.7794, allocations: 154.1 kB / 0.8963 GB, free: 4.141 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01175/0.7912, allocations: 3.722 MB / 0.8999 GB, free: 416 kB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.965e-05/0.7912, allocations: 24 kB / 0.9 GB, free: 392 kB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.7912, allocations: 0 / 0.9 GB, free: 392 kB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.041e-05/0.7913, allocations: 7.969 kB / 0.9 GB, free: 384 kB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003116/0.7944, allocations: 2.456 MB / 0.9024 GB, free: 13.93 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.325e-05/0.7944, allocations: 0 / 0.9024 GB, free: 13.93 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003498/0.7979, allocations: 0.5578 MB / 0.9029 GB, free: 13.37 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004643/0.7984, allocations: 84.72 kB / 0.903 GB, free: 13.29 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002079/0.7986, allocations: 71.91 kB / 0.9031 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001845/0.8005, allocations: 1.67 MB / 0.9047 GB, free: 11.4 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.8005, allocations: 3.938 kB / 0.9047 GB, free: 11.4 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01002/0.8105, allocations: 3.203 MB / 0.9078 GB, free: 8.168 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009446/0.8115, allocations: 0.5452 MB / 0.9083 GB, free: 7.602 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004059/0.8119, allocations: 55.78 kB / 0.9084 GB, free: 7.547 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002913/0.8148, allocations: 268.4 kB / 0.9087 GB, free: 7.285 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003141/0.8151, allocations: 153.7 kB / 0.9088 GB, free: 7.133 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000216/0.8154, allocations: 95.91 kB / 0.9089 GB, free: 7.039 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001025/0.8164, allocations: 0.6997 MB / 0.9096 GB, free: 6.332 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8164, allocations: 0 / 0.9096 GB, free: 6.332 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001725/0.8181, allocations: 0.6349 MB / 0.9102 GB, free: 5.695 MB / 0.6231 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,HDifRoo.incAng.decAng.tNext,HDifFlo.incAng.decAng.tNext,HDifWal.incAng.decAng.tNext) * Number of discrete states: 8 (weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,HDifRoo.incAng.decAng.tNext,HDifFlo.incAng.decAng.tNext,HDifWal.incAng.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (231): * Single equations (assignments): 222 * 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.001613/0.8198, allocations: 0.659 MB / 0.9108 GB, free: 5.227 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01437/0.8341, allocations: 3.674 MB / 0.9144 GB, free: 1.543 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.8342, allocations: 0 / 0.9144 GB, free: 1.543 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.005517/0.8397, allocations: 1.755 MB / 0.9161 GB, free: 15.77 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002009/0.8417, allocations: 362.9 kB / 0.9165 GB, free: 15.44 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009871/0.8516, allocations: 4.224 MB / 0.9206 GB, free: 11.19 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00104/0.8527, allocations: 1.426 MB / 0.922 GB, free: 9.727 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.00337/0.8561, allocations: 0.5752 MB / 0.9226 GB, free: 9.145 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001001/0.8571, allocations: 235.2 kB / 0.9228 GB, free: 8.914 MB / 0.6387 GB Notification: Performance of SimCode: time 6.71e-07/0.8571, allocations: 0 / 0.9228 GB, free: 8.914 MB / 0.6387 GB Notification: Performance of Templates: time 0.04983/0.9069, allocations: 30.21 MB / 0.9523 GB, free: 10.91 MB / 0.67 GB make -j1 -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.makefile (rm -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.pipe ; mkfifo BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.pipe >> ../files/BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.sim & ./BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.pipe 2>&1)