Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_LinearSystems2_Modelica_LinearSystems2.Controller.Examples.Interpolator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/DymolaCommands master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_LinearSystems2 2.5.0-master/package.mo", uses=false) Using package Modelica_LinearSystems2 with version 2.5.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_LinearSystems2 2.5.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package DymolaCommands with version 0.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/DymolaCommands master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_LinearSystems2.Controller.Examples.Interpolator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_LinearSystems2_Modelica_LinearSystems2.Controller.Examples.Interpolator") translateModel(Modelica_LinearSystems2.Controller.Examples.Interpolator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_LinearSystems2_Modelica_LinearSystems2.Controller.Examples.Interpolator") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003236/0.003236, allocations: 182.8 kB / 7.459 MB, free: 2.484 MB / 5.871 MB [/home/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DymolaCommands master/package.mo): time 0.0003957/0.0003957, allocations: 24.42 kB / 7.89 MB, free: 2.301 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.276/1.276, allocations: 221.4 MB / 229.7 MB, free: 2.977 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001065, allocations: 104.5 kB / 280.6 MB, free: 1.188 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_LinearSystems2 2.5.0-master/package.mo): time 0.421/0.421, allocations: 44.31 MB / 375.7 MB, free: 41.61 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.081e-05/1.084e-05, allocations: 4 kB / 441.8 MB, free: 14.93 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1641/0.1642, allocations: 59.37 MB / 0.4894 GB, free: 3.508 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4305/0.5947, allocations: 87.35 MB / 0.5747 GB, free: 3.699 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.007359/0.6022, allocations: 2.149 MB / 0.5768 GB, free: 1.605 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.02117/0.6234, allocations: 7.213 MB / 0.5838 GB, free: 10.43 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.531e-05/0.6235, allocations: 8.219 kB / 0.5839 GB, free: 10.42 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.001218/0.6247, allocations: 0.5822 MB / 0.5844 GB, free: 9.801 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.6248, allocations: 8.031 kB / 0.5844 GB, free: 9.793 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.617e-05/0.6249, allocations: 31.62 kB / 0.5845 GB, free: 9.762 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005183/0.6254, allocations: 320.7 kB / 0.5848 GB, free: 9.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.566e-05/0.6255, allocations: 12 kB / 0.5848 GB, free: 9.398 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.462e-05/0.6255, allocations: 33.86 kB / 0.5848 GB, free: 9.367 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003119/0.6259, allocations: 136.8 kB / 0.5849 GB, free: 9.234 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005812/0.6264, allocations: 340.4 kB / 0.5853 GB, free: 8.859 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.6265, allocations: 0 / 0.5853 GB, free: 8.859 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.926e-05/0.6265, allocations: 7.984 kB / 0.5853 GB, free: 8.852 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.6265, allocations: 4 kB / 0.5853 GB, free: 8.848 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001459/0.628, allocations: 1.293 MB / 0.5865 GB, free: 7.488 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005364/0.6285, allocations: 336.1 kB / 0.5869 GB, free: 7.133 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002603/0.6288, allocations: 136.8 kB / 0.587 GB, free: 6.996 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.284e-05/0.6288, allocations: 0 / 0.587 GB, free: 6.996 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003746/0.6292, allocations: 234.6 kB / 0.5872 GB, free: 6.754 MB / 410.7 MB Notification: Performance of pre-optimization done (n=39): time 1.673e-06/0.6292, allocations: 3.938 kB / 0.5872 GB, free: 6.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=39): time 0.0006353/0.6299, allocations: 314.8 kB / 0.5875 GB, free: 6.438 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.408e-05/0.63, allocations: 118.8 kB / 0.5876 GB, free: 6.297 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002763/0.6303, allocations: 227.9 kB / 0.5878 GB, free: 6.07 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.085e-05/0.6303, allocations: 37.7 kB / 0.5879 GB, free: 6.027 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.865e-05/0.6304, allocations: 132.7 kB / 0.588 GB, free: 5.895 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.6305, allocations: 86.95 kB / 0.5881 GB, free: 5.809 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.45e-05/0.6306, allocations: 0 / 0.5881 GB, free: 5.809 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.6307, allocations: 342.8 kB / 0.5884 GB, free: 5.465 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002149/0.631, allocations: 122.3 kB / 0.5885 GB, free: 5.348 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003204/0.6313, allocations: 256.7 kB / 0.5888 GB, free: 5.039 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002706/0.6316, allocations: 161 kB / 0.5889 GB, free: 4.883 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.6316, allocations: 0 / 0.5889 GB, free: 4.883 MB / 410.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0006587/0.6322, allocations: 431.3 kB / 0.5893 GB, free: 4.461 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.6323, allocations: 4 kB / 0.5894 GB, free: 4.457 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.6323, allocations: 4 kB / 0.5894 GB, free: 4.453 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.173e-05/0.6323, allocations: 8 kB / 0.5894 GB, free: 4.445 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003/0.6326, allocations: 75.84 kB / 0.5894 GB, free: 4.371 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.624e-05/0.6326, allocations: 16.23 kB / 0.5895 GB, free: 4.355 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002068/0.6328, allocations: 27.75 kB / 0.5895 GB, free: 4.328 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.247e-05/0.6329, allocations: 22.06 kB / 0.5895 GB, free: 4.309 MB / 410.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.0002421/0.6331, allocations: 167.9 kB / 0.5897 GB, free: 4.137 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.81e-05/0.6332, allocations: 33.64 kB / 0.5897 GB, free: 4.105 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.975e-05/0.6333, allocations: 26.97 kB / 0.5897 GB, free: 4.086 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.6333, allocations: 4 kB / 0.5897 GB, free: 4.082 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.287e-06/0.6333, allocations: 7.891 kB / 0.5897 GB, free: 4.074 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.6333, allocations: 4 kB / 0.5897 GB, free: 4.07 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001271/0.6346, allocations: 0.8016 MB / 0.5905 GB, free: 3.223 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-06/0.6346, allocations: 0 / 0.5905 GB, free: 3.223 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.556e-05/0.6347, allocations: 23.3 kB / 0.5905 GB, free: 3.203 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.6347, allocations: 0 / 0.5905 GB, free: 3.203 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.642e-05/0.6347, allocations: 11.98 kB / 0.5905 GB, free: 3.191 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.6347, allocations: 3.938 kB / 0.5906 GB, free: 3.188 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.6347, allocations: 7.906 kB / 0.5906 GB, free: 3.18 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006105/0.6354, allocations: 418.9 kB / 0.591 GB, free: 2.754 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.654e-05/0.6355, allocations: 100.8 kB / 0.5911 GB, free: 2.637 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.772e-05/0.6356, allocations: 23.98 kB / 0.5911 GB, free: 2.613 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002631/0.6358, allocations: 23.97 kB / 0.5911 GB, free: 2.59 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.376e-05/0.6359, allocations: 35.86 kB / 0.5911 GB, free: 2.555 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.394e-05/0.636, allocations: 15.98 kB / 0.5911 GB, free: 2.539 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001726/0.6361, allocations: 168.5 kB / 0.5913 GB, free: 2.375 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003721/0.6365, allocations: 63.92 kB / 0.5914 GB, free: 2.312 MB / 410.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.0002433/0.6368, allocations: 146.3 kB / 0.5915 GB, free: 2.16 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005584/0.6373, allocations: 336.3 kB / 0.5918 GB, free: 1.832 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.6373, allocations: 4.062 kB / 0.5918 GB, free: 1.828 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002441/0.6376, allocations: 152.6 kB / 0.592 GB, free: 1.676 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004907/0.6381, allocations: 80.72 kB / 0.5921 GB, free: 1.605 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008776/0.639, allocations: 384.2 kB / 0.5924 GB, free: 1.211 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005239/0.6395, allocations: 0.8104 MB / 0.5932 GB, free: 388 kB / 410.7 MB Notification: Performance of SimCode: time 3.2e-07/0.6395, allocations: 3.938 kB / 0.5932 GB, free: 384 kB / 410.7 MB Notification: Performance of Templates: time 0.009308/0.6488, allocations: 4.747 MB / 0.5979 GB, free: 11.7 MB / 426.7 MB make -j1 -f Modelica_LinearSystems2_Modelica_LinearSystems2.Controller.Examples.Interpolator.makefile (rm -f Modelica_LinearSystems2_Modelica_LinearSystems2.Controller.Examples.Interpolator.pipe ; mkfifo Modelica_LinearSystems2_Modelica_LinearSystems2.Controller.Examples.Interpolator.pipe ; head -c 1048576 < Modelica_LinearSystems2_Modelica_LinearSystems2.Controller.Examples.Interpolator.pipe >> ../files/Modelica_LinearSystems2_Modelica_LinearSystems2.Controller.Examples.Interpolator.sim & ./Modelica_LinearSystems2_Modelica_LinearSystems2.Controller.Examples.Interpolator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_LinearSystems2_Modelica_LinearSystems2.Controller.Examples.Interpolator.pipe 2>&1)