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.DampersSingleSensors.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.DampersSingleSensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dam1.VActMin_flow|dam1.VActCooMax_flow|dam1.VActHeaMax_flow|dam1.uCoo|dam1.uHea|dam1.VDis_flow_Set|dam1.yCooDam|dam1.yHeaDam",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctSnapActing.Subsequences.Validation.DampersSingleSensors") translateModel(Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctSnapActing.Subsequences.Validation.DampersSingleSensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dam1.VActMin_flow|dam1.VActCooMax_flow|dam1.VActHeaMax_flow|dam1.uCoo|dam1.uHea|dam1.VDis_flow_Set|dam1.yCooDam|dam1.yHeaDam",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctSnapActing.Subsequences.Validation.DampersSingleSensors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 113.3 kB / 16.42 MB, free: 6.477 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.001255/0.001255, allocations: 187.2 kB / 17.35 MB, free: 5.711 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.259/1.259, allocations: 222.9 MB / 241 MB, free: 15.12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.396/2.396, allocations: 461.9 MB / 0.7354 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.081e-05/2.083e-05, allocations: 2.281 kB / 1.055 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.DualDuctSnapActing.Subsequences.Validation.DampersSingleSensors): time 0.003846/0.00388, allocations: 2.848 MB / 1.057 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002895/0.006792, allocations: 2.043 MB / 1.059 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003852/0.007192, allocations: 15.94 kB / 1.059 GB, free: 2.793 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002736/0.007475, allocations: 126.6 kB / 1.06 GB, free: 2.668 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002462/0.007766, allocations: 114.8 kB / 1.06 GB, free: 2.555 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.00104/0.008812, allocations: 0.5618 MB / 1.06 GB, free: 1.996 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0009933/0.009813, allocations: 1.231 MB / 1.061 GB, free: 0.7617 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006515/0.01047, allocations: 0.5405 MB / 1.062 GB, free: 200 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004317/0.01091, allocations: 426.5 kB / 1.062 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003703/0.01129, allocations: 438 kB / 1.063 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001349/0.01143, allocations: 120 kB / 1.063 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001747/0.01162, allocations: 139.9 kB / 1.063 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of combineBinaries: time 0.0007817/0.01241, allocations: 1.39 MB / 1.064 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of replaceArrayConstructors: time 0.0003885/0.0128, allocations: 0.8424 MB / 1.065 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001397/0.01295, allocations: 147.5 kB / 1.065 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of FrontEnd: time 0.0002108/0.01317, allocations: 67.38 kB / 1.065 GB, free: 12.62 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: 190 (190) * Number of variables: 190 (190) Notification: Performance of Bindings: time 0.00314/0.01631, allocations: 4.091 MB / 1.069 GB, free: 8.379 MB / 0.8419 GB Notification: Performance of FunctionAlias: time 0.0001757/0.01649, allocations: 191.8 kB / 1.07 GB, free: 8.191 MB / 0.8419 GB Notification: Performance of Early Inline: time 0.002488/0.01899, allocations: 2.896 MB / 1.072 GB, free: 5.258 MB / 0.8419 GB Notification: Performance of simplify1: time 0.00017/0.01917, allocations: 167.8 kB / 1.073 GB, free: 5.094 MB / 0.8419 GB Notification: Performance of Alias: time 0.5177/0.5369, allocations: 5.033 MB / 1.078 GB, free: 23.82 MB / 0.8419 GB Notification: Performance of simplify2: time 0.0002452/0.5372, allocations: 100.1 kB / 1.078 GB, free: 23.82 MB / 0.8419 GB Notification: Performance of Events: time 0.0009634/0.5382, allocations: 0.6981 MB / 1.078 GB, free: 23.8 MB / 0.8419 GB Notification: Performance of Detect States: time 0.0009135/0.5391, allocations: 0.8023 MB / 1.079 GB, free: 23.75 MB / 0.8419 GB Notification: Performance of Partitioning: time 0.0007117/0.5398, allocations: 0.5799 MB / 1.08 GB, free: 23.62 MB / 0.8419 GB Notification: Performance of Causalize: time 0.002487/0.5423, allocations: 2.189 MB / 1.082 GB, free: 23.15 MB / 0.8419 GB Notification: Performance of After Index Reduction Inline: time 0.001801/0.5441, allocations: 1.736 MB / 1.083 GB, free: 23.02 MB / 0.8419 GB Notification: Performance of Inline: time 0.004898/0.549, allocations: 3.396 MB / 1.087 GB, free: 21.39 MB / 0.8419 GB Notification: Performance of Partitioning: time 0.0002564/0.5493, allocations: 163.6 kB / 1.087 GB, free: 21.29 MB / 0.8419 GB Notification: Performance of Cleanup: time 0.0006144/0.5499, allocations: 392.1 kB / 1.087 GB, free: 21.07 MB / 0.8419 GB Notification: Performance of Causalize: time 0.01715/0.5671, allocations: 13.08 MB / 1.1 GB, free: 16.28 MB / 0.8419 GB Notification: Performance of Tearing: time 2.918e-05/0.5672, allocations: 0 / 1.1 GB, free: 16.28 MB / 0.8419 GB Notification: Performance of Initialization: time 8.21e-07/0.5672, allocations: 0 / 1.1 GB, free: 16.28 MB / 0.8419 GB Notification: Performance of Tearing: time 1.396e-05/0.5672, allocations: 5.781 kB / 1.1 GB, free: 16.27 MB / 0.8419 GB Notification: Performance of Categorize: time 2.567e-05/0.5672, allocations: 7.594 kB / 1.1 GB, free: 16.27 MB / 0.8419 GB Notification: Performance of Solve: time 0.001161/0.5684, allocations: 0.9188 MB / 1.101 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of Jacobian: time 0.0005875/0.569, allocations: 0.7716 MB / 1.102 GB, free: 15.19 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: ......... 5 * 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: ............................. 1 (1) {dam1.conCooDam.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: ................. 50 (50) {dam1.conCooDam.trigger, dam1.or2.u1, dam1.or2.u2, 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, dam1.cooDamPos.u2, dam1.heaDamPos.u2, dam1.and1.y, dam1.and4.y, $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_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: ........... 87 (scalar:87, 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: ........... 159 (scalar:159, 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: ........... 159 (scalar:159, 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 8.262e-05/0.5691, allocations: 91.92 kB / 1.102 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of SimCode: time 0.003804/0.5729, allocations: 3.899 MB / 1.106 GB, free: 13.31 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.