Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.BooleanTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.BooleanTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable1.y|booleanTable2a.y|booleanTable2b.y|booleanTable3a.y|booleanTable3b.y|booleanTable3c.y|booleanTable4a.y|booleanTable4b.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.BooleanTable") translateModel(ModelicaTest.Blocks.BooleanTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable1.y|booleanTable2a.y|booleanTable2b.y|booleanTable3a.y|booleanTable3b.y|booleanTable3c.y|booleanTable4a.y|booleanTable4b.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.BooleanTable") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001377/0.001377, allocations: 187 kB / 7.799 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.041/1.041, allocations: 205.2 MB / 213.4 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000836/0.000836, allocations: 94.58 kB / 261.4 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1489/0.1489, allocations: 43.49 MB / 352.8 MB, free: 1.957 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.004e-06/7.023e-06, allocations: 224 / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2174/0.2174, allocations: 58.84 MB / 476.6 MB, free: 5.203 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09976/0.3172, allocations: 87.76 MB / 0.5511 GB, free: 11.17 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001814/0.3174, allocations: 67.97 kB / 0.5512 GB, free: 11.11 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.07527/0.3927, allocations: 28.17 MB / 0.5787 GB, free: 14.9 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.804e-05/0.3928, allocations: 19.94 kB / 0.5787 GB, free: 14.88 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001513/0.3944, allocations: 1.092 MB / 0.5797 GB, free: 13.7 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.13e-05/0.3944, allocations: 8.031 kB / 0.5798 GB, free: 13.69 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001696/0.3946, allocations: 98.78 kB / 0.5798 GB, free: 13.59 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001304/0.3959, allocations: 0.7298 MB / 0.5806 GB, free: 12.8 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.934e-05/0.3959, allocations: 15.98 kB / 0.5806 GB, free: 12.79 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.114e-05/0.396, allocations: 16 kB / 0.5806 GB, free: 12.77 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003327/0.3963, allocations: 184.9 kB / 0.5808 GB, free: 12.59 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004731/0.3968, allocations: 380.6 kB / 0.5811 GB, free: 12.16 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.3968, allocations: 0 / 0.5811 GB, free: 12.16 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.277e-05/0.3969, allocations: 4 kB / 0.5811 GB, free: 12.16 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.3969, allocations: 8 kB / 0.5811 GB, free: 12.15 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001682/0.3986, allocations: 1.568 MB / 0.5827 GB, free: 10.52 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005805/0.3992, allocations: 479.3 kB / 0.5831 GB, free: 9.98 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000247/0.3994, allocations: 175 kB / 0.5833 GB, free: 9.785 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.221e-05/0.3994, allocations: 8 kB / 0.5833 GB, free: 9.777 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003918/0.3998, allocations: 334.8 kB / 0.5836 GB, free: 9.414 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 2.124e-06/0.3999, allocations: 7.938 kB / 0.5836 GB, free: 9.406 MB / 426.7 MB Notification: Performance of matching and sorting (n=48): time 0.0007179/0.4006, allocations: 440.2 kB / 0.5841 GB, free: 8.969 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001537/0.4007, allocations: 448.9 kB / 0.5845 GB, free: 8.426 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001124/0.4019, allocations: 0.9062 MB / 0.5854 GB, free: 7.496 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.219e-05/0.4019, allocations: 37.7 kB / 0.5854 GB, free: 7.453 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001168/0.4021, allocations: 192.9 kB / 0.5856 GB, free: 7.262 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.615e-05/0.4022, allocations: 126.3 kB / 0.5857 GB, free: 7.137 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.696e-05/0.4022, allocations: 0 / 0.5857 GB, free: 7.137 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.339e-05/0.4023, allocations: 322 kB / 0.586 GB, free: 6.816 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001997/0.4025, allocations: 133.3 kB / 0.5861 GB, free: 6.688 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003588/0.4028, allocations: 352.7 kB / 0.5865 GB, free: 6.254 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002365/0.4031, allocations: 170.2 kB / 0.5866 GB, free: 6.09 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.4031, allocations: 4 kB / 0.5866 GB, free: 6.086 MB / 426.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.000683/0.4038, allocations: 480.1 kB / 0.5871 GB, free: 5.609 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.4038, allocations: 7.984 kB / 0.5871 GB, free: 5.602 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.4038, allocations: 12.16 kB / 0.5871 GB, free: 5.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.4038, allocations: 4 kB / 0.5871 GB, free: 5.586 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003511/0.4042, allocations: 96.33 kB / 0.5872 GB, free: 5.492 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.4042, allocations: 11.94 kB / 0.5872 GB, free: 5.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004094/0.4046, allocations: 63.66 kB / 0.5873 GB, free: 5.418 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.702e-05/0.4047, allocations: 27.98 kB / 0.5873 GB, free: 5.391 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 48 ($whenCondition8,$PRE.booleanTable1.combiTimeTable.nextTimeEvent,booleanTable1.y,booleanTable1.combiTimeTable.nextTimeEvent,$PRE.booleanTable1.combiTimeTable.nextTimeEventScaled,booleanTable1.combiTimeTable.nextTimeEventScaled,$whenCondition7,$PRE.booleanTable2a.combiTimeTable.nextTimeEvent,booleanTable2a.y,booleanTable2a.combiTimeTable.nextTimeEvent,$PRE.booleanTable2a.combiTimeTable.nextTimeEventScaled,booleanTable2a.combiTimeTable.nextTimeEventScaled,$whenCondition6,$PRE.booleanTable2b.combiTimeTable.nextTimeEvent,booleanTable2b.y,booleanTable2b.combiTimeTable.nextTimeEvent,$PRE.booleanTable2b.combiTimeTable.nextTimeEventScaled,booleanTable2b.combiTimeTable.nextTimeEventScaled,$whenCondition5,$PRE.booleanTable3a.combiTimeTable.nextTimeEvent,booleanTable3a.y,booleanTable3a.combiTimeTable.nextTimeEvent,$PRE.booleanTable3a.combiTimeTable.nextTimeEventScaled,booleanTable3a.combiTimeTable.nextTimeEventScaled,$whenCondition4,$PRE.booleanTable3b.combiTimeTable.nextTimeEvent,booleanTable3b.y,booleanTable3b.combiTimeTable.nextTimeEvent,$PRE.booleanTable3b.combiTimeTable.nextTimeEventScaled,booleanTable3b.combiTimeTable.nextTimeEventScaled,$whenCondition3,$PRE.booleanTable3c.combiTimeTable.nextTimeEvent,booleanTable3c.y,booleanTable3c.combiTimeTable.nextTimeEvent,$PRE.booleanTable3c.combiTimeTable.nextTimeEventScaled,booleanTable3c.combiTimeTable.nextTimeEventScaled,$whenCondition2,$PRE.booleanTable4a.combiTimeTable.nextTimeEvent,booleanTable4a.y,booleanTable4a.combiTimeTable.nextTimeEvent,$PRE.booleanTable4a.combiTimeTable.nextTimeEventScaled,booleanTable4a.combiTimeTable.nextTimeEventScaled,$whenCondition1,$PRE.booleanTable4b.combiTimeTable.nextTimeEvent,booleanTable4b.y,booleanTable4b.combiTimeTable.nextTimeEvent,$PRE.booleanTable4b.combiTimeTable.nextTimeEventScaled,booleanTable4b.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 64 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001473/0.4048, allocations: 146.2 kB / 0.5875 GB, free: 5.242 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001488/0.405, allocations: 102.8 kB / 0.5876 GB, free: 5.141 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008307/0.4058, allocations: 0.5007 MB / 0.588 GB, free: 4.629 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.869e-06/0.4058, allocations: 8 kB / 0.588 GB, free: 4.621 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/0.4059, allocations: 4 kB / 0.5881 GB, free: 4.617 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.4059, allocations: 3.984 kB / 0.5881 GB, free: 4.613 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000741/0.4066, allocations: 0.6187 MB / 0.5887 GB, free: 3.957 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.4066, allocations: 7.938 kB / 0.5887 GB, free: 3.949 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000154/0.4068, allocations: 51.91 kB / 0.5887 GB, free: 3.898 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.554e-06/0.4068, allocations: 4 kB / 0.5887 GB, free: 3.895 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.285e-05/0.4069, allocations: 11.98 kB / 0.5887 GB, free: 3.883 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.089e-06/0.4069, allocations: 8 kB / 0.5887 GB, free: 3.875 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.4069, allocations: 0 / 0.5887 GB, free: 3.875 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007789/0.4077, allocations: 0.616 MB / 0.5893 GB, free: 3.168 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002645/0.4079, allocations: 231.7 kB / 0.5896 GB, free: 2.922 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001454/0.4081, allocations: 15.98 kB / 0.5896 GB, free: 2.906 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003681/0.4085, allocations: 43.97 kB / 0.5896 GB, free: 2.863 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.4086, allocations: 59.91 kB / 0.5897 GB, free: 2.805 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.781e-05/0.4086, allocations: 23.98 kB / 0.5897 GB, free: 2.781 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0008824/0.4095, allocations: 0.6992 MB / 0.5904 GB, free: 2.07 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006188/0.4101, allocations: 155.8 kB / 0.5905 GB, free: 1.918 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition8,booleanTable1.y,booleanTable1.combiTimeTable.nextTimeEvent,booleanTable1.combiTimeTable.nextTimeEventScaled,$whenCondition7,booleanTable2a.y,booleanTable2a.combiTimeTable.nextTimeEvent,booleanTable2a.combiTimeTable.nextTimeEventScaled,$whenCondition6,booleanTable2b.y,booleanTable2b.combiTimeTable.nextTimeEvent,booleanTable2b.combiTimeTable.nextTimeEventScaled,$whenCondition5,booleanTable3a.y,booleanTable3a.combiTimeTable.nextTimeEvent,booleanTable3a.combiTimeTable.nextTimeEventScaled,$whenCondition4,booleanTable3b.y,booleanTable3b.combiTimeTable.nextTimeEvent,booleanTable3b.combiTimeTable.nextTimeEventScaled,$whenCondition3,booleanTable3c.y,booleanTable3c.combiTimeTable.nextTimeEvent,booleanTable3c.combiTimeTable.nextTimeEventScaled,$whenCondition2,booleanTable4a.y,booleanTable4a.combiTimeTable.nextTimeEvent,booleanTable4a.combiTimeTable.nextTimeEventScaled,$whenCondition1,booleanTable4b.y,booleanTable4b.combiTimeTable.nextTimeEvent,booleanTable4b.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 16 (booleanTable4b.combiTimeTable.nextTimeEvent,booleanTable4b.combiTimeTable.nextTimeEventScaled,booleanTable4a.combiTimeTable.nextTimeEvent,booleanTable4a.combiTimeTable.nextTimeEventScaled,booleanTable3c.combiTimeTable.nextTimeEvent,booleanTable3c.combiTimeTable.nextTimeEventScaled,booleanTable3b.combiTimeTable.nextTimeEvent,booleanTable3b.combiTimeTable.nextTimeEventScaled,booleanTable3a.combiTimeTable.nextTimeEvent,booleanTable3a.combiTimeTable.nextTimeEventScaled,booleanTable2b.combiTimeTable.nextTimeEvent,booleanTable2b.combiTimeTable.nextTimeEventScaled,booleanTable2a.combiTimeTable.nextTimeEvent,booleanTable2a.combiTimeTable.nextTimeEventScaled,booleanTable1.combiTimeTable.nextTimeEvent,booleanTable1.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 16 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007307/0.4109, allocations: 375.2 kB / 0.5909 GB, free: 1.578 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0006287/0.4115, allocations: 399.2 kB / 0.5913 GB, free: 1.191 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4115, allocations: 4 kB / 0.5913 GB, free: 1.188 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003735/0.4119, allocations: 267.7 kB / 0.5915 GB, free: 0.9258 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001011/0.4129, allocations: 240.1 kB / 0.5918 GB, free: 0.6953 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001834/0.4148, allocations: 1.098 MB / 0.5928 GB, free: 15.54 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009082/0.4157, allocations: 1.129 MB / 0.5939 GB, free: 14.39 MB / 442.7 MB Notification: Performance of SimCode: time 4.2e-07/0.4157, allocations: 3.938 kB / 0.5939 GB, free: 14.38 MB / 442.7 MB [CodegenCFunctions.tpl:3420:14-3420:14:writable] Error: Template error: literalExpConst failed: {}. Notification: Performance of Templates: time 0.01909/0.4348, allocations: 11 MB / 0.6047 GB, free: 3.402 MB / 442.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.BooleanTable.makefile make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.BooleanTable.makefile clang -fPIC -O0 -falign-functions -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ModelicaTest_3_2_3_ModelicaTest_Blocks_BooleanTable -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ModelicaTest_3.2.3_ModelicaTest.Blocks.BooleanTable.o ModelicaTest_3.2.3_ModelicaTest.Blocks.BooleanTable.c In file included from ModelicaTest_3.2.3_ModelicaTest.Blocks.BooleanTable.c:2: In file included from ./ModelicaTest_3.2.3_ModelicaTest.Blocks.BooleanTable_model.h:85: ./ModelicaTest_3.2.3_ModelicaTest.Blocks.BooleanTable_literals.h:24:2: error: "[CodegenCFunctions.tpl:3420:14-3420:14] literalExpConst failed: {}" #error "[CodegenCFunctions.tpl:3420:14-3420:14] literalExpConst failed: {}" ^ 1 error generated. make: *** [: ModelicaTest_3.2.3_ModelicaTest.Blocks.BooleanTable.o] Error 1