Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation.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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|winRad.HDif|winRad.HDir|winRad.QTraDif_flow|winRad.QTraDir_flow|winRad.QAbsExtSha_flow|winRad.QAbsIntSha_flow|winRad.QAbsGlaUns_flow.1.|winRad.QAbsGlaUns_flow.2.|winRad.QAbsGlaSha_flow.1.|winRad.QAbsGlaSha_flow.2.",fileNamePrefix="Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation") translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|winRad.HDif|winRad.HDir|winRad.QTraDif_flow|winRad.QTraDir_flow|winRad.QAbsExtSha_flow|winRad.QAbsIntSha_flow|winRad.QAbsGlaUns_flow.1.|winRad.QAbsGlaUns_flow.2.|winRad.QAbsGlaSha_flow.1.|winRad.QAbsGlaSha_flow.2.",fileNamePrefix="Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007952/0.0007955, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0008165/0.0008165, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.463/2.463, allocations: 390.9 MB / 0.666 GB, free: 2.488 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005828/0.0005829, allocations: 12 kB / 0.8154 GB, free: 13.65 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8501/0.8508, allocations: 142.4 MB / 0.9544 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation): time 0.008352/0.8592, allocations: 6.093 MB / 0.9604 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1721/1.031, allocations: 141.6 MB / 1.099 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002274/1.034, allocations: 31.81 kB / 1.099 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.005575/1.039, allocations: 1.619 MB / 1.1 GB, free: 9.797 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.003668/1.043, allocations: 0.9906 MB / 1.101 GB, free: 8.805 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003523/1.046, allocations: 1.06 MB / 1.102 GB, free: 7.754 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.005723/1.052, allocations: 4.732 MB / 1.107 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001842/1.054, allocations: 0.9216 MB / 1.108 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003032/1.057, allocations: 1.35 MB / 1.109 GB, free: 0.7031 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002407/1.06, allocations: 1.222 MB / 1.11 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0004324/1.06, allocations: 68 kB / 1.11 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005401/1.065, allocations: 1.876 MB / 1.112 GB, free: 13.53 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.002892/1.068, allocations: 2.668 MB / 1.115 GB, free: 10.86 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0008035/1.069, allocations: 464.2 kB / 1.115 GB, free: 10.4 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.0059/1.075, allocations: 3.811 MB / 1.119 GB, free: 6.578 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/1.075, allocations: 0 / 1.119 GB, free: 6.578 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.783e-06/1.075, allocations: 0 / 1.119 GB, free: 6.578 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 5.551e-05/1.075, allocations: 0 / 1.119 GB, free: 6.578 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 386 * Number of variables: 386 Notification: Performance of Generate backend data structure: time 0.00495/1.08, allocations: 2.844 MB / 1.122 GB, free: 3.664 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/1.08, allocations: 12.03 kB / 1.122 GB, free: 3.652 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001078/1.081, allocations: 380.1 kB / 1.122 GB, free: 3.277 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007389/1.089, allocations: 7.325 MB / 1.129 GB, free: 11.88 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001247/1.089, allocations: 138.9 kB / 1.129 GB, free: 11.74 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002468/1.089, allocations: 188 kB / 1.13 GB, free: 11.56 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002944/1.092, allocations: 1.79 MB / 1.131 GB, free: 9.691 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.498e-05/1.092, allocations: 0 / 1.131 GB, free: 9.691 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001471/1.092, allocations: 71.92 kB / 1.131 GB, free: 9.621 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.063e-05/1.092, allocations: 39.94 kB / 1.131 GB, free: 9.582 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002599/1.095, allocations: 1.802 MB / 1.133 GB, free: 7.773 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01271/1.108, allocations: 10.25 MB / 1.143 GB, free: 13.4 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002697/1.11, allocations: 1.558 MB / 1.145 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001128/1.111, allocations: 0.8589 MB / 1.146 GB, free: 10.98 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 9.746e-05/1.112, allocations: 37.09 kB / 1.146 GB, free: 10.94 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001488/1.113, allocations: 1.024 MB / 1.147 GB, free: 9.898 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=117): time 3.536e-06/1.113, allocations: 0 / 1.147 GB, free: 9.898 MB / 0.9044 GB Notification: Performance of matching and sorting (n=117): time 0.005869/1.119, allocations: 2.963 MB / 1.149 GB, free: 6.902 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002245/1.119, allocations: 338.5 kB / 1.15 GB, free: 6.523 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01558/1.135, allocations: 11.58 MB / 1.161 GB, free: 10.91 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0005606/1.135, allocations: 65.7 kB / 1.161 GB, free: 10.84 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.001408/1.137, allocations: 0.9646 MB / 1.162 GB, free: 9.863 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006594/1.137, allocations: 398.5 kB / 1.162 GB, free: 9.469 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003328/1.138, allocations: 44 kB / 1.163 GB, free: 9.426 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0002801/1.138, allocations: 406.6 kB / 1.163 GB, free: 9.023 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006664/1.145, allocations: 6.878 MB / 1.17 GB, free: 2.141 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008441/1.153, allocations: 7.207 MB / 1.177 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01165/1.165, allocations: 7.199 MB / 1.184 GB, free: 3.625 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.889e-05/1.165, allocations: 0 / 1.184 GB, free: 3.625 MB / 0.9356 GB Notification: Performance of matching and sorting (n=296) (initialization): time 0.02615/1.191, allocations: 14.85 MB / 1.198 GB, free: 4.75 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003/1.192, allocations: 163.3 kB / 1.198 GB, free: 4.586 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.985e-05/1.192, allocations: 8 kB / 1.198 GB, free: 4.578 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000841/1.192, allocations: 96.89 kB / 1.198 GB, free: 4.48 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00317/1.196, allocations: 491.3 kB / 1.199 GB, free: 4 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003076/1.199, allocations: 1.542 MB / 1.2 GB, free: 2.32 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003124/1.202, allocations: 245.5 kB / 1.201 GB, free: 2.078 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005855/1.203, allocations: 120 kB / 1.201 GB, free: 1.961 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.HDirTil.incAng.decAng.tNext,HDirTil.incAng.decAng.tNext,$PRE.weaDat.locTim.tNext,weaDat.locTim.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.decAng.tNext,weaDat.decAng.tNext,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.canRepeatWeatherFile) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (279): * Single equations (assignments): 277 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.003604/1.206, allocations: 1.548 MB / 1.202 GB, free: 408 kB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000838/1.207, allocations: 213.2 kB / 1.203 GB, free: 192 kB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007711/1.215, allocations: 2.605 MB / 1.205 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.897e-05/1.215, allocations: 15.94 kB / 1.205 GB, free: 13.55 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.82e-06/1.215, allocations: 0 / 1.205 GB, free: 13.55 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.041e-05/1.215, allocations: 3.984 kB / 1.205 GB, free: 13.55 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004046/1.219, allocations: 1.8 MB / 1.207 GB, free: 11.7 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.116e-05/1.219, allocations: 4 kB / 1.207 GB, free: 11.69 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001121/1.22, allocations: 187.8 kB / 1.207 GB, free: 11.51 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006664/1.221, allocations: 80.78 kB / 1.207 GB, free: 11.43 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001584/1.221, allocations: 43.91 kB / 1.207 GB, free: 11.38 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002643/1.224, allocations: 1.544 MB / 1.209 GB, free: 9.699 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/1.224, allocations: 4.031 kB / 1.209 GB, free: 9.695 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005356/1.229, allocations: 2.425 MB / 1.211 GB, free: 7.23 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001237/1.23, allocations: 0.5601 MB / 1.212 GB, free: 6.648 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002477/1.23, allocations: 28 kB / 1.212 GB, free: 6.621 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008652/1.231, allocations: 100.4 kB / 1.212 GB, free: 6.523 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002256/1.232, allocations: 96.86 kB / 1.212 GB, free: 6.43 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/1.232, allocations: 59.95 kB / 1.212 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.007674/1.239, allocations: 7.265 MB / 1.219 GB, free: 15.09 MB / 0.9825 GB Notification: Performance of sort global known variables: time 5.71e-07/1.239, allocations: 0 / 1.219 GB, free: 15.09 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0038/1.243, allocations: 1.127 MB / 1.22 GB, free: 13.96 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,HDirTil.incAng.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 6 (HDirTil.incAng.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (117): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002559/1.246, allocations: 0.9442 MB / 1.221 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.01065/1.256, allocations: 9.579 MB / 1.23 GB, free: 3.59 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/1.256, allocations: 8 kB / 1.23 GB, free: 3.582 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.00248/1.259, allocations: 1.73 MB / 1.232 GB, free: 1.828 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002161/1.261, allocations: 383.4 kB / 1.232 GB, free: 1.457 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01755/1.279, allocations: 12.65 MB / 1.245 GB, free: 4.754 MB / 0.9981 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:754:5-754:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]