Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_LinearSystems2_Modelica_LinearSystems2.Controller.Examples.Interpolator.conf.json Using package Modelica_LinearSystems2 with version 2.4.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_LinearSystems2 2.4.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package DymolaCommands with version 0.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/DymolaCommands master/package.mo) Using package Complex with version 4.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.01048/0.01048, allocations: 170.7 kB / 15.11 MB, free: 5.934 MB / 13.93 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/DymolaCommands master/package.mo:17:42-17:258:writable] Notification: This is an open source dummy package of a commercial library. If you want it to be supported, you will need to add an implemention on our github repository: https://github.com/Modelica-OpenVendorSpecificLibraries. Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/DymolaCommands master/package.mo): time 0.0005626/0.0005618, allocations: 23.53 kB / 15.88 MB, free: 5.91 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.069/2.069, allocations: 223.3 MB / 239.9 MB, free: 15.98 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 106.5 kB / 291.1 MB, free: 4.598 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_LinearSystems2 2.4.0-master/package.mo): time 0.3616/0.3616, allocations: 45.29 MB / 387.5 MB, free: 0.707 MB / 314.7 MB Notification: Modelica_LinearSystems2 requested package DymolaCommands of version 1.8. DymolaCommands 0.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0009056/0.0009058, allocations: 21.94 kB / 458.9 MB, free: 71.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1126, allocations: 59.46 MB / 0.5062 GB, free: 12.13 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5112/0.6238, allocations: 87.86 MB / 0.592 GB, free: 0.7891 MB / 378.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_LinearSystems2 2.4.0-master/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.0004304/0.6243, allocations: 91.27 kB / 0.5921 GB, free: 0.7422 MB / 378.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_LinearSystems2 2.4.0-master/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.03405/0.6583, allocations: 7.359 MB / 0.5993 GB, free: 10.58 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.6584, allocations: 4.188 kB / 0.5993 GB, free: 10.58 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.204e-05/0.6584, allocations: 11.92 kB / 0.5993 GB, free: 10.57 MB / 394.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.001776/0.6602, allocations: 0.5836 MB / 0.5998 GB, free: 9.961 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/0.6603, allocations: 8.031 kB / 0.5998 GB, free: 9.953 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001593/0.6605, allocations: 59.47 kB / 0.5999 GB, free: 9.898 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000125/0.6606, allocations: 31.62 kB / 0.5999 GB, free: 9.867 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006605/0.6613, allocations: 314.5 kB / 0.6002 GB, free: 9.555 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.39e-05/0.6614, allocations: 24.11 kB / 0.6003 GB, free: 9.539 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.653e-05/0.6614, allocations: 23.06 kB / 0.6003 GB, free: 9.523 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001221/0.6627, allocations: 399.9 kB / 0.6007 GB, free: 9.172 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.212e-05/0.6627, allocations: 7.938 kB / 0.6007 GB, free: 9.164 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.788e-05/0.6628, allocations: 11.88 kB / 0.6007 GB, free: 9.16 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.994e-05/0.6628, allocations: 8 kB / 0.6007 GB, free: 9.152 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008459/0.6637, allocations: 207.4 kB / 0.6009 GB, free: 9 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002264/0.666, allocations: 1.358 MB / 0.6022 GB, free: 7.727 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001631/0.6677, allocations: 452.5 kB / 0.6026 GB, free: 7.359 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.848e-05/0.6678, allocations: 4.531 kB / 0.6026 GB, free: 7.355 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009378/0.6687, allocations: 282.7 kB / 0.6029 GB, free: 7.129 MB / 394.7 MB Notification: Performance of pre-optimization done (n=39): time 4.018e-06/0.6687, allocations: 0 / 0.6029 GB, free: 7.129 MB / 394.7 MB Notification: Performance of matching and sorting (n=39): time 0.002504/0.6713, allocations: 0.6434 MB / 0.6035 GB, free: 6.625 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/0.6714, allocations: 118.5 kB / 0.6037 GB, free: 6.488 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004346/0.6719, allocations: 239.2 kB / 0.6039 GB, free: 6.289 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001132/0.672, allocations: 43.52 kB / 0.6039 GB, free: 6.25 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.6721, allocations: 147 kB / 0.6041 GB, free: 6.129 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001338/0.6723, allocations: 97.11 kB / 0.6042 GB, free: 6.051 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.762e-05/0.6723, allocations: 15.19 kB / 0.6042 GB, free: 6.043 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001861/0.6725, allocations: 348.7 kB / 0.6045 GB, free: 5.707 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004649/0.673, allocations: 131.6 kB / 0.6046 GB, free: 5.621 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006291/0.6737, allocations: 282.5 kB / 0.6049 GB, free: 5.355 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005513/0.6742, allocations: 174.9 kB / 0.6051 GB, free: 5.254 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.516e-06/0.6742, allocations: 0 / 0.6051 GB, free: 5.254 MB / 394.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001307/0.6756, allocations: 496.3 kB / 0.6055 GB, free: 4.891 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.895e-05/0.6756, allocations: 4 kB / 0.6055 GB, free: 4.887 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.6757, allocations: 4 kB / 0.6055 GB, free: 4.883 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.193e-05/0.6757, allocations: 8 kB / 0.6056 GB, free: 4.875 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005201/0.6762, allocations: 83.52 kB / 0.6056 GB, free: 4.797 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.867e-05/0.6763, allocations: 8.375 kB / 0.6056 GB, free: 4.789 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003875/0.6767, allocations: 40.75 kB / 0.6057 GB, free: 4.758 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.863e-05/0.6767, allocations: 19.5 kB / 0.6057 GB, free: 4.742 MB / 394.7 MB Warning: Assuming fixed start value for the following 2 variables: interpolator3.discreteInterpolator.sampleIn:DISCRETE(fixed = true protected = true ) type: Boolean interpolator2.discreteInterpolator.sampleIn:DISCRETE(fixed = true 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 () * Number of clocked 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.0005062/0.6772, allocations: 221.7 kB / 0.6059 GB, free: 4.539 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001489/0.6774, allocations: 35.61 kB / 0.6059 GB, free: 4.504 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.862e-05/0.6775, allocations: 20.53 kB / 0.606 GB, free: 4.492 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-05/0.6775, allocations: 4 kB / 0.606 GB, free: 4.488 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.6776, allocations: 7.938 kB / 0.606 GB, free: 4.48 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.6776, allocations: 3.984 kB / 0.606 GB, free: 4.477 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003793/0.6814, allocations: 1.019 MB / 0.607 GB, free: 3.605 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.6815, allocations: 0 / 0.607 GB, free: 3.605 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001495/0.6816, allocations: 20 kB / 0.607 GB, free: 3.586 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.188e-05/0.6817, allocations: 0 / 0.607 GB, free: 3.586 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.251e-05/0.6817, allocations: 19.09 kB / 0.607 GB, free: 3.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.367e-06/0.6818, allocations: 4 kB / 0.607 GB, free: 3.566 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.543e-06/0.6818, allocations: 3.953 kB / 0.607 GB, free: 3.562 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002385/0.6842, allocations: 0.5813 MB / 0.6076 GB, free: 3.078 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001794/0.6844, allocations: 108.7 kB / 0.6077 GB, free: 2.953 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001909/0.6846, allocations: 28.86 kB / 0.6077 GB, free: 2.938 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005673/0.6852, allocations: 27.47 kB / 0.6077 GB, free: 2.914 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/0.6854, allocations: 35.27 kB / 0.6078 GB, free: 2.883 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.144e-05/0.6855, allocations: 19.38 kB / 0.6078 GB, free: 2.867 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003732/0.6859, allocations: 176.8 kB / 0.608 GB, free: 2.723 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6859, allocations: 0 / 0.608 GB, free: 2.723 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009357/0.6868, allocations: 78.12 kB / 0.608 GB, free: 2.66 MB / 394.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) * Number of clocked states: 0 () * 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.003301/0.6901, allocations: 1.183 MB / 0.6092 GB, free: 1.578 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002074/0.6923, allocations: 391.7 kB / 0.6096 GB, free: 1.289 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/0.6924, allocations: 0 / 0.6096 GB, free: 1.289 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001111/0.6935, allocations: 195.2 kB / 0.6098 GB, free: 1.145 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001193/0.6947, allocations: 78.28 kB / 0.6098 GB, free: 1.082 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007663/0.7024, allocations: 4.092 MB / 0.6138 GB, free: 13.25 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005943/0.7031, allocations: 0.7738 MB / 0.6146 GB, free: 12.46 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003996/0.7035, allocations: 51.98 kB / 0.6146 GB, free: 12.4 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002632/0.7038, allocations: 88.09 kB / 0.6147 GB, free: 12.37 MB / 410.7 MB Notification: Performance of SimCode: time 1.152e-06/0.7038, allocations: 0 / 0.6147 GB, free: 12.37 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0801/0.7839, allocations: 7.067 MB / 0.6216 GB, free: 5.527 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003533/0.7844, allocations: 195.3 kB / 0.6218 GB, free: 5.289 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.585/3.369, allocations: 0 / 0.6218 GB, free: 5.289 MB / 410.7 MB