Running command: translateModel(Modelica_LinearSystems2.Controller.Examples.Interpolator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_LinearSystems2_Modelica_LinearSystems2.Controller.Examples.Interpolator") Notification: Performance of loadModel(Modelica_LinearSystems2): time 3.159/3.159, allocations: 241.2 MB / 248.7 MB, free: 180 kB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.389e-05/3.41e-05, allocations: 4 kB / 304.5 MB, free: 10.8 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1418, allocations: 53.55 MB / 358.1 MB, free: 5.129 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7846/0.9265, allocations: 81.76 MB / 439.8 MB, free: 5.41 MB / 346.7 MB [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica_LinearSystems2 2.3.4/package.mo:6:3-7:74:writable] Warning: classDirectory() is a non-standard operator that was replaced by Modelica.Utilities.Files.loadResource(uri) before it was added to the language specification. Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005653/0.9271, allocations: 80.14 kB / 439.9 MB, free: 5.41 MB / 346.7 MB [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica_LinearSystems2 2.3.4/package.mo:6:3-7:74:writable] Warning: classDirectory() is a non-standard operator that was replaced by Modelica.Utilities.Files.loadResource(uri) before it was added to the language specification. Notification: Performance of FrontEnd - DAE generated: time 0.05126/0.9784, allocations: 7.145 MB / 447.1 MB, free: 2.859 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.9785, allocations: 0 / 447.1 MB, free: 2.859 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.843e-05/0.9785, allocations: 6.891 kB / 447.1 MB, free: 2.859 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.002138/0.9807, allocations: 0.551 MB / 447.6 MB, free: 2.391 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.404e-05/0.9808, allocations: 11.7 kB / 447.6 MB, free: 2.387 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001903/0.981, allocations: 38.66 kB / 447.7 MB, free: 2.367 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000887/0.9819, allocations: 290.6 kB / 447.9 MB, free: 2.129 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.075e-05/0.982, allocations: 23.67 kB / 448 MB, free: 2.117 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001502/0.9822, allocations: 23.23 kB / 448 MB, free: 2.113 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007032/0.9829, allocations: 133.8 kB / 448.1 MB, free: 2.105 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001114/0.984, allocations: 346.8 kB / 448.5 MB, free: 1.914 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.272e-05/0.9841, allocations: 0 / 448.5 MB, free: 1.914 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.556e-05/0.9842, allocations: 19.12 kB / 448.5 MB, free: 1.902 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.447e-05/0.9842, allocations: 3.656 kB / 448.5 MB, free: 1.902 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002749/0.987, allocations: 1.31 MB / 449.8 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001139/0.9882, allocations: 344.2 kB / 450.1 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005011/0.9887, allocations: 124.7 kB / 450.3 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.493e-05/0.9888, allocations: 7.844 kB / 450.3 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008625/0.9897, allocations: 242.4 kB / 450.5 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of pre-optimization done (n=39): time 6.362e-06/0.9897, allocations: 0 / 450.5 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of matching and sorting (n=39): time 0.001765/0.9915, allocations: 422.8 kB / 450.9 MB, free: 472 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.505e-05/0.9916, allocations: 118.2 kB / 451 MB, free: 340 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004803/0.9921, allocations: 228.9 kB / 451.2 MB, free: 216 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001019/0.9922, allocations: 37.31 kB / 451.3 MB, free: 180 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001543/0.9924, allocations: 151 kB / 451.4 MB, free: 60 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000159/0.9926, allocations: 93.69 kB / 451.5 MB, free: 4 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.347e-05/0.9926, allocations: 0 / 451.5 MB, free: 4 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002653/0.9929, allocations: 339.6 kB / 451.9 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000488/0.9934, allocations: 119.3 kB / 452 MB, free: 15.67 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007123/0.9942, allocations: 256.2 kB / 452.2 MB, free: 15.51 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006274/0.9948, allocations: 149.8 kB / 452.4 MB, free: 15.49 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.837e-06/0.9948, allocations: 0 / 452.4 MB, free: 15.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001614/0.9965, allocations: 431.2 kB / 452.8 MB, free: 15.37 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.243e-05/0.9965, allocations: 7.719 kB / 452.8 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.597e-05/0.9966, allocations: 3.875 kB / 452.8 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.014e-05/0.9966, allocations: 7.953 kB / 452.8 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008934/0.9975, allocations: 77.69 kB / 452.9 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.357e-05/0.9976, allocations: 8.141 kB / 452.9 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000642/0.9982, allocations: 35.23 kB / 452.9 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.077e-05/0.9983, allocations: 19.56 kB / 452.9 MB, free: 15.32 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: interpolator3.discreteInterpolator.sampleIn:DISCRETE(fixed = false protected = true ) type: Boolean interpolator2.discreteInterpolator.sampleIn:DISCRETE(fixed = false protected = true ) type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 61 ($PRE.interpolator3.discreteInterpolator.ticks,interpolator3.discreteInterpolator.ticks,$PRE.interpolator2.discreteInterpolator.ticks,interpolator2.discreteInterpolator.ticks,$whenCondition5,$PRE.interpolator3.discreteInterpolator.sampleIn,interpolator3.discreteInterpolator.sampleIn,$whenCondition3,$PRE.interpolator2.discreteInterpolator.sampleIn,interpolator2.discreteInterpolator.sampleIn,$whenCondition7,$whenCondition6,$whenCondition4,$whenCondition2,$whenCondition1,sampleClock.sampleTrigger,interpolator2.discreteInterpolator.outputSampleTrigger,$PRE.interpolator2.discreteInterpolator.outputTicks,interpolator2.discreteInterpolator.outputTicks,interpolator3.discreteInterpolator.outputSampleTrigger,$PRE.interpolator3.discreteInterpolator.outputTicks,interpolator3.discreteInterpolator.outputTicks,$PRE.interpolator3.discreteFIR.ticks,interpolator3.discreteFIR.ticks,interpolator3.discreteFIR.sampleTrigger,$PRE.sampler.discretePart.ticks,sampler.discretePart.ticks,sampler.discretePart.sampleTrigger,$PRE.interpolator2.discreteInterpolator.y,interpolator2.discreteInterpolator.y,$PRE.interpolator2.discreteInterpolator.pre_u,interpolator2.discreteInterpolator.pre_u,$PRE.interpolator3.discreteInterpolator.y,interpolator3.discreteInterpolator.y,$PRE.interpolator3.discreteInterpolator.pre_u,interpolator3.discreteInterpolator.pre_u,interpolator3.discreteFIR.u_sampled,$PRE.interpolator3.discreteFIR.x[1],interpolator3.discreteFIR.x[1],$PRE.interpolator3.discreteFIR.x[2],interpolator3.discreteFIR.x[2],$PRE.interpolator3.discreteFIR.x[3],interpolator3.discreteFIR.x[3],$PRE.interpolator3.discreteFIR.x[4],interpolator3.discreteFIR.x[4],interpolator3.discreteFIR.sum[1],interpolator3.discreteFIR.sum[2],interpolator3.discreteFIR.sum[3],interpolator3.discreteFIR.sum[4],interpolator3.discreteFIR.y_sampled,sampler.discretePart.u_sampled,interpolator3.discreteInterpolator.inputOutputSampleFactor,interpolator2.discreteInterpolator.inputOutputSampleFactor,sampler.discretePart.cont,sampler.cont,interpolator3.discreteFIR.cont,interpolator3.discreteInterpolator.cont,interpolator3.cont,interpolator2.discreteInterpolator.cont,interpolator2.cont,interpolator1.cont) * 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.000482/0.9988, allocations: 164.5 kB / 453.1 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001564/0.999, allocations: 31.03 kB / 453.1 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001232/0.9992, allocations: 26.86 kB / 453.2 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.479e-05/0.9992, allocations: 3.984 kB / 453.2 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/0.9992, allocations: 0 / 453.2 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001621/0.9994, allocations: 116.1 kB / 453.3 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002499/0.9997, allocations: 23.27 kB / 453.3 MB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007426/1, allocations: 23.34 kB / 453.3 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001673/1.001, allocations: 31.2 kB / 453.4 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001827/1.002, allocations: 0.491 MB / 453.8 MB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001786/1.004, allocations: 0.5792 MB / 454.4 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004977/1.005, allocations: 139.1 kB / 454.6 MB, free: 14.54 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003573/1.005, allocations: 169.8 kB / 454.7 MB, free: 14.45 MB / 362.7 MB Notification: Performance of Backend: time 1.022e-06/1.005, allocations: 0 / 454.7 MB, free: 14.45 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00158/1.007, allocations: 329 kB / 455 MB, free: 14.33 MB / 362.7 MB Notification: Performance of SimCode: time 0.002471/1.009, allocations: 0.8374 MB / 455.9 MB, free: 13.58 MB / 362.7 MB Notification: Performance of Templates: time 0.02587/1.035, allocations: 4.725 MB / 460.6 MB, free: 8.902 MB / 362.7 MB make -j1 -f Modelica_LinearSystems2_Modelica_LinearSystems2.Controller.Examples.Interpolator.makefile clang -Os -fPIC -mfpmath=sse -I"/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_LinearSystems2_Modelica_LinearSystems2_Controller_Examples_Interpolator -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 Modelica_LinearSystems2_Modelica_LinearSystems2.Controller.Examples.Interpolator.o Modelica_LinearSystems2_Modelica_LinearSystems2.Controller.Examples.Interpolator.c clang -Os -fPIC -mfpmath=sse -I"/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_LinearSystems2_Modelica_LinearSystems2_Controller_Examples_Interpolator -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 Modelica_LinearSystems2_Modelica_LinearSystems2.Controller.Examples.Interpolator_functions.o Modelica_LinearSystems2_Modelica_LinearSystems2.Controller.Examples.Interpolator_functions.c Modelica_LinearSystems2_Modelica_LinearSystems2.Controller.Examples.Interpolator_functions.c:59:10: error: assigning to 'int' from incompatible type 'div_t' _z_ext = div(_x_ext, _y_ext); ^ ~~~~~~~~~~~~~~~~~~~ Modelica_LinearSystems2_Modelica_LinearSystems2.Controller.Examples.Interpolator_functions.c:109:10: error: assigning to 'double' from incompatible type 'div_t' _z_ext = div(_x_ext, _y_ext); ^ ~~~~~~~~~~~~~~~~~~~ 2 errors generated. : recipe for target 'Modelica_LinearSystems2_Modelica_LinearSystems2.Controller.Examples.Interpolator_functions.o' failed make: *** [Modelica_LinearSystems2_Modelica_LinearSystems2.Controller.Examples.Interpolator_functions.o] Error 1