Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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: "" <> buildModelFMU(ModelicaTest.Blocks.BooleanTable,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_BooleanTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.BooleanTable,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_BooleanTable",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002366/0.002365, allocations: 176.9 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.077/2.077, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001566/0.001567, allocations: 88.97 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3399/0.3399, allocations: 43.49 MB / 353.6 MB, free: 2.281 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.284e-05/2.301e-05, allocations: 4 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4269/0.427, allocations: 58.84 MB / 477.2 MB, free: 5.152 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1678/0.5949, allocations: 87.84 MB / 0.5518 GB, free: 11.38 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002801/0.5953, allocations: 67.47 kB / 0.5518 GB, free: 11.32 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1384/0.7337, allocations: 28.75 MB / 0.5799 GB, free: 14.53 MB / 427.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.7337, allocations: 0 / 0.5799 GB, free: 14.53 MB / 427.1 MB Notification: Performance of Transformations before backend: time 0.0001352/0.7339, allocations: 23.94 kB / 0.5799 GB, free: 14.51 MB / 427.1 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.002868/0.7368, allocations: 1.088 MB / 0.581 GB, free: 13.34 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.155e-05/0.7368, allocations: 12.03 kB / 0.581 GB, free: 13.32 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005276/0.7374, allocations: 94.78 kB / 0.5811 GB, free: 13.23 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002684/0.7401, allocations: 0.7221 MB / 0.5818 GB, free: 12.45 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.444e-05/0.7402, allocations: 19.92 kB / 0.5818 GB, free: 12.43 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.025e-05/0.7403, allocations: 23.94 kB / 0.5818 GB, free: 12.41 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006/0.7409, allocations: 189 kB / 0.582 GB, free: 12.23 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008314/0.7417, allocations: 369.3 kB / 0.5824 GB, free: 11.81 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.7418, allocations: 3.938 kB / 0.5824 GB, free: 11.8 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.116e-05/0.7419, allocations: 8 kB / 0.5824 GB, free: 11.8 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.7419, allocations: 4 kB / 0.5824 GB, free: 11.79 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0035/0.7454, allocations: 1.564 MB / 0.5839 GB, free: 10.16 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001143/0.7466, allocations: 471.3 kB / 0.5844 GB, free: 9.633 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004643/0.7471, allocations: 183 kB / 0.5845 GB, free: 9.43 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.299e-05/0.7472, allocations: 8.234 kB / 0.5845 GB, free: 9.422 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008296/0.748, allocations: 346.7 kB / 0.5849 GB, free: 9.047 MB / 427.1 MB Notification: Performance of pre-optimization done (n=48): time 4.679e-06/0.748, allocations: 0 / 0.5849 GB, free: 9.047 MB / 427.1 MB Notification: Performance of matching and sorting (n=48): time 0.001723/0.7498, allocations: 0.5043 MB / 0.5854 GB, free: 8.535 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002745/0.7501, allocations: 456.9 kB / 0.5858 GB, free: 7.984 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00241/0.7525, allocations: 0.9062 MB / 0.5867 GB, free: 7.055 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001842/0.7527, allocations: 29.7 kB / 0.5867 GB, free: 7.02 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004334/0.7532, allocations: 359.6 kB / 0.5871 GB, free: 6.668 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002485/0.7534, allocations: 126.3 kB / 0.5872 GB, free: 6.543 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.252e-05/0.7535, allocations: 0 / 0.5872 GB, free: 6.543 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.7537, allocations: 326.8 kB / 0.5875 GB, free: 6.215 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004013/0.7541, allocations: 133.1 kB / 0.5876 GB, free: 6.086 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006404/0.7547, allocations: 346.2 kB / 0.588 GB, free: 5.656 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004917/0.7552, allocations: 154.9 kB / 0.5881 GB, free: 5.508 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.246e-06/0.7553, allocations: 4 kB / 0.5881 GB, free: 5.504 MB / 427.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001181/0.7565, allocations: 417.2 kB / 0.5885 GB, free: 5.09 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.734e-05/0.7565, allocations: 4 kB / 0.5885 GB, free: 5.086 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.077e-05/0.7565, allocations: 4 kB / 0.5885 GB, free: 5.082 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.336e-05/0.7566, allocations: 15.92 kB / 0.5885 GB, free: 5.066 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006943/0.7573, allocations: 91.89 kB / 0.5886 GB, free: 4.977 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.591e-05/0.7573, allocations: 7.938 kB / 0.5886 GB, free: 4.969 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001014/0.7584, allocations: 67.72 kB / 0.5887 GB, free: 4.902 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.459e-05/0.7585, allocations: 23.98 kB / 0.5887 GB, free: 4.879 MB / 427.1 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.0002906/0.7588, allocations: 153.3 kB / 0.5889 GB, free: 4.723 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001674/0.7604, allocations: 0.5044 MB / 0.5893 GB, free: 4.211 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002864/0.7608, allocations: 102.8 kB / 0.5894 GB, free: 4.109 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001744/0.7625, allocations: 0.5755 MB / 0.59 GB, free: 3.52 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-05/0.7626, allocations: 8 kB / 0.59 GB, free: 3.512 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.7626, allocations: 0 / 0.59 GB, free: 3.512 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.601e-05/0.7626, allocations: 7.984 kB / 0.59 GB, free: 3.504 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00144/0.7641, allocations: 0.607 MB / 0.5906 GB, free: 2.859 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.633e-06/0.7641, allocations: 0 / 0.5906 GB, free: 2.859 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003405/0.7645, allocations: 51.91 kB / 0.5907 GB, free: 2.809 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.628e-05/0.7645, allocations: 11.95 kB / 0.5907 GB, free: 2.797 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.451e-05/0.7646, allocations: 7.984 kB / 0.5907 GB, free: 2.789 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.799e-05/0.7646, allocations: 4 kB / 0.5907 GB, free: 2.785 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.044e-06/0.7646, allocations: 8 kB / 0.5907 GB, free: 2.777 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001908/0.7666, allocations: 0.685 MB / 0.5914 GB, free: 2.004 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007042/0.7673, allocations: 223.8 kB / 0.5916 GB, free: 1.766 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002833/0.7676, allocations: 12 kB / 0.5916 GB, free: 1.754 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007319/0.7684, allocations: 55.95 kB / 0.5916 GB, free: 1.699 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001964/0.7686, allocations: 47.88 kB / 0.5917 GB, free: 1.652 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.979e-05/0.7687, allocations: 23.98 kB / 0.5917 GB, free: 1.629 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.001681/0.7704, allocations: 0.6992 MB / 0.5924 GB, free: 0.918 MB / 427.1 MB Notification: Performance of sort global known variables: time 9.42e-07/0.7704, allocations: 4 kB / 0.5924 GB, free: 0.9141 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.001459/0.7719, allocations: 163.8 kB / 0.5926 GB, free: 0.7539 MB / 427.1 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.00379/0.7757, allocations: 2.023 MB / 0.5945 GB, free: 14.7 MB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.001336/0.7771, allocations: 392.5 kB / 0.5949 GB, free: 14.32 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.7771, allocations: 0 / 0.5949 GB, free: 14.32 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007354/0.7779, allocations: 260.2 kB / 0.5951 GB, free: 14.06 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002174/0.7801, allocations: 250.7 kB / 0.5954 GB, free: 13.82 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004335/0.7844, allocations: 1.303 MB / 0.5967 GB, free: 12.45 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008786/0.7854, allocations: 1.012 MB / 0.5977 GB, free: 11.41 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001056/0.7865, allocations: 343.2 kB / 0.598 GB, free: 11.08 MB / 443.1 MB Notification: Performance of SimCode: time 1.142e-06/0.7865, allocations: 0 / 0.598 GB, free: 11.08 MB / 443.1 MB [CodegenCpp.tpl:12105:14-12105:14:writable] Error: Template error: literalExpConst failed: {}. [CodegenCpp.tpl:12051:14-12051:14:writable] Error: Template error: literalExpConst failed: {}.