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.001039/0.001039, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00107/0.00107, allocations: 192.7 kB / 16.25 MB, free: 6.621 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.301/1.301, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002085/0.002085, allocations: 290.5 kB / 290.4 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9632/0.9632, allocations: 169.2 MB / 0.4978 GB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001647/0.001647, allocations: 90.06 kB / 0.5947 GB, free: 28.12 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1516/0.1533, allocations: 86.98 MB / 0.6796 GB, free: 1.078 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez): time 0.008141/0.1614, allocations: 6.442 MB / 0.6859 GB, free: 10.62 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4403/0.6018, allocations: 149.4 MB / 0.8318 GB, free: 0.5508 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009109/0.6028, allocations: 24.03 kB / 0.8318 GB, free: 0.543 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005948/0.6034, allocations: 194.7 kB / 0.832 GB, free: 460 kB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001715/0.6051, allocations: 0.5932 MB / 0.8326 GB, free: 312 kB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002253/0.6074, allocations: 1.23 MB / 0.8338 GB, free: 252 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.00242/0.6098, allocations: 2.658 MB / 0.8364 GB, free: 15.89 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001762/0.6116, allocations: 1.602 MB / 0.8379 GB, free: 15.51 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001479/0.6131, allocations: 1.138 MB / 0.839 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001357/0.6144, allocations: 1.283 MB / 0.8403 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0004503/0.6149, allocations: 325.4 kB / 0.8406 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001356/0.6163, allocations: 0.6767 MB / 0.8413 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0006193/0.6169, allocations: 0.6973 MB / 0.8419 GB, free: 14.17 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001048/0.618, allocations: 1.278 MB / 0.8432 GB, free: 13.29 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003076/0.621, allocations: 3.487 MB / 0.8466 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.523e-06/0.6211, allocations: 0 / 0.8466 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.663e-06/0.6211, allocations: 0 / 0.8466 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.142e-05/0.6211, allocations: 0 / 0.8466 GB, free: 10.93 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.005687/0.6268, allocations: 2.777 MB / 0.8493 GB, free: 8.938 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.6269, allocations: 9.625 kB / 0.8493 GB, free: 8.938 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01594/0.6428, allocations: 2.112 MB / 0.8514 GB, free: 7.977 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002796/0.6456, allocations: 1.268 MB / 0.8526 GB, free: 6.953 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001647/0.6458, allocations: 167.8 kB / 0.8528 GB, free: 6.875 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006053/0.6464, allocations: 219.2 kB / 0.853 GB, free: 6.805 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009265/0.6557, allocations: 3.278 MB / 0.8562 GB, free: 4.832 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.43e-05/0.6558, allocations: 8.781 kB / 0.8562 GB, free: 4.824 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003643/0.6561, allocations: 92.31 kB / 0.8563 GB, free: 4.754 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-05/0.6562, allocations: 54.94 kB / 0.8563 GB, free: 4.754 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01219/0.6684, allocations: 4.201 MB / 0.8604 GB, free: 2.723 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01675/0.6852, allocations: 7.308 MB / 0.8676 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009364/0.6946, allocations: 2.887 MB / 0.8704 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004557/0.6992, allocations: 1.488 MB / 0.8718 GB, free: 11.28 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008771/0.7001, allocations: 0.5092 MB / 0.8723 GB, free: 10.76 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005491/0.7056, allocations: 1.844 MB / 0.8741 GB, free: 9.254 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=213): time 4.758e-06/0.7056, allocations: 0 / 0.8741 GB, free: 9.254 MB / 0.5919 GB Notification: Performance of matching and sorting (n=213): time 0.01622/0.7218, allocations: 4.458 MB / 0.8785 GB, free: 4.77 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/0.722, allocations: 209.9 kB / 0.8787 GB, free: 4.523 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001531/0.7235, allocations: 0.9447 MB / 0.8796 GB, free: 3.559 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0003685/0.7239, allocations: 65.69 kB / 0.8797 GB, free: 3.488 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006469/0.7246, allocations: 0.7427 MB / 0.8804 GB, free: 2.734 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008173/0.7254, allocations: 0.6756 MB / 0.8811 GB, free: 2.066 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001024/0.7264, allocations: 395.2 kB / 0.8814 GB, free: 1.672 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.826e-05/0.7265, allocations: 301.1 kB / 0.8817 GB, free: 1.375 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004241/0.7308, allocations: 1.26 MB / 0.883 GB, free: 120 kB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004486/0.7353, allocations: 1.434 MB / 0.8844 GB, free: 14.66 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00843/0.7437, allocations: 2.614 MB / 0.8869 GB, free: 12.03 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.074e-06/0.7438, allocations: 0 / 0.8869 GB, free: 12.03 MB / 0.6075 GB Notification: Performance of matching and sorting (n=241) (initialization): time 0.01024/0.754, allocations: 3.12 MB / 0.89 GB, free: 8.895 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.753e-05/0.7541, allocations: 4 kB / 0.89 GB, free: 8.891 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.382e-05/0.7541, allocations: 4 kB / 0.89 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000648/0.7547, allocations: 88.83 kB / 0.89 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003881/0.7586, allocations: 0.602 MB / 0.8906 GB, free: 8.195 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002239/0.7609, allocations: 1.637 MB / 0.8922 GB, free: 6.414 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003462/0.7644, allocations: 368.5 kB / 0.8926 GB, free: 6.055 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003793/0.7648, allocations: 99.89 kB / 0.8927 GB, free: 5.957 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.001259/0.766, allocations: 444.9 kB / 0.8931 GB, free: 5.516 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006186/0.7667, allocations: 150.1 kB / 0.8932 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01226/0.7789, allocations: 3.719 MB / 0.8969 GB, free: 1.637 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.83e-05/0.779, allocations: 20.11 kB / 0.8969 GB, free: 1.617 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.779, allocations: 7.938 kB / 0.8969 GB, free: 1.609 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.1e-05/0.7791, allocations: 15.95 kB / 0.8969 GB, free: 1.594 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003923/0.783, allocations: 2.452 MB / 0.8993 GB, free: 15.15 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.348e-05/0.783, allocations: 0 / 0.8993 GB, free: 15.15 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003698/0.7867, allocations: 0.5578 MB / 0.8999 GB, free: 14.59 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005445/0.7873, allocations: 84.66 kB / 0.8999 GB, free: 14.51 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000342/0.7877, allocations: 71.91 kB / 0.9 GB, free: 14.44 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002084/0.7898, allocations: 1.662 MB / 0.9016 GB, free: 12.63 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.7898, allocations: 0 / 0.9016 GB, free: 12.63 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01056/0.8003, allocations: 3.214 MB / 0.9048 GB, free: 9.395 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001054/0.8014, allocations: 0.5374 MB / 0.9053 GB, free: 8.832 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004971/0.8019, allocations: 59.77 kB / 0.9054 GB, free: 8.773 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003236/0.8052, allocations: 267.7 kB / 0.9056 GB, free: 8.512 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003592/0.8056, allocations: 149.8 kB / 0.9058 GB, free: 8.363 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002642/0.8058, allocations: 91.91 kB / 0.9058 GB, free: 8.273 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001209/0.8071, allocations: 0.6997 MB / 0.9065 GB, free: 7.566 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8071, allocations: 0.5625 kB / 0.9065 GB, free: 7.566 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.00209/0.8092, allocations: 0.6349 MB / 0.9071 GB, free: 6.93 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.001644/0.8108, allocations: 0.6636 MB / 0.9078 GB, free: 6.457 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01407/0.8249, allocations: 3.666 MB / 0.9114 GB, free: 2.781 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.8249, allocations: 4.188 kB / 0.9114 GB, free: 2.777 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.005387/0.8303, allocations: 1.761 MB / 0.9131 GB, free: 1.004 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002371/0.8327, allocations: 370.2 kB / 0.9135 GB, free: 0.668 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0113/0.8441, allocations: 5.19 MB / 0.9185 GB, free: 11.45 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001285/0.8454, allocations: 1.422 MB / 0.9199 GB, free: 9.988 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.004264/0.8497, allocations: 0.5791 MB / 0.9205 GB, free: 9.402 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00134/0.851, allocations: 239.2 kB / 0.9207 GB, free: 9.172 MB / 0.6387 GB Notification: Performance of SimCode: time 9.22e-07/0.8511, allocations: 4 kB / 0.9207 GB, free: 9.168 MB / 0.6387 GB Notification: Performance of Templates: time 0.04863/0.8997, allocations: 30.02 MB / 0.95 GB, free: 11.35 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)