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.0007832/0.0007834, allocations: 91.84 kB / 15.36 MB, free: 0.7344 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.00481/0.00481, allocations: 169.4 kB / 16.26 MB, free: 6.68 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.294/1.294, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001712/0.001712, allocations: 273.9 kB / 291.7 MB, free: 1.875 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9403/0.9403, allocations: 169.5 MB / 0.5004 GB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004153/0.0004153, allocations: 15.47 kB / 0.5986 GB, free: 28.11 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1408, allocations: 88.55 MB / 0.6851 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez): time 0.006492/0.1473, allocations: 5.944 MB / 0.6909 GB, free: 9.074 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4278/0.5751, allocations: 147.7 MB / 0.8352 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009331/0.5761, allocations: 23 kB / 0.8352 GB, free: 10.19 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005293/0.5766, allocations: 194 kB / 0.8354 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001725/0.5784, allocations: 0.5805 MB / 0.8359 GB, free: 9.699 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002392/0.5808, allocations: 1.201 MB / 0.8371 GB, free: 8.832 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002136/0.5829, allocations: 2.462 MB / 0.8395 GB, free: 7.383 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001655/0.5846, allocations: 1.512 MB / 0.841 GB, free: 6.434 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009214/0.5855, allocations: 0.7629 MB / 0.8417 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001019/0.5865, allocations: 0.9204 MB / 0.8426 GB, free: 5.387 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001613/0.5867, allocations: 65.19 kB / 0.8427 GB, free: 5.387 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000817/0.5875, allocations: 425.7 kB / 0.8431 GB, free: 5.215 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0003332/0.5879, allocations: 400.7 kB / 0.8435 GB, free: 4.926 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0007436/0.5886, allocations: 0.9491 MB / 0.8444 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002517/0.5911, allocations: 3.201 MB / 0.8475 GB, free: 1.785 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.5912, allocations: 0 / 0.8475 GB, free: 1.785 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.674e-06/0.5912, allocations: 0 / 0.8475 GB, free: 1.785 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.294e-05/0.5912, allocations: 0 / 0.8475 GB, free: 1.785 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: 578 * Number of variables: 578 Notification: Performance of Generate backend data structure: time 0.004719/0.5959, allocations: 2.276 MB / 0.8497 GB, free: 128 kB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/0.596, allocations: 11.78 kB / 0.8498 GB, free: 124 kB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01578/0.6118, allocations: 2.292 MB / 0.852 GB, free: 15.14 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002113/0.6139, allocations: 1.267 MB / 0.8532 GB, free: 14.11 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001244/0.614, allocations: 166.4 kB / 0.8534 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003928/0.6144, allocations: 222.6 kB / 0.8536 GB, free: 13.95 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008363/0.6228, allocations: 3.35 MB / 0.8569 GB, free: 11.97 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.525e-05/0.6229, allocations: 0 / 0.8569 GB, free: 11.97 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000276/0.6231, allocations: 95.56 kB / 0.857 GB, free: 11.9 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.113e-05/0.6232, allocations: 57.41 kB / 0.857 GB, free: 11.9 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01231/0.6355, allocations: 4.34 MB / 0.8613 GB, free: 9.859 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01501/0.6505, allocations: 7.381 MB / 0.8685 GB, free: 3.355 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009114/0.6597, allocations: 2.898 MB / 0.8713 GB, free: 480 kB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004522/0.6642, allocations: 1.505 MB / 0.8728 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007224/0.665, allocations: 0.4996 MB / 0.8733 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005124/0.6701, allocations: 1.862 MB / 0.8751 GB, free: 12.48 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=213): time 3.587e-06/0.6701, allocations: 0 / 0.8751 GB, free: 12.48 MB / 0.5919 GB Notification: Performance of matching and sorting (n=213): time 0.01492/0.685, allocations: 4.505 MB / 0.8795 GB, free: 7.949 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/0.6852, allocations: 209.9 kB / 0.8797 GB, free: 7.703 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001298/0.6865, allocations: 0.9447 MB / 0.8806 GB, free: 6.738 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0002287/0.6867, allocations: 69.7 kB / 0.8807 GB, free: 6.664 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005654/0.6873, allocations: 0.731 MB / 0.8814 GB, free: 5.922 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006006/0.6879, allocations: 0.6853 MB / 0.882 GB, free: 5.227 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000278/0.6882, allocations: 149.6 kB / 0.8822 GB, free: 5.074 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.65e-05/0.6883, allocations: 305.1 kB / 0.8825 GB, free: 4.773 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004215/0.6925, allocations: 1.265 MB / 0.8837 GB, free: 3.508 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004394/0.6969, allocations: 1.457 MB / 0.8851 GB, free: 2.027 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008387/0.7053, allocations: 2.63 MB / 0.8877 GB, free: 15.38 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.7053, allocations: 0 / 0.8877 GB, free: 15.38 MB / 0.6075 GB Notification: Performance of matching and sorting (n=241) (initialization): time 0.01004/0.7154, allocations: 3.143 MB / 0.8908 GB, free: 12.22 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.7154, allocations: 8.062 kB / 0.8908 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.7154, allocations: 4 kB / 0.8908 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006132/0.716, allocations: 92.72 kB / 0.8909 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003802/0.7199, allocations: 0.6046 MB / 0.8915 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002073/0.7219, allocations: 1.531 MB / 0.893 GB, free: 9.844 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003357/0.7253, allocations: 378.1 kB / 0.8933 GB, free: 9.473 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002646/0.7256, allocations: 107.9 kB / 0.8934 GB, free: 9.367 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.001019/0.7266, allocations: 436.8 kB / 0.8938 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003368/0.727, allocations: 154.1 kB / 0.894 GB, free: 8.781 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01159/0.7386, allocations: 3.751 MB / 0.8977 GB, free: 5.012 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.311e-05/0.7386, allocations: 27.94 kB / 0.8977 GB, free: 4.984 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.7386, allocations: 0 / 0.8977 GB, free: 4.984 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.132e-05/0.7386, allocations: 11.95 kB / 0.8977 GB, free: 4.973 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002983/0.7416, allocations: 2.455 MB / 0.9001 GB, free: 2.477 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.7417, allocations: 0 / 0.9001 GB, free: 2.477 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003558/0.7452, allocations: 0.5656 MB / 0.9006 GB, free: 1.91 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000544/0.7458, allocations: 92.75 kB / 0.9007 GB, free: 1.816 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002134/0.746, allocations: 75.91 kB / 0.9008 GB, free: 1.742 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001788/0.7478, allocations: 1.552 MB / 0.9023 GB, free: 56 kB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.7478, allocations: 4.062 kB / 0.9023 GB, free: 52 kB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01015/0.758, allocations: 3.238 MB / 0.9055 GB, free: 12.79 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009913/0.759, allocations: 0.5762 MB / 0.906 GB, free: 12.19 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003029/0.7593, allocations: 44 kB / 0.9061 GB, free: 12.15 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002959/0.7623, allocations: 295.6 kB / 0.9064 GB, free: 11.86 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003274/0.7626, allocations: 149.8 kB / 0.9065 GB, free: 11.71 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002153/0.7628, allocations: 103.8 kB / 0.9066 GB, free: 11.61 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.000941/0.7638, allocations: 0.6919 MB / 0.9073 GB, free: 10.91 MB / 0.6231 GB Notification: Performance of sort global known variables: time 3e-07/0.7638, allocations: 0 / 0.9073 GB, free: 10.91 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001669/0.7655, allocations: 0.6388 MB / 0.9079 GB, free: 10.27 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.001511/0.767, allocations: 0.6529 MB / 0.9085 GB, free: 9.789 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.009645/0.7766, allocations: 3.194 MB / 0.9117 GB, free: 6.574 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.7767, allocations: 0 / 0.9117 GB, free: 6.574 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.005015/0.7817, allocations: 1.775 MB / 0.9134 GB, free: 4.793 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001725/0.7834, allocations: 340.2 kB / 0.9137 GB, free: 4.469 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01022/0.7937, allocations: 5.255 MB / 0.9189 GB, free: 15.18 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009176/0.7946, allocations: 1.426 MB / 0.9202 GB, free: 13.71 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.003389/0.798, allocations: 0.5675 MB / 0.9208 GB, free: 13.14 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001019/0.799, allocations: 235.2 kB / 0.921 GB, free: 12.91 MB / 0.6387 GB Notification: Performance of SimCode: time 7.92e-07/0.799, allocations: 0 / 0.921 GB, free: 12.91 MB / 0.6387 GB Notification: Performance of Templates: time 0.04488/0.8439, allocations: 28.65 MB / 0.949 GB, free: 448 kB / 0.6544 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)