Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.FilterAndConvolution.conf.json 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/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/AdvancedNoise 1.1.0-master/package.mo", uses=false) Using package AdvancedNoise with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AdvancedNoise.Examples.RailIrregularities.Comparisons.FilterAndConvolution,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_RailIrregularities_Comparisons_FilterAndConvolution",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.RailIrregularities.Comparisons.FilterAndConvolution,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_RailIrregularities_Comparisons_FilterAndConvolution",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005291/0.005291, allocations: 98.72 kB / 15.73 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 192.9 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02492/0.02492, allocations: 3.911 MB / 294.4 MB, free: 10.98 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001901/0.001901, allocations: 66.25 kB / 406.4 MB, free: 28.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1091, allocations: 50.18 MB / 456.6 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.RailIrregularities.Comparisons.FilterAndConvolution): time 0.003554/0.1127, allocations: 2.05 MB / 458.7 MB, free: 8.402 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007313/0.12, allocations: 3.914 MB / 462.6 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002842/0.1203, allocations: 3.938 kB / 462.6 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004072/0.1208, allocations: 59.41 kB / 462.7 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002359/0.121, allocations: 51.69 kB / 462.7 MB, free: 4.348 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/Generators/QuickXorshift64star/package.mo:6:13-93:19:writable] Warning: Pure function 'AdvancedNoise.Examples.RailIrregularities.Comparisons.FilterAndConvolution.spaceDomainNoiseMinimum.generator.initialState' contains a call to impure function 'AdvancedNoise.Examples.RailIrregularities.Comparisons.FilterAndConvolution.spaceDomainNoiseMinimum.generator.random'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/Sources/SignalBasedNoise.mo:250:3-261:19:writable] Warning: Pure function 'AdvancedNoise.Examples.RailIrregularities.Comparisons.FilterAndConvolution.spaceDomainNoiseMinimum.initialState' contains a call to impure function 'AdvancedNoise.Examples.RailIrregularities.Comparisons.FilterAndConvolution.spaceDomainNoiseMinimum.convertRealToIntegers'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/Generators/QuickXorshift64star/package.mo:6:13-93:19:writable] Warning: Pure function 'AdvancedNoise.Examples.RailIrregularities.Comparisons.FilterAndConvolution.spaceDomainNoiseWhite.generator.initialState' contains a call to impure function 'AdvancedNoise.Examples.RailIrregularities.Comparisons.FilterAndConvolution.spaceDomainNoiseWhite.generator.random'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/Sources/SignalBasedNoise.mo:250:3-261:19:writable] Warning: Pure function 'AdvancedNoise.Examples.RailIrregularities.Comparisons.FilterAndConvolution.spaceDomainNoiseWhite.initialState' contains a call to impure function 'AdvancedNoise.Examples.RailIrregularities.Comparisons.FilterAndConvolution.spaceDomainNoiseWhite.convertRealToIntegers'. Notification: Performance of NFTyping.typeClassSections: time 0.002316/0.1234, allocations: 0.7184 MB / 463.4 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004865/0.1282, allocations: 5.728 MB / 469.1 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002001/0.1285, allocations: 52.38 kB / 469.2 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002535/0.131, allocations: 1.493 MB / 470.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002972/0.134, allocations: 1.872 MB / 472.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008935/0.1349, allocations: 256 kB / 472.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.146/7.281, allocations: 1.215 GB / 1.677 GB, free: 156.1 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.001243/7.282, allocations: 0.9787 MB / 1.678 GB, free: 156.1 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001163/7.283, allocations: 1.097 MB / 1.679 GB, free: 155.9 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.003643/7.287, allocations: 3.871 MB / 1.683 GB, free: 154.5 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/7.287, allocations: 0 / 1.683 GB, free: 154.5 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.683e-06/7.287, allocations: 0 / 1.683 GB, free: 154.5 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.206e-05/7.287, allocations: 0 / 1.683 GB, free: 154.5 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 431 * Number of variables: 431 Notification: Performance of Generate backend data structure: time 0.005228/7.292, allocations: 2.024 MB / 1.685 GB, free: 153 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/7.292, allocations: 9.312 kB / 1.685 GB, free: 153 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003383/7.292, allocations: 260.5 kB / 1.685 GB, free: 152.8 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001839/7.294, allocations: 392.7 kB / 1.685 GB, free: 152.7 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003846/7.298, allocations: 1.624 MB / 1.687 GB, free: 151.4 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002216/7.298, allocations: 125.5 kB / 1.687 GB, free: 151.3 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009473/7.299, allocations: 171.2 kB / 1.687 GB, free: 151.2 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006441/7.306, allocations: 3.618 MB / 1.691 GB, free: 149.1 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.814e-05/7.306, allocations: 4.859 kB / 1.691 GB, free: 149.1 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002494/7.306, allocations: 63.84 kB / 1.691 GB, free: 149.1 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.811e-05/7.306, allocations: 43.19 kB / 1.691 GB, free: 149.1 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09461/7.401, allocations: 62.51 MB / 1.752 GB, free: 86.99 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009635/7.41, allocations: 6.886 MB / 1.758 GB, free: 80.1 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2773/7.688, allocations: 49 MB / 1.806 GB, free: 30.91 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003594/7.691, allocations: 2.322 MB / 1.809 GB, free: 28.59 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001011/7.692, allocations: 0.5965 MB / 1.809 GB, free: 27.98 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.015e-05/7.693, allocations: 77.88 kB / 1.809 GB, free: 27.89 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=422): time 6.252e-06/7.693, allocations: 0 / 1.809 GB, free: 27.89 MB / 0.5294 GB Notification: Performance of matching and sorting (n=422): time 0.2076/7.9, allocations: 12.58 MB / 1.821 GB, free: 212.9 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.523e-05/7.9, allocations: 99.08 kB / 1.822 GB, free: 212.8 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005449/7.901, allocations: 308.1 kB / 1.822 GB, free: 212.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003654/7.901, allocations: 97.45 kB / 1.822 GB, free: 212.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/7.901, allocations: 158.2 kB / 1.822 GB, free: 212.3 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001164/7.902, allocations: 1.449 MB / 1.824 GB, free: 211 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001669/7.904, allocations: 0.9471 MB / 1.824 GB, free: 210.4 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.215e-05/7.904, allocations: 324 kB / 1.825 GB, free: 210.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003169/7.907, allocations: 2.017 MB / 1.827 GB, free: 208.4 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00377/7.911, allocations: 2.27 MB / 1.829 GB, free: 206.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00744/7.919, allocations: 4.723 MB / 1.834 GB, free: 201.9 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/7.919, allocations: 6.734 kB / 1.834 GB, free: 201.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01399/7.933, allocations: 13.41 MB / 1.847 GB, free: 188.5 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.838e-05/7.933, allocations: 4 kB / 1.847 GB, free: 188.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/7.933, allocations: 8.094 kB / 1.847 GB, free: 188.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.39e-05/7.933, allocations: 15 kB / 1.847 GB, free: 188.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003944/7.937, allocations: 1.093 MB / 1.848 GB, free: 187.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.223e-05/7.937, allocations: 19.94 kB / 1.848 GB, free: 187.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00158/7.938, allocations: 246.1 kB / 1.848 GB, free: 187.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005435/7.939, allocations: 347.4 kB / 1.848 GB, free: 186.8 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 (globalSeed.seed,spaceDomainNoiseWhite.actualGlobalSeed,spaceDomainNoiseMinimum.actualGlobalSeed,globalSeed.id_impure,spaceDomainNoiseWhite.localSeed,spaceDomainNoiseMinimum.localSeed,position.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (431): * Single equations (assignments): 431 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008758/7.94, allocations: 0.5232 MB / 1.849 GB, free: 186.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001621/7.941, allocations: 358.9 kB / 1.849 GB, free: 185.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01739/7.959, allocations: 12.38 MB / 1.861 GB, free: 173.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.554e-05/7.959, allocations: 40 kB / 1.861 GB, free: 173.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-05/7.959, allocations: 4 kB / 1.861 GB, free: 173.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.58e-05/7.959, allocations: 19.92 kB / 1.861 GB, free: 173.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002994/7.962, allocations: 2.492 MB / 1.864 GB, free: 171.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-05/7.962, allocations: 0 / 1.864 GB, free: 171.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00388/7.966, allocations: 1.072 MB / 1.865 GB, free: 170.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.991e-05/7.966, allocations: 12 kB / 1.865 GB, free: 170.1 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005453/7.967, allocations: 294 kB / 1.865 GB, free: 169.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.857e-05/7.967, allocations: 19.72 kB / 1.865 GB, free: 169.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/7.967, allocations: 0 / 1.865 GB, free: 169.8 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01644/7.983, allocations: 13.92 MB / 1.879 GB, free: 155.8 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001351/7.984, allocations: 1.349 MB / 1.88 GB, free: 154.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003792/7.985, allocations: 71.94 kB / 1.88 GB, free: 154.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001504/7.986, allocations: 83.97 kB / 1.88 GB, free: 154.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000592/7.987, allocations: 386.6 kB / 1.881 GB, free: 153.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004995/7.987, allocations: 343.4 kB / 1.881 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003349/7.988, allocations: 229.9 kB / 1.881 GB, free: 153.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.8e-07/7.988, allocations: 0 / 1.881 GB, free: 153.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002383/7.99, allocations: 0.6791 MB / 1.882 GB, free: 152.7 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (position.y,spaceDomainFilter.x_scaled[1],spaceDomainFilter.x_scaled[2]) * Number of discrete variables: 2 (spaceDomainNoiseMinimum.localSeed,spaceDomainNoiseWhite.localSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (422): * Single equations (assignments): 420 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01772/8.008, allocations: 15.04 MB / 1.896 GB, free: 137.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007702/8.016, allocations: 5.182 MB / 1.902 GB, free: 132.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/8.016, allocations: 0 / 1.902 GB, free: 132.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003989/8.02, allocations: 2.859 MB / 1.904 GB, free: 129.6 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001224/8.021, allocations: 154.8 kB / 1.904 GB, free: 129.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03776/8.059, allocations: 32.22 MB / 1.936 GB, free: 97.09 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000739/8.059, allocations: 1.327 MB / 1.937 GB, free: 95.73 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007957/8.067, allocations: 3.012 MB / 1.94 GB, free: 92.91 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002042/8.069, allocations: 0.9905 MB / 1.941 GB, free: 91.91 MB / 0.5294 GB Notification: Performance of SimCode: time 8.51e-07/8.07, allocations: 0 / 1.941 GB, free: 91.91 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07239/8.142, allocations: 51.74 MB / 1.992 GB, free: 40.19 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/20.43, allocations: 7.922 kB / 1.992 GB, free: 40.18 MB / 0.5294 GB (rm -f AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.FilterAndConvolution.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.FilterAndConvolution.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.FilterAndConvolution.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.FilterAndConvolution.sim & python3 -m fmpy simulate --output-file AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.FilterAndConvolution_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 0.001 --interface-type ModelExchange --solver CVode --output-interval 0.01 AdvancedNoise_AdvancedNoise_Examples_RailIrregularities_Comparisons_FilterAndConvolution.fmu > AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.FilterAndConvolution.pipe 2>&1)