Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_LinearSystems2_Modelica_LinearSystems2.Controller.Examples.Interpolator.conf.json Using package Modelica_LinearSystems2 with version 2.4.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica_LinearSystems2 2.4.0/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 4.0.0.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 4.0.0/package.mo) Running command: "" <> buildModelFMU(Modelica_LinearSystems2.Controller.Examples.Interpolator,fileNamePrefix="Modelica_LinearSystems2_Modelica_LinearSystems2_Controller_Examples_Interpolator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 4.0.0/package.mo): time 0.001816/0.001816, allocations: 94.52 kB / 7.57 MB, free: 1.496 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 4.0.0.mo): time 0.001053/0.001053, allocations: 170.9 kB / 8.148 MB, free: 0.918 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/package.mo): time 2.146/2.146, allocations: 225.3 MB / 233.9 MB, free: 5.211 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica_LinearSystems2 2.4.0/package.mo): time 0.363/0.363, allocations: 45.88 MB / 330.6 MB, free: 5.773 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.099e-05/3.117e-05, allocations: 4 kB / 395.8 MB, free: 4.375 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4186/0.4186, allocations: 59.46 MB / 455.3 MB, free: 15.79 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1714/0.5901, allocations: 87.1 MB / 0.5297 GB, free: 8.562 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica_LinearSystems2 2.4.0/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.0004462/0.5906, allocations: 84.02 kB / 0.5297 GB, free: 8.48 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica_LinearSystems2 2.4.0/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.03276/0.6234, allocations: 7.293 MB / 0.5369 GB, free: 1.184 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.6235, allocations: 0 / 0.5369 GB, free: 1.184 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.546e-05/0.6235, allocations: 4 kB / 0.5369 GB, free: 1.18 MB / 410.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.001433/0.625, allocations: 0.5527 MB / 0.5374 GB, free: 0.5859 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.625, allocations: 8.031 kB / 0.5374 GB, free: 0.5781 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001254/0.6252, allocations: 35.62 kB / 0.5375 GB, free: 0.543 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006284/0.6258, allocations: 314.7 kB / 0.5378 GB, free: 200 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.871e-05/0.6259, allocations: 15.98 kB / 0.5378 GB, free: 184 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.287e-05/0.626, allocations: 16 kB / 0.5378 GB, free: 168 kB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004438/0.6264, allocations: 140.8 kB / 0.5379 GB, free: 28 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007836/0.6272, allocations: 344.4 kB / 0.5382 GB, free: 15.64 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.6272, allocations: 0 / 0.5382 GB, free: 15.64 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.664e-05/0.6273, allocations: 8 kB / 0.5383 GB, free: 15.64 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.6273, allocations: 4 kB / 0.5383 GB, free: 15.63 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002142/0.6295, allocations: 1.315 MB / 0.5395 GB, free: 14.25 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007757/0.6303, allocations: 348.1 kB / 0.5399 GB, free: 13.88 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003224/0.6307, allocations: 128.8 kB / 0.54 GB, free: 13.75 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.055e-05/0.6307, allocations: 8.531 kB / 0.54 GB, free: 13.75 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005889/0.6313, allocations: 233.5 kB / 0.5402 GB, free: 13.5 MB / 426.7 MB Notification: Performance of pre-optimization done (n=39): time 3.937e-06/0.6313, allocations: 4 kB / 0.5402 GB, free: 13.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=39): time 0.001202/0.6325, allocations: 418.6 kB / 0.5406 GB, free: 13.09 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001223/0.6327, allocations: 122.8 kB / 0.5407 GB, free: 12.94 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003639/0.6331, allocations: 224.4 kB / 0.541 GB, free: 12.71 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.943e-05/0.6331, allocations: 37.7 kB / 0.541 GB, free: 12.67 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000141/0.6333, allocations: 149 kB / 0.5411 GB, free: 12.52 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.6334, allocations: 82.95 kB / 0.5412 GB, free: 12.44 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.526e-05/0.6335, allocations: 4 kB / 0.5412 GB, free: 12.44 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.6336, allocations: 350.8 kB / 0.5416 GB, free: 12.09 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000315/0.634, allocations: 109.1 kB / 0.5417 GB, free: 11.98 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004789/0.6345, allocations: 263.8 kB / 0.5419 GB, free: 11.67 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004126/0.6349, allocations: 158.8 kB / 0.5421 GB, free: 11.52 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.603e-06/0.6349, allocations: 0 / 0.5421 GB, free: 11.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001065/0.636, allocations: 422.3 kB / 0.5425 GB, free: 11.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/0.636, allocations: 8 kB / 0.5425 GB, free: 11.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.6361, allocations: 7.281 kB / 0.5425 GB, free: 11.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.605e-05/0.6361, allocations: 11.94 kB / 0.5425 GB, free: 11.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005413/0.6367, allocations: 75.94 kB / 0.5426 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.568e-05/0.6367, allocations: 8.359 kB / 0.5426 GB, free: 10.99 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003468/0.637, allocations: 27.75 kB / 0.5426 GB, free: 10.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.013e-05/0.6371, allocations: 23.98 kB / 0.5426 GB, free: 10.94 MB / 426.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.000343/0.6375, allocations: 169.3 kB / 0.5428 GB, free: 10.76 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001078/0.6386, allocations: 405.5 kB / 0.5432 GB, free: 10.36 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.714e-05/0.6387, allocations: 31.62 kB / 0.5432 GB, free: 10.33 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.119e-05/0.6388, allocations: 27.39 kB / 0.5432 GB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.6388, allocations: 8 kB / 0.5432 GB, free: 10.29 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.6388, allocations: 0 / 0.5432 GB, free: 10.29 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.6388, allocations: 3.984 kB / 0.5432 GB, free: 10.29 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002093/0.6409, allocations: 0.8973 MB / 0.5441 GB, free: 9.344 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.6409, allocations: 4 kB / 0.5441 GB, free: 9.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001149/0.6411, allocations: 11.94 kB / 0.5441 GB, free: 9.328 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.889e-06/0.6411, allocations: 7.984 kB / 0.5441 GB, free: 9.32 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.032e-05/0.6411, allocations: 7.984 kB / 0.5441 GB, free: 9.312 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/0.6412, allocations: 4 kB / 0.5441 GB, free: 9.309 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.177e-06/0.6412, allocations: 3.953 kB / 0.5442 GB, free: 9.305 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001079/0.6423, allocations: 0.5032 MB / 0.5446 GB, free: 8.785 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001019/0.6424, allocations: 100.7 kB / 0.5447 GB, free: 8.668 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001312/0.6425, allocations: 23.98 kB / 0.5448 GB, free: 8.645 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004198/0.643, allocations: 23.97 kB / 0.5448 GB, free: 8.621 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.323e-05/0.6431, allocations: 31.95 kB / 0.5448 GB, free: 8.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.684e-05/0.6431, allocations: 23.94 kB / 0.5448 GB, free: 8.566 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002421/0.6434, allocations: 160.5 kB / 0.545 GB, free: 8.41 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.7e-07/0.6434, allocations: 0 / 0.545 GB, free: 8.41 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005915/0.644, allocations: 71.92 kB / 0.5451 GB, free: 8.34 MB / 426.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: 35 (interpolator2.discreteInterpolator.outputSampleTrigger,interpolator3.discreteInterpolator.outputSampleTrigger,interpolator3.discreteFIR.sampleTrigger,sampler.discretePart.sampleTrigger,sampleClock.sampleTrigger,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,interpolator2.discreteInterpolator.y,interpolator2.discreteInterpolator.outputTicks,interpolator2.discreteInterpolator.ticks,interpolator2.discreteInterpolator.pre_u,interpolator2.discreteInterpolator.sampleIn,interpolator3.discreteInterpolator.y,interpolator3.discreteInterpolator.outputTicks,interpolator3.discreteInterpolator.ticks,interpolator3.discreteInterpolator.pre_u,interpolator3.discreteInterpolator.sampleIn,interpolator3.discreteFIR.u_sampled,interpolator3.discreteFIR.ticks,interpolator3.discreteFIR.x[1],interpolator3.discreteFIR.x[2],interpolator3.discreteFIR.x[3],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,sampler.discretePart.ticks) * Number of discrete states: 14 (sampler.discretePart.ticks,interpolator3.discreteFIR.ticks,interpolator3.discreteFIR.u,interpolator3.discreteFIR.x[1],interpolator3.discreteFIR.x[2],interpolator3.discreteFIR.x[3],interpolator3.discreteInterpolator.outputTicks,interpolator3.discreteInterpolator.ticks,interpolator3.discreteInterpolator.u,interpolator3.discreteInterpolator.pre_u,interpolator2.discreteInterpolator.outputTicks,interpolator2.discreteInterpolator.ticks,interpolator2.discreteInterpolator.u,interpolator2.discreteInterpolator.pre_u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 23 * 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.001622/0.6456, allocations: 1.094 MB / 0.5461 GB, free: 7.223 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008757/0.6465, allocations: 319.7 kB / 0.5464 GB, free: 6.91 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.6466, allocations: 4 kB / 0.5464 GB, free: 6.906 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003549/0.6469, allocations: 139.9 kB / 0.5466 GB, free: 6.77 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007521/0.6477, allocations: 78.28 kB / 0.5466 GB, free: 6.695 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001456/0.6492, allocations: 433 kB / 0.5471 GB, free: 6.234 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004375/0.6496, allocations: 0.7774 MB / 0.5478 GB, free: 5.43 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002255/0.6499, allocations: 49.78 kB / 0.5479 GB, free: 5.383 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002163/0.6501, allocations: 91.41 kB / 0.548 GB, free: 5.293 MB / 426.7 MB Notification: Performance of SimCode: time 9.52e-07/0.6501, allocations: 0 / 0.548 GB, free: 5.293 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3751/1.025, allocations: 6.535 MB / 0.5543 GB, free: 102.9 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002062/1.025, allocations: 157.6 kB / 0.5545 GB, free: 102.7 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.359/3.384, allocations: 0 / 0.5545 GB, free: 102.7 MB / 426.7 MB