Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctSnapActing.Subsequences.Validation.DampersDualSensors.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctSnapActing.Subsequences.Validation.DampersDualSensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dam1.VActMin_flow|dam1.VActCooMax_flow|dam1.VActHeaMax_flow|dam1.TZon|dam1.TColSup|dam1.THotSup|dam1.uCoo|dam1.uHea|dam1.VColDucDis_flow_Set|dam1.VHotDucDis_flow_Set|dam1.VDis_flow_Set|dam1.yCooDam|dam1.yHeaDam",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctSnapActing.Subsequences.Validation.DampersDualSensors") translateModel(Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctSnapActing.Subsequences.Validation.DampersDualSensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dam1.VActMin_flow|dam1.VActCooMax_flow|dam1.VActHeaMax_flow|dam1.TZon|dam1.TColSup|dam1.THotSup|dam1.uCoo|dam1.uHea|dam1.VColDucDis_flow_Set|dam1.VHotDucDis_flow_Set|dam1.VDis_flow_Set|dam1.yCooDam|dam1.yHeaDam",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctSnapActing.Subsequences.Validation.DampersDualSensors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 113.5 kB / 16.43 MB, free: 6.508 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.0009569/0.0009569, allocations: 183.2 kB / 17.35 MB, free: 5.754 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.258/1.258, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.336/2.336, allocations: 461.9 MB / 0.7354 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.894e-05/2.921e-05, allocations: 2.281 kB / 1.055 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctSnapActing.Subsequences.Validation.DampersDualSensors): time 0.005193/0.00525, allocations: 3.968 MB / 1.059 GB, free: 3.719 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00397/0.009239, allocations: 2.425 MB / 1.061 GB, free: 1.273 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009524/0.01021, allocations: 27.88 kB / 1.061 GB, free: 1.246 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0005842/0.0108, allocations: 189.9 kB / 1.061 GB, free: 1.059 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004949/0.01131, allocations: 170.2 kB / 1.061 GB, free: 0.8906 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001403/0.01275, allocations: 0.7211 MB / 1.062 GB, free: 180 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001481/0.01424, allocations: 1.766 MB / 1.064 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009927/0.01524, allocations: 0.8589 MB / 1.065 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005825/0.01583, allocations: 0.5838 MB / 1.065 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004916/0.01633, allocations: 0.6065 MB / 1.066 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001874/0.01653, allocations: 176 kB / 1.066 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000212/0.01675, allocations: 195.9 kB / 1.066 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of combineBinaries: time 0.001058/0.01781, allocations: 2.008 MB / 1.068 GB, free: 9.922 MB / 0.8419 GB Notification: Performance of replaceArrayConstructors: time 0.0005891/0.01841, allocations: 1.246 MB / 1.069 GB, free: 8.656 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002276/0.01864, allocations: 223.2 kB / 1.069 GB, free: 8.438 MB / 0.8419 GB Notification: Performance of FrontEnd: time 0.0002684/0.01892, allocations: 91.17 kB / 1.07 GB, free: 8.348 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 (281) * Number of variables: 281 (281) Notification: Performance of Bindings: time 0.0045/0.02342, allocations: 6.027 MB / 1.075 GB, free: 2.105 MB / 0.8419 GB Notification: Performance of FunctionAlias: time 0.0004626/0.02389, allocations: 0.5262 MB / 1.076 GB, free: 1.562 MB / 0.8419 GB Notification: Performance of Early Inline: time 0.5003/0.5242, allocations: 4.058 MB / 1.08 GB, free: 21.11 MB / 0.8419 GB Notification: Performance of simplify1: time 0.0003692/0.5246, allocations: 230 kB / 1.08 GB, free: 21.11 MB / 0.8419 GB Notification: Performance of Alias: time 0.008346/0.533, allocations: 7.539 MB / 1.087 GB, free: 17.97 MB / 0.8419 GB Notification: Performance of simplify2: time 0.0001984/0.5332, allocations: 132.8 kB / 1.088 GB, free: 17.93 MB / 0.8419 GB Notification: Performance of Events: time 0.0009666/0.5342, allocations: 0.8917 MB / 1.088 GB, free: 17.48 MB / 0.8419 GB Notification: Performance of Detect States: time 0.000834/0.535, allocations: 0.955 MB / 1.089 GB, free: 16.91 MB / 0.8419 GB Notification: Performance of Partitioning: time 0.0007994/0.5358, allocations: 0.7691 MB / 1.09 GB, free: 16.46 MB / 0.8419 GB Notification: Performance of Causalize: time 0.003448/0.5393, allocations: 2.915 MB / 1.093 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of After Index Reduction Inline: time 0.002048/0.5414, allocations: 2.213 MB / 1.095 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of Inline: time 0.004385/0.5457, allocations: 4.615 MB / 1.1 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of Partitioning: time 0.0002562/0.546, allocations: 234.8 kB / 1.1 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of Cleanup: time 0.0004822/0.5465, allocations: 0.491 MB / 1.1 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of Causalize: time 0.02107/0.5676, allocations: 18.1 MB / 1.118 GB, free: 4.578 MB / 0.8419 GB Notification: Performance of Tearing: time 3.618e-05/0.5677, allocations: 1.281 kB / 1.118 GB, free: 4.578 MB / 0.8419 GB Notification: Performance of Initialization: time 8.81e-07/0.5677, allocations: 0 / 1.118 GB, free: 4.578 MB / 0.8419 GB Notification: Performance of Tearing: time 1.678e-05/0.5677, allocations: 3.688 kB / 1.118 GB, free: 4.578 MB / 0.8419 GB Notification: Performance of Categorize: time 2.829e-05/0.5677, allocations: 5.438 kB / 1.118 GB, free: 4.578 MB / 0.8419 GB Notification: Performance of Solve: time 0.001934/0.5697, allocations: 1.144 MB / 1.119 GB, free: 3.867 MB / 0.8419 GB Notification: Performance of Jacobian: time 0.000983/0.5707, allocations: 0.9942 MB / 1.12 GB, free: 3.316 MB / 0.8419 GB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 0 * Number of ODE event partitions: ............... 1 * Number of algebraic event partitions: ......... 6 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 1 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 2 (2) {dam1.conCooDam.addPID.u2, dam1.conHeaDam.addPID.u2} * Number of discrete states: .................... 8 (8) {heaAhu.y, cooAhu.y, dam1.lat1.y, dam1.lat.y, dam1.samCoo.y, dam1.samCoo.firstTrigger, dam1.samHea.y, dam1.samHea.firstTrigger} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 54 (54) {dam1.and4.u1, dam1.and4.u2, dam1.and4.y, dam1.and1.u1, dam1.and1.u2, dam1.and1.y, dam1.falEdg.not_u, dam1.and2.u2, dam1.and2.y, dam1.and3.u1, dam1.and3.y, dam1.samHea.sampleTrigger, dam1.samCoo.sampleTrigger, dam1.lat.clr, $SEV_26, $SEV_25, $SEV_24, $SEV_23, $SEV_22, $SEV_21, $SEV_20, $SEV_19, $SEV_18, $SEV_17, $SEV_16, $SEV_15, $SEV_14, $SEV_13, $SEV_12, $SEV_11, $SEV_10, $SEV_9, $SEV_8, $SEV_7, $SEV_6, $TEV_42, $TEV_41, $TEV_40, $TEV_39, $TEV_38, $TEV_37, $TEV_36, $TEV_35, $TEV_34, $TEV_33, $TEV_32, $TEV_31, $TEV_30, $TEV_29, $TEV_28, $TEV_27, $TEV_26, $TEV_25, $TEV_24} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 117 (scalar:117, array:0, record:0) * Number of multi strong components: ............ 8 (algorithm:0, when:8, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 1 (linear: 0, nonlinear:1) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 228 (scalar:228, array:0, record:0) * Number of multi strong components: ............ 6 (algorithm:6, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 1 (linear: 0, nonlinear:1) Notification: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 228 (scalar:228, array:0, record:0) * Number of multi strong components: ............ 6 (algorithm:6, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 1 (linear: 0, nonlinear:1) Notification: Performance of backend: time 0.0001147/0.5708, allocations: 97.66 kB / 1.12 GB, free: 3.297 MB / 0.8419 GB Notification: Performance of SimCode: time 0.00573/0.5765, allocations: 5.301 MB / 1.125 GB, free: 0.957 MB / 0.8419 GB Error: Template error: A template call failed (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so: (null)). One possible reason could be that a template imported function call failed (which should not happen for functions called from within template code; templates assert pure 'match'/non-failing semantics). [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SerializeModelInfo.mo:116:9-116:84:writable] Error: Internal error SerializeModelInfo.serialize failed [CodegenCFunctions.tpl:5962:14-5962:14:writable] Error: Template error: daeExpLbinary:ERR.