Running command: translateModel(ModelicaTest.Blocks.Logical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|change1.u|edge1.u|fallingEdge.not_u|hysteresis.y|onOffController.y|pre1.u|rSFlipFlop.pre.u|table1.index|table1.nextTime|table1.y|table2.index|table2.nextTime|table2.y|timer.entryTime|triggeredTrapezoid.T|triggeredTrapezoid.endValue|triggeredTrapezoid.rate|triggeredTrapezoid.y|zeroCrossing.disable|zeroCrossing.enable|zeroCrossing.u_pos",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Logical") Notification: Performance of loadModel(ModelicaTest): time 2.297/2.297, allocations: 269 MB / 284.1 MB, free: 3.559 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.104e-05/3.104e-05, allocations: 7.984 kB / 349 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1304, allocations: 61.89 MB / 410.9 MB, free: 12.85 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.004428/0.1349, allocations: 2.249 MB / 413.2 MB, free: 10.58 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003295/0.1382, allocations: 1.189 MB / 414.4 MB, free: 9.383 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003502/0.1386, allocations: 19.94 kB / 414.4 MB, free: 9.363 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001323/0.1399, allocations: 347.1 kB / 414.7 MB, free: 9.023 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006762/0.1406, allocations: 187.5 kB / 414.9 MB, free: 8.84 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001298/0.1419, allocations: 315.2 kB / 415.2 MB, free: 8.531 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006336/0.1426, allocations: 280.4 kB / 415.5 MB, free: 8.258 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003468/0.143, allocations: 144.9 kB / 415.6 MB, free: 8.117 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004102/0.1434, allocations: 175.4 kB / 415.8 MB, free: 7.945 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004129/0.1438, allocations: 219.2 kB / 416 MB, free: 7.73 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002636/0.1441, allocations: 59.95 kB / 416.1 MB, free: 7.672 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001033/0.1442, allocations: 20 kB / 416.1 MB, free: 7.652 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001891/0.1444, allocations: 111.6 kB / 416.2 MB, free: 7.543 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001007/0.1445, allocations: 28 kB / 416.2 MB, free: 7.516 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007919/0.1453, allocations: 455.2 kB / 416.7 MB, free: 7.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.1453, allocations: 0 / 416.7 MB, free: 7.07 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.1454, allocations: 4 kB / 416.7 MB, free: 7.066 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.486e-05/0.1454, allocations: 7.938 kB / 416.7 MB, free: 7.059 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.002403/0.1478, allocations: 0.8362 MB / 417.5 MB, free: 6.16 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.1479, allocations: 8.031 kB / 417.5 MB, free: 6.152 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002066/0.1481, allocations: 71.16 kB / 417.6 MB, free: 6.082 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009172/0.149, allocations: 417.9 kB / 418 MB, free: 5.633 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.54e-05/0.1491, allocations: 33 kB / 418 MB, free: 5.602 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001196/0.1492, allocations: 55.94 kB / 418.1 MB, free: 5.547 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001419/0.1507, allocations: 455.7 kB / 418.5 MB, free: 5.082 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.906e-05/0.1507, allocations: 7.984 kB / 418.5 MB, free: 5.074 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.226e-05/0.1508, allocations: 16 kB / 418.6 MB, free: 5.059 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.537e-05/0.1508, allocations: 8 kB / 418.6 MB, free: 5.051 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001345/0.1521, allocations: 331.8 kB / 418.9 MB, free: 4.727 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003156/0.1553, allocations: 1.126 MB / 420 MB, free: 3.551 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002212/0.1576, allocations: 0.4977 MB / 420.5 MB, free: 3.043 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.564e-05/0.1577, allocations: 8.438 kB / 420.5 MB, free: 3.035 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001038/0.1587, allocations: 289.3 kB / 420.8 MB, free: 2.738 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 3.256e-06/0.1588, allocations: 0 / 420.8 MB, free: 2.738 MB / 346.7 MB Notification: Performance of matching and sorting (n=52): time 0.002651/0.1614, allocations: 0.6351 MB / 421.4 MB, free: 2.098 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.1616, allocations: 140.9 kB / 421.6 MB, free: 1.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009945/0.1626, allocations: 0.489 MB / 422.1 MB, free: 1.43 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.161e-05/0.1627, allocations: 45.7 kB / 422.1 MB, free: 1.379 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002364/0.1629, allocations: 279.9 kB / 422.4 MB, free: 1.105 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001748/0.1631, allocations: 130.4 kB / 422.5 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.684e-05/0.1632, allocations: 8 kB / 422.5 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.1633, allocations: 334.8 kB / 422.8 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007321/0.1641, allocations: 173 kB / 423 MB, free: 476 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008182/0.1649, allocations: 260.9 kB / 423.3 MB, free: 192 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006748/0.1656, allocations: 150.1 kB / 423.4 MB, free: 44 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.1656, allocations: 3.938 kB / 423.4 MB, free: 40 kB / 346.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.3176/0.4832, allocations: 459.3 kB / 423.9 MB, free: 12.79 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.283e-05/0.4833, allocations: 10.73 kB / 423.9 MB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.4833, allocations: 1.281 kB / 423.9 MB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.958e-05/0.4833, allocations: 3.406 kB / 423.9 MB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000558/0.4839, allocations: 71.56 kB / 423.9 MB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.533e-05/0.4839, allocations: 3.953 kB / 424 MB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007492/0.4847, allocations: 102.5 kB / 424.1 MB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.772e-05/0.4848, allocations: 17.77 kB / 424.1 MB, free: 12.79 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 58 ($whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition4,$whenCondition3,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,and1.y,xor.y,nor.y,nand.y,$PRE.pre1.u,pre1.u,pre1.y,$PRE.edge1.u,edge1.u,edge1.y,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u,$PRE.change1.u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,logicalSwitch.y,$PRE.hysteresis.y,hysteresis.y,$PRE.onOffController.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,timer.u,$PRE.timer.entryTime,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 68 * 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.0004163/0.4852, allocations: 224 kB / 424.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001191/0.4853, allocations: 51.05 kB / 424.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001921/0.4855, allocations: 62.28 kB / 424.4 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.4856, allocations: 5.594 kB / 424.4 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.4856, allocations: 0 / 424.4 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/0.4856, allocations: 6.609 kB / 424.4 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0031/0.4887, allocations: 1.1 MB / 425.5 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.4887, allocations: 0 / 425.5 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003097/0.4891, allocations: 44.45 kB / 425.6 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.896e-06/0.4891, allocations: 2.062 kB / 425.6 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.865e-05/0.4891, allocations: 11.36 kB / 425.6 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.157e-06/0.4892, allocations: 7.344 kB / 425.6 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/0.4892, allocations: 5.016 kB / 425.6 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001755/0.4909, allocations: 0.5683 MB / 426.1 MB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001297/0.4911, allocations: 134.7 kB / 426.3 MB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001334/0.4912, allocations: 18.23 kB / 426.3 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006825/0.4919, allocations: 75.78 kB / 426.4 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002752/0.4922, allocations: 78.22 kB / 426.4 MB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.926e-05/0.4923, allocations: 22.09 kB / 426.5 MB, free: 12.04 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006279/0.4929, allocations: 353.3 kB / 426.8 MB, free: 11.88 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.493, allocations: 0 / 426.8 MB, free: 11.88 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006559/0.4936, allocations: 127.6 kB / 426.9 MB, free: 11.86 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 43 (timer.u,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,and1.y,xor.y,nor.y,nand.y,pre1.u,pre1.y,edge1.u,edge1.y,fallingEdge.y,fallingEdge.not_u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,logicalSwitch.y,hysteresis.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u) * Number of discrete states: 15 (table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,pre1.u,zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable,hysteresis.y,onOffController.y,rSFlipFlop.pre.u,table2.combiTimeTable.nextTimeEventScaled,triggeredTrapezoid.y,table1.combiTimeTable.nextTimeEventScaled,fallingEdge.not_u,edge1.u,change1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.001214/0.4948, allocations: 445.1 kB / 427.4 MB, free: 11.65 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001717/0.4966, allocations: 451 kB / 427.8 MB, free: 11.52 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.4966, allocations: 0 / 427.8 MB, free: 11.52 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000828/0.4974, allocations: 234.3 kB / 428 MB, free: 11.45 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000719/0.4982, allocations: 85.25 kB / 428.1 MB, free: 11.42 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002248/0.5004, allocations: 1.04 MB / 429.2 MB, free: 10.79 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004702/0.5009, allocations: 0.8777 MB / 430 MB, free: 10.08 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003014/0.5013, allocations: 50.06 kB / 430.1 MB, free: 10.07 MB / 346.7 MB Notification: Performance of SimCode: time 1.122e-06/0.5013, allocations: 0 / 430.1 MB, free: 10.07 MB / 346.7 MB Notification: Performance of Templates: time 0.01839/0.5197, allocations: 6.949 MB / 437 MB, free: 9.141 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Logical.makefile clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DENABLE_OMSI -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/base" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/solver" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/" -I. "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_trunk_cpp_ModelicaTest.Blocks.LogicalCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest.Blocks.LogicalCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Blocks.LogicalCalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Blocks.LogicalFunctions.cpp:208:33: error: no matching function for call to 'ModelicaStandardTables_CombiTimeTable_init2' externalCombiTimeTable__ext = ModelicaStandardTables_CombiTimeTable_init2(fileName_.c_str(), tableName_.c_str(), tmp86.getData(), table_.getDim(1), table_.getDim(2), startTime__ext, ConstArray(columns_).getData(), columns_.getDim(1), smoothness__ext, extrapolation__ext, shiftTime__ext, timeEvents__ext, verboseRead__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaStandardTables.h:142:23: note: candidate function not viable: 7th argument ('const int *') would lose const qualifier MODELICA_EXPORT void* ModelicaStandardTables_CombiTimeTable_init2(_In_z_ const char* fileName, ^ 1 error generated. : recipe for target 'OMCppModelicaTest_trunk_cpp_ModelicaTest.Blocks.LogicalCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest.Blocks.LogicalCalcHelperMain.o] Error 1