Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_LinearSystems2_dev_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 3.0.0-dev/package.mo", uses=false) Using package Modelica_LinearSystems2 with version 3.0.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_LinearSystems2 3.0.0-dev/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_dev_Modelica_LinearSystems2.Controller.Examples.Interpolator") translateModel(Modelica_LinearSystems2.Controller.Examples.Interpolator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_LinearSystems2_dev_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.004442/0.004442, allocations: 191.1 kB / 7.458 MB, free: 2.516 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.0004313/0.0004314, allocations: 22.2 kB / 7.889 MB, free: 2.32 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.488/1.488, allocations: 221.4 MB / 229.7 MB, free: 3.215 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.000986/0.0009861, allocations: 99.8 kB / 280.6 MB, free: 1.164 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_LinearSystems2 3.0.0-dev/package.mo): time 0.4567/0.4567, allocations: 44.4 MB / 375.8 MB, free: 41.56 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.935e-06/7.965e-06, allocations: 0 / 441.9 MB, free: 14.74 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1506/0.1506, allocations: 59.38 MB / 0.4895 GB, free: 3.305 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3895/0.5402, allocations: 87.38 MB / 0.5749 GB, free: 3.363 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.006481/0.5467, allocations: 2.149 MB / 0.577 GB, free: 1.273 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.02058/0.5673, allocations: 7.218 MB / 0.584 GB, free: 10.08 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.135e-05/0.5674, allocations: 12 kB / 0.584 GB, free: 10.07 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.001196/0.5686, allocations: 0.5746 MB / 0.5846 GB, free: 9.461 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.5687, allocations: 11.97 kB / 0.5846 GB, free: 9.449 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.473e-05/0.5688, allocations: 32.25 kB / 0.5846 GB, free: 9.418 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005001/0.5693, allocations: 313.6 kB / 0.5849 GB, free: 9.074 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.944e-05/0.5693, allocations: 19.91 kB / 0.5849 GB, free: 9.055 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.204e-05/0.5694, allocations: 23.98 kB / 0.585 GB, free: 9.031 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000326/0.5697, allocations: 136.8 kB / 0.5851 GB, free: 8.898 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005212/0.5703, allocations: 336.4 kB / 0.5854 GB, free: 8.527 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.5703, allocations: 5.125 kB / 0.5854 GB, free: 8.523 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.658e-05/0.5703, allocations: 7.984 kB / 0.5854 GB, free: 8.516 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.5703, allocations: 9.219 kB / 0.5854 GB, free: 8.508 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001424/0.5718, allocations: 1.293 MB / 0.5867 GB, free: 7.148 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005343/0.5723, allocations: 337.9 kB / 0.587 GB, free: 6.793 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002191/0.5726, allocations: 128.8 kB / 0.5871 GB, free: 6.664 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.5726, allocations: 7.984 kB / 0.5871 GB, free: 6.656 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003623/0.573, allocations: 237.4 kB / 0.5874 GB, free: 6.41 MB / 410.7 MB Notification: Performance of pre-optimization done (n=39): time 2.575e-06/0.573, allocations: 0 / 0.5874 GB, free: 6.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=39): time 0.000625/0.5736, allocations: 306.8 kB / 0.5877 GB, free: 6.105 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.518e-05/0.5737, allocations: 118.8 kB / 0.5878 GB, free: 5.965 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002744/0.574, allocations: 231.9 kB / 0.588 GB, free: 5.73 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.315e-05/0.574, allocations: 37.7 kB / 0.588 GB, free: 5.688 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.725e-05/0.5741, allocations: 128.7 kB / 0.5882 GB, free: 5.559 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.695e-05/0.5742, allocations: 84.66 kB / 0.5882 GB, free: 5.477 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.423e-05/0.5743, allocations: 0 / 0.5882 GB, free: 5.477 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.5744, allocations: 346.8 kB / 0.5886 GB, free: 5.129 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002068/0.5746, allocations: 121.3 kB / 0.5887 GB, free: 5.012 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003106/0.575, allocations: 268.4 kB / 0.5889 GB, free: 4.695 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002511/0.5752, allocations: 155.4 kB / 0.5891 GB, free: 4.547 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.5752, allocations: 4 kB / 0.5891 GB, free: 4.543 MB / 410.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0006575/0.5759, allocations: 422.2 kB / 0.5895 GB, free: 4.129 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.5759, allocations: 8 kB / 0.5895 GB, free: 4.121 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.5759, allocations: 0 / 0.5895 GB, free: 4.121 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.068e-05/0.576, allocations: 8 kB / 0.5895 GB, free: 4.113 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003197/0.5763, allocations: 78.47 kB / 0.5896 GB, free: 4.039 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.38e-05/0.5763, allocations: 15.98 kB / 0.5896 GB, free: 4.023 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002189/0.5765, allocations: 27.69 kB / 0.5896 GB, free: 3.996 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.377e-05/0.5766, allocations: 24 kB / 0.5897 GB, free: 3.973 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.000274/0.5769, allocations: 170.8 kB / 0.5898 GB, free: 3.797 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.678e-05/0.5769, allocations: 31.7 kB / 0.5898 GB, free: 3.766 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.027e-05/0.577, allocations: 26.97 kB / 0.5899 GB, free: 3.746 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.577, allocations: 8.469 kB / 0.5899 GB, free: 3.738 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.577, allocations: 4.484 kB / 0.5899 GB, free: 3.734 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.577, allocations: 0 / 0.5899 GB, free: 3.734 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001225/0.5783, allocations: 0.8092 MB / 0.5907 GB, free: 2.879 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.5783, allocations: 0 / 0.5907 GB, free: 2.879 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.008e-05/0.5784, allocations: 15.92 kB / 0.5907 GB, free: 2.863 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.5784, allocations: 5.406 kB / 0.5907 GB, free: 2.859 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.153e-05/0.5784, allocations: 7.984 kB / 0.5907 GB, free: 2.852 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/0.5784, allocations: 4.719 kB / 0.5907 GB, free: 2.848 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.5784, allocations: 0 / 0.5907 GB, free: 2.848 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005361/0.579, allocations: 426.9 kB / 0.5911 GB, free: 2.414 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.168e-05/0.579, allocations: 100.8 kB / 0.5912 GB, free: 2.297 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.32e-05/0.5791, allocations: 19.98 kB / 0.5912 GB, free: 2.277 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002642/0.5794, allocations: 27.88 kB / 0.5913 GB, free: 2.25 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.916e-05/0.5795, allocations: 31.95 kB / 0.5913 GB, free: 2.219 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.682e-05/0.5796, allocations: 21.92 kB / 0.5913 GB, free: 2.199 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001489/0.5797, allocations: 164.5 kB / 0.5915 GB, free: 2.043 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003861/0.5801, allocations: 67.92 kB / 0.5915 GB, free: 1.977 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.0001991/0.5803, allocations: 145.7 kB / 0.5917 GB, free: 1.82 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005515/0.5809, allocations: 341 kB / 0.592 GB, free: 1.488 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.5809, allocations: 3.938 kB / 0.592 GB, free: 1.484 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002133/0.5811, allocations: 157.3 kB / 0.5921 GB, free: 1.332 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004785/0.5816, allocations: 77.22 kB / 0.5922 GB, free: 1.258 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008041/0.5824, allocations: 385 kB / 0.5926 GB, free: 0.8594 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004355/0.5828, allocations: 0.8094 MB / 0.5934 GB, free: 28 kB / 410.7 MB Notification: Performance of SimCode: time 4.51e-07/0.5828, allocations: 0 / 0.5934 GB, free: 28 kB / 410.7 MB Notification: Performance of Templates: time 0.008958/0.5918, allocations: 4.745 MB / 0.598 GB, free: 11.36 MB / 426.7 MB make -j1 -f Modelica_LinearSystems2_dev_Modelica_LinearSystems2.Controller.Examples.Interpolator.makefile (rm -f Modelica_LinearSystems2_dev_Modelica_LinearSystems2.Controller.Examples.Interpolator.pipe ; mkfifo Modelica_LinearSystems2_dev_Modelica_LinearSystems2.Controller.Examples.Interpolator.pipe ; head -c 1048576 < Modelica_LinearSystems2_dev_Modelica_LinearSystems2.Controller.Examples.Interpolator.pipe >> ../files/Modelica_LinearSystems2_dev_Modelica_LinearSystems2.Controller.Examples.Interpolator.sim & ./Modelica_LinearSystems2_dev_Modelica_LinearSystems2.Controller.Examples.Interpolator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_LinearSystems2_dev_Modelica_LinearSystems2.Controller.Examples.Interpolator.pipe 2>&1)