Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.FractionalDelay.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/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) 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 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.Clocked.Examples.Elementary.RealSignals.FractionalDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|fractionalDelay.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.FractionalDelay") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.FractionalDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|fractionalDelay.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.FractionalDelay") [: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.0009947/0.0009948, allocations: 188.1 kB / 8.139 MB, free: 2.211 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.193/1.193, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.0008659/0.0008659, allocations: 110.2 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.202e-06/6.241e-06, allocations: 0 / 336.5 MB, free: 9.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1922/0.1923, allocations: 50.39 MB / 386.9 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08264/0.2749, allocations: 76.55 MB / 463.5 MB, free: 10.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002574/0.2753, allocations: 80.84 kB / 463.5 MB, free: 10.26 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.006313/0.2816, allocations: 1.866 MB / 465.4 MB, free: 8.418 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.2816, allocations: 0 / 465.4 MB, free: 8.418 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003464/0.282, allocations: 379.5 kB / 465.8 MB, free: 8.004 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/0.282, allocations: 8.781 kB / 465.8 MB, free: 7.996 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.722e-05/0.2821, allocations: 12.84 kB / 465.8 MB, free: 7.984 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002086/0.2823, allocations: 200.2 kB / 466 MB, free: 7.746 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.2823, allocations: 0 / 466 MB, free: 7.746 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.35e-05/0.2823, allocations: 8 kB / 466 MB, free: 7.738 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.156e-05/0.2824, allocations: 24 kB / 466 MB, free: 7.715 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002381/0.2827, allocations: 134.8 kB / 466.2 MB, free: 7.562 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.2827, allocations: 0 / 466.2 MB, free: 7.562 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.2827, allocations: 3.906 kB / 466.2 MB, free: 7.559 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.2827, allocations: 0 / 466.2 MB, free: 7.559 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003263/0.283, allocations: 263.8 kB / 466.4 MB, free: 7.258 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.432e-05/0.2831, allocations: 83.75 kB / 466.5 MB, free: 7.148 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.141e-05/0.2832, allocations: 35.94 kB / 466.5 MB, free: 7.105 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.26e-05/0.2832, allocations: 0 / 466.5 MB, free: 7.105 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.98e-05/0.2833, allocations: 46.44 kB / 466.6 MB, free: 7.051 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 9.11e-07/0.2833, allocations: 1.031 kB / 466.6 MB, free: 7.051 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001921/0.2835, allocations: 71.34 kB / 466.6 MB, free: 6.977 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.915e-05/0.2835, allocations: 110.8 kB / 466.8 MB, free: 6.844 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.2836, allocations: 133.1 kB / 466.9 MB, free: 6.711 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.429e-05/0.2837, allocations: 25.7 kB / 466.9 MB, free: 6.68 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.052e-05/0.2837, allocations: 80.14 kB / 467 MB, free: 6.598 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.972e-05/0.2837, allocations: 19.83 kB / 467 MB, free: 6.578 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.777e-06/0.2837, allocations: 0 / 467 MB, free: 6.578 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.2839, allocations: 322.8 kB / 467.3 MB, free: 6.254 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.473e-05/0.2839, allocations: 12 kB / 467.3 MB, free: 6.242 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.466e-05/0.2839, allocations: 54.75 kB / 467.4 MB, free: 6.168 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.07e-05/0.284, allocations: 23.92 kB / 467.4 MB, free: 6.145 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.284, allocations: 0 / 467.4 MB, free: 6.145 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001247/0.2841, allocations: 81.53 kB / 467.5 MB, free: 6.059 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.2841, allocations: 8.875 kB / 467.5 MB, free: 6.051 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.2842, allocations: 0 / 467.5 MB, free: 6.051 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.2842, allocations: 7.984 kB / 467.5 MB, free: 6.043 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/0.2843, allocations: 20.22 kB / 467.5 MB, free: 6.023 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.211e-06/0.2843, allocations: 4 kB / 467.5 MB, free: 6.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.112e-05/0.2844, allocations: 7.984 kB / 467.5 MB, free: 6.012 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-06/0.2844, allocations: 4 kB / 467.5 MB, free: 6.008 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 2 (fractionalDelay.first,$CLKPRE.fractionalDelay.first) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 6.267e-05/0.2844, allocations: 108.8 kB / 467.6 MB, free: 5.895 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.2845, allocations: 65.59 kB / 467.7 MB, free: 5.824 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.115e-05/0.2846, allocations: 12.19 kB / 467.7 MB, free: 5.809 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.2846, allocations: 4.594 kB / 467.7 MB, free: 5.805 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.2846, allocations: 1.812 kB / 467.7 MB, free: 5.805 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.2846, allocations: 4 kB / 467.7 MB, free: 5.801 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001377/0.2848, allocations: 154.1 kB / 467.9 MB, free: 5.613 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.2848, allocations: 0 / 467.9 MB, free: 5.613 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.681e-05/0.2849, allocations: 23.92 kB / 467.9 MB, free: 5.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.2849, allocations: 192 / 467.9 MB, free: 5.59 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.2849, allocations: 4 kB / 467.9 MB, free: 5.586 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.2849, allocations: 3.938 kB / 467.9 MB, free: 5.582 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.2849, allocations: 0 / 467.9 MB, free: 5.582 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001589/0.2851, allocations: 204.5 kB / 468.1 MB, free: 5.348 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.002e-05/0.2851, allocations: 100.9 kB / 468.2 MB, free: 5.23 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.21e-05/0.2852, allocations: 0.875 kB / 468.2 MB, free: 5.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.556e-05/0.2853, allocations: 8 kB / 468.2 MB, free: 5.223 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.172e-05/0.2853, allocations: 11.89 kB / 468.2 MB, free: 5.211 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.56e-06/0.2853, allocations: 0 / 468.2 MB, free: 5.211 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.364e-05/0.2854, allocations: 103.8 kB / 468.3 MB, free: 5.109 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002442/0.2856, allocations: 15.94 kB / 468.4 MB, free: 5.094 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (fractionalDelay.first) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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 Backend phase and start with SimCode phase: time 9.978e-05/0.2857, allocations: 103.2 kB / 468.5 MB, free: 4.98 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001001/0.2859, allocations: 40.23 kB / 468.5 MB, free: 4.941 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2859, allocations: 8.125 kB / 468.5 MB, free: 4.934 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.263e-05/0.2859, allocations: 0 / 468.5 MB, free: 4.934 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002704/0.2862, allocations: 34.59 kB / 468.5 MB, free: 4.902 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003523/0.2865, allocations: 144.8 kB / 468.7 MB, free: 4.73 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002575/0.2868, allocations: 0.7192 MB / 469.4 MB, free: 3.984 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2868, allocations: 160 / 469.4 MB, free: 3.984 MB / 346.7 MB Notification: Performance of Templates: time 0.002583/0.2894, allocations: 0.7612 MB / 470.2 MB, free: 3.242 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.FractionalDelay.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.FractionalDelay.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.FractionalDelay.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.FractionalDelay.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.FractionalDelay.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.FractionalDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.FractionalDelay.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.FractionalDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/FractionalDelay/FractionalDelay.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.FractionalDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,fractionalDelay.y Variables in the result:fractionalDelay.n,fractionalDelay.resolution,fractionalDelay.shift,fractionalDelay.y,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,time