Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.TransmittedRadiation.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.TransmittedRadiation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|winTra.HDif|winTra.HDir|winTra.QTraDif_flow.1.|winTra.QTraDir_flow.1.|winTra.QTraDifUns_flow.1.|winTra.QTraDirUns_flow.1.|winTra.QTraDifSha_flow.1.|winTra.QTraDirSha_flow.1.",fileNamePrefix="Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.TransmittedRadiation") translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.TransmittedRadiation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|winTra.HDif|winTra.HDir|winTra.QTraDif_flow.1.|winTra.QTraDir_flow.1.|winTra.QTraDifUns_flow.1.|winTra.QTraDirUns_flow.1.|winTra.QTraDifSha_flow.1.|winTra.QTraDirSha_flow.1.",fileNamePrefix="Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.TransmittedRadiation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 86.09 kB / 15.06 MB, free: 1.09 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.00121/0.00121, allocations: 168.7 kB / 15.95 MB, free: 204 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.375/1.375, allocations: 223.3 MB / 240 MB, free: 5.418 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.375/2.375, allocations: 390.9 MB / 0.666 GB, free: 2.504 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003429/0.000343, allocations: 12 kB / 0.8154 GB, free: 13.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7237/0.7241, allocations: 142.4 MB / 0.9544 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.TransmittedRadiation): time 0.005257/0.7294, allocations: 4.997 MB / 0.9593 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1606/0.89, allocations: 140.6 MB / 1.097 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008996/0.8909, allocations: 19.88 kB / 1.097 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.004294/0.8952, allocations: 1.503 MB / 1.098 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0028/0.8981, allocations: 0.6732 MB / 1.099 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002379/0.9005, allocations: 0.7262 MB / 1.099 GB, free: 10.65 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.002541/0.903, allocations: 2.197 MB / 1.102 GB, free: 8.445 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001345/0.9044, allocations: 0.7518 MB / 1.102 GB, free: 7.672 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00152/0.9059, allocations: 0.6456 MB / 1.103 GB, free: 7.023 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001441/0.9073, allocations: 0.6803 MB / 1.104 GB, free: 6.34 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.000141/0.9075, allocations: 44 kB / 1.104 GB, free: 6.297 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003814/0.9113, allocations: 1.853 MB / 1.105 GB, free: 4.441 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0008837/0.9122, allocations: 1.002 MB / 1.106 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0004172/0.9126, allocations: 304.8 kB / 1.107 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.003877/0.9165, allocations: 2.666 MB / 1.109 GB, free: 472 kB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/0.9166, allocations: 4 kB / 1.109 GB, free: 468 kB / 0.8575 GB Notification: Performance of FrontEnd: time 1.734e-06/0.9166, allocations: 0 / 1.109 GB, free: 468 kB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.53e-05/0.9166, allocations: 0 / 1.109 GB, free: 468 kB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 324 * Number of variables: 324 Notification: Performance of Generate backend data structure: time 0.003585/0.9202, allocations: 2.001 MB / 1.111 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.9202, allocations: 19.95 kB / 1.111 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009121/0.9212, allocations: 273.5 kB / 1.112 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003041/0.9242, allocations: 2.866 MB / 1.114 GB, free: 11.19 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.674e-05/0.9243, allocations: 106.5 kB / 1.114 GB, free: 11.08 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001648/0.9245, allocations: 135.9 kB / 1.115 GB, free: 10.95 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002187/0.9267, allocations: 1.349 MB / 1.116 GB, free: 9.539 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.329e-05/0.9267, allocations: 0 / 1.116 GB, free: 9.539 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000107/0.9268, allocations: 52 kB / 1.116 GB, free: 9.488 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.235e-05/0.9269, allocations: 36 kB / 1.116 GB, free: 9.453 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002334/0.9292, allocations: 1.493 MB / 1.117 GB, free: 7.953 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008266/0.9375, allocations: 5.181 MB / 1.123 GB, free: 2.703 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00201/0.9395, allocations: 1.119 MB / 1.124 GB, free: 1.574 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006858/0.9402, allocations: 447.7 kB / 1.124 GB, free: 1.133 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 9.426e-05/0.9403, allocations: 37.09 kB / 1.124 GB, free: 1.098 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001023/0.9414, allocations: 0.6605 MB / 1.125 GB, free: 428 kB / 0.8731 GB Notification: Performance of pre-optimization done (n=100): time 2.886e-06/0.9414, allocations: 4 kB / 1.125 GB, free: 424 kB / 0.8731 GB Notification: Performance of matching and sorting (n=100): time 0.003621/0.945, allocations: 1.652 MB / 1.126 GB, free: 14.73 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.567e-05/0.9451, allocations: 196.9 kB / 1.127 GB, free: 14.5 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004547/0.9497, allocations: 4.098 MB / 1.131 GB, free: 10.39 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001274/0.9498, allocations: 45.7 kB / 1.131 GB, free: 10.34 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.000534/0.9504, allocations: 0.6608 MB / 1.131 GB, free: 9.676 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002746/0.9506, allocations: 323.4 kB / 1.132 GB, free: 9.355 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.36e-05/0.9507, allocations: 28 kB / 1.132 GB, free: 9.328 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.9509, allocations: 353.9 kB / 1.132 GB, free: 8.977 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002027/0.9529, allocations: 2.201 MB / 1.134 GB, free: 6.773 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002178/0.9551, allocations: 2.364 MB / 1.136 GB, free: 4.387 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002111/0.9572, allocations: 2.264 MB / 1.139 GB, free: 2.121 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.9572, allocations: 0 / 1.139 GB, free: 2.121 MB / 0.8887 GB Notification: Performance of matching and sorting (n=161) (initialization): time 0.005267/0.9625, allocations: 4.909 MB / 1.143 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.9625, allocations: 4 kB / 1.143 GB, free: 13.19 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.538e-05/0.9626, allocations: 7.984 kB / 1.143 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005444/0.9631, allocations: 84.84 kB / 1.143 GB, free: 13.1 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/0.9641, allocations: 279.6 kB / 1.144 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002079/0.9662, allocations: 1.523 MB / 1.145 GB, free: 11.16 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001123/0.9674, allocations: 162.7 kB / 1.145 GB, free: 11.01 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001211/0.9675, allocations: 55.97 kB / 1.145 GB, free: 10.95 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (159): * Single equations (assignments): 158 * Array equations: 0 * Algorithm blocks: 0 * 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.001054/0.9686, allocations: 0.6207 MB / 1.146 GB, free: 10.32 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001931/0.9688, allocations: 138.2 kB / 1.146 GB, free: 10.19 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002865/0.9716, allocations: 1.489 MB / 1.148 GB, free: 8.688 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.27e-05/0.9717, allocations: 12 kB / 1.148 GB, free: 8.676 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.9717, allocations: 7.953 kB / 1.148 GB, free: 8.668 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.184e-05/0.9717, allocations: 3.984 kB / 1.148 GB, free: 8.664 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001654/0.9734, allocations: 1.306 MB / 1.149 GB, free: 7.301 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.9734, allocations: 0 / 1.149 GB, free: 7.301 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007186/0.9741, allocations: 187.7 kB / 1.149 GB, free: 7.117 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004318/0.9745, allocations: 88.7 kB / 1.149 GB, free: 7.027 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.838e-05/0.9746, allocations: 31.97 kB / 1.149 GB, free: 6.996 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001605/0.9762, allocations: 1.548 MB / 1.151 GB, free: 5.305 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.9762, allocations: 0 / 1.151 GB, free: 5.305 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002185/0.9784, allocations: 1.27 MB / 1.152 GB, free: 4.008 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005065/0.9789, allocations: 402.9 kB / 1.152 GB, free: 3.594 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001623/0.9791, allocations: 31.97 kB / 1.152 GB, free: 3.562 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006607/0.9798, allocations: 86.17 kB / 1.152 GB, free: 3.48 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001556/0.98, allocations: 88.86 kB / 1.153 GB, free: 3.395 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.879e-05/0.98, allocations: 51.91 kB / 1.153 GB, free: 3.344 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.002274/0.9823, allocations: 2.622 MB / 1.155 GB, free: 0.7188 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.71e-07/0.9823, allocations: 4 kB / 1.155 GB, free: 0.7148 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001884/0.9842, allocations: 0.9088 MB / 1.156 GB, free: 15.8 MB / 0.92 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 (115): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * 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.00216/0.9864, allocations: 0.9418 MB / 1.157 GB, free: 15.04 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.003463/0.9899, allocations: 2.993 MB / 1.16 GB, free: 12.04 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.9899, allocations: 0 / 1.16 GB, free: 12.04 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.00106/0.9909, allocations: 0.6721 MB / 1.161 GB, free: 11.35 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001341/0.9923, allocations: 307.8 kB / 1.161 GB, free: 11.05 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007704/1, allocations: 5.8 MB / 1.166 GB, free: 5.23 MB / 0.92 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]