Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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(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_latest_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_latest_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.000979/0.0009789, allocations: 91.84 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.001214/0.001214, 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.472/1.472, allocations: 223.3 MB / 240 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.892/2.892, allocations: 462.6 MB / 0.736 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003015/0.0003016, allocations: 10.88 kB / 0.9021 GB, free: 36.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.3098, allocations: 159.6 MB / 1.058 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation): time 0.008967/0.3188, allocations: 7.195 MB / 1.065 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.175/0.4938, allocations: 141.7 MB / 1.203 GB, free: 15.99 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001616/0.4955, allocations: 31.75 kB / 1.203 GB, free: 15.96 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.004593/0.5001, allocations: 1.654 MB / 1.205 GB, free: 14.3 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.003148/0.5033, allocations: 1.072 MB / 1.206 GB, free: 13.23 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002946/0.5062, allocations: 1.06 MB / 1.207 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.005841/0.5121, allocations: 4.934 MB / 1.212 GB, free: 7.234 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001686/0.5138, allocations: 0.883 MB / 1.213 GB, free: 6.324 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00298/0.5168, allocations: 1.385 MB / 1.214 GB, free: 4.934 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002392/0.5192, allocations: 1.245 MB / 1.215 GB, free: 3.684 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0003718/0.5196, allocations: 68 kB / 1.215 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003945/0.5236, allocations: 1.872 MB / 1.217 GB, free: 1.742 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.002967/0.5266, allocations: 2.68 MB / 1.22 GB, free: 15.06 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.001067/0.5276, allocations: 480.3 kB / 1.22 GB, free: 14.58 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.006446/0.5341, allocations: 3.854 MB / 1.224 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.5341, allocations: 0 / 1.224 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of FrontEnd: time 4.749e-06/0.5341, allocations: 4 kB / 1.224 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0001533/0.5343, allocations: 0 / 1.224 GB, free: 10.71 MB / 0.9825 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.007056/0.5414, allocations: 2.871 MB / 1.227 GB, free: 7.77 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.348e-05/0.5414, allocations: 12.03 kB / 1.227 GB, free: 7.758 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001965/0.5434, allocations: 372.3 kB / 1.227 GB, free: 7.391 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009685/0.5531, allocations: 7.329 MB / 1.234 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001702/0.5533, allocations: 142.9 kB / 1.235 GB, free: 15.85 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005661/0.5539, allocations: 188 kB / 1.235 GB, free: 15.66 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004108/0.558, allocations: 1.788 MB / 1.237 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.304e-05/0.5581, allocations: 4 kB / 1.237 GB, free: 13.79 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002553/0.5583, allocations: 60 kB / 1.237 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.349e-05/0.5584, allocations: 36 kB / 1.237 GB, free: 13.7 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003328/0.5617, allocations: 1.81 MB / 1.238 GB, free: 11.88 MB / 0.9981 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01595/0.5777, allocations: 10.73 MB / 1.249 GB, free: 0.918 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.7427/1.32, allocations: 1.546 MB / 1.25 GB, free: 36.27 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001571/1.322, allocations: 0.8599 MB / 1.251 GB, free: 36.27 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001135/1.322, allocations: 38.33 kB / 1.251 GB, free: 36.27 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001726/1.324, allocations: 1.027 MB / 1.252 GB, free: 36.2 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=117): time 3.607e-06/1.324, allocations: 1 kB / 1.252 GB, free: 36.2 MB / 0.9981 GB Notification: Performance of matching and sorting (n=117): time 0.005721/1.33, allocations: 2.958 MB / 1.255 GB, free: 36 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001801/1.33, allocations: 346.7 kB / 1.255 GB, free: 35.75 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01743/1.347, allocations: 11.58 MB / 1.267 GB, free: 35.53 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0005786/1.348, allocations: 64.45 kB / 1.267 GB, free: 35.5 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00158/1.349, allocations: 0.9622 MB / 1.268 GB, free: 35.24 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008829/1.35, allocations: 396.1 kB / 1.268 GB, free: 35 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002707/1.351, allocations: 45.5 kB / 1.268 GB, free: 35 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0003377/1.351, allocations: 408.1 kB / 1.269 GB, free: 34.7 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01036/1.361, allocations: 6.88 MB / 1.275 GB, free: 34.69 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008208/1.37, allocations: 7.212 MB / 1.282 GB, free: 34.43 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006372/1.376, allocations: 7.193 MB / 1.289 GB, free: 34.34 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.239e-05/1.376, allocations: 0.7031 kB / 1.289 GB, free: 34.34 MB / 0.9981 GB Notification: Performance of matching and sorting (n=296) (initialization): time 0.01445/1.391, allocations: 14.86 MB / 1.304 GB, free: 34.06 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001808/1.391, allocations: 167.2 kB / 1.304 GB, free: 34.03 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.471e-05/1.391, allocations: 6.078 kB / 1.304 GB, free: 34.03 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005824/1.391, allocations: 94.67 kB / 1.304 GB, free: 34.02 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001854/1.393, allocations: 493 kB / 1.305 GB, free: 34.02 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001943/1.395, allocations: 1.541 MB / 1.306 GB, free: 32.72 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001816/1.397, allocations: 259.5 kB / 1.306 GB, free: 32.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002329/1.397, allocations: 113.4 kB / 1.306 GB, free: 32.6 MB / 0.9981 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.001844/1.399, allocations: 1.551 MB / 1.308 GB, free: 32.45 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003492/1.4, allocations: 216.6 kB / 1.308 GB, free: 32.34 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004551/1.404, allocations: 2.607 MB / 1.311 GB, free: 32.15 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.144e-05/1.404, allocations: 12.19 kB / 1.311 GB, free: 32.15 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/1.404, allocations: 3.469 kB / 1.311 GB, free: 32.15 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.237e-05/1.404, allocations: 3.844 kB / 1.311 GB, free: 32.15 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002274/1.406, allocations: 1.784 MB / 1.313 GB, free: 31.89 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.593e-06/1.406, allocations: 7.641 kB / 1.313 GB, free: 31.89 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000713/1.407, allocations: 186.4 kB / 1.313 GB, free: 31.89 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004411/1.408, allocations: 86.27 kB / 1.313 GB, free: 31.88 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.218e-05/1.408, allocations: 41.39 kB / 1.313 GB, free: 31.88 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001419/1.409, allocations: 1.548 MB / 1.314 GB, free: 30.59 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/1.409, allocations: 0 / 1.314 GB, free: 30.59 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004247/1.413, allocations: 2.432 MB / 1.317 GB, free: 30.3 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001038/1.414, allocations: 0.557 MB / 1.317 GB, free: 30.07 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002646/1.415, allocations: 25.66 kB / 1.317 GB, free: 30.07 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009299/1.416, allocations: 100.3 kB / 1.317 GB, free: 30.07 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000289/1.416, allocations: 96.12 kB / 1.317 GB, free: 30.07 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001395/1.416, allocations: 60.41 kB / 1.318 GB, free: 30.07 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.006521/1.423, allocations: 7.262 MB / 1.325 GB, free: 26.49 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.71e-07/1.423, allocations: 0 / 1.325 GB, free: 26.49 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003178/1.426, allocations: 1.154 MB / 1.326 GB, free: 25.5 MB / 0.9981 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.002334/1.428, allocations: 0.9461 MB / 1.327 GB, free: 24.96 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.007882/1.436, allocations: 9.587 MB / 1.336 GB, free: 18.96 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/1.436, allocations: 4.125 kB / 1.336 GB, free: 18.96 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001789/1.438, allocations: 1.727 MB / 1.338 GB, free: 17.95 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001934/1.44, allocations: 416.9 kB / 1.338 GB, free: 17.73 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01262/1.452, allocations: 12.51 MB / 1.35 GB, free: 7.398 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]