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.007926/0.007926, allocations: 96.92 kB / 15.73 MB, free: 6.484 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.00195/0.001951, allocations: 192 kB / 16.67 MB, free: 6.391 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.437/1.437, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1419/0.1419, allocations: 3.88 MB / 294.4 MB, free: 3.273 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001836/0.001836, allocations: 60.14 kB / 406.5 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.3075, allocations: 50.18 MB / 456.6 MB, free: 20.44 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.RailIrregularities.Comparisons.FilterAndConvolution): time 0.003043/0.3106, allocations: 2.045 MB / 458.7 MB, free: 19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005739/0.3163, allocations: 3.901 MB / 462.6 MB, free: 16.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003371/0.3167, allocations: 6.938 kB / 462.6 MB, free: 16.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004658/0.3173, allocations: 65.48 kB / 462.6 MB, free: 16.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001913/0.3175, allocations: 42.62 kB / 462.7 MB, free: 16.39 MB / 350.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.002242/0.3198, allocations: 0.7239 MB / 463.4 MB, free: 16.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005171/0.3249, allocations: 5.721 MB / 469.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002017/0.3252, allocations: 57.19 kB / 469.2 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0029/0.3281, allocations: 1.492 MB / 470.7 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00314/0.3312, allocations: 1.876 MB / 472.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00086/0.3321, allocations: 257.6 kB / 472.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.094/7.426, allocations: 1.215 GB / 1.677 GB, free: 37.3 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.002236/7.428, allocations: 0.9797 MB / 1.678 GB, free: 36.78 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.002638/7.431, allocations: 1.099 MB / 1.679 GB, free: 35.98 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.004818/7.436, allocations: 3.858 MB / 1.683 GB, free: 32.54 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 7.313e-06/7.436, allocations: 4 kB / 1.683 GB, free: 32.53 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.593e-06/7.436, allocations: 3.375 kB / 1.683 GB, free: 32.53 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.012e-05/7.436, allocations: 4 kB / 1.683 GB, free: 32.53 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.005774/7.441, allocations: 2.02 MB / 1.685 GB, free: 30.45 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 6.733e-05/7.442, allocations: 12.03 kB / 1.685 GB, free: 30.44 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003977/7.442, allocations: 253.1 kB / 1.685 GB, free: 30.18 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002455/7.444, allocations: 395.7 kB / 1.685 GB, free: 29.8 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004144/7.449, allocations: 1.624 MB / 1.687 GB, free: 28.18 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.03e-05/7.449, allocations: 124.1 kB / 1.687 GB, free: 28.06 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003309/7.449, allocations: 168 kB / 1.687 GB, free: 27.9 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004741/7.454, allocations: 3.628 MB / 1.691 GB, free: 24.24 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.887e-05/7.454, allocations: 3.094 kB / 1.691 GB, free: 24.24 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002533/7.454, allocations: 68 kB / 1.691 GB, free: 24.18 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.295e-05/7.454, allocations: 40 kB / 1.691 GB, free: 24.14 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.34/7.794, allocations: 62.5 MB / 1.752 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007481/7.802, allocations: 6.892 MB / 1.758 GB, free: 171.5 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.276/8.078, allocations: 48.98 MB / 1.806 GB, free: 122.3 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002983/8.081, allocations: 2.318 MB / 1.809 GB, free: 120 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007763/8.081, allocations: 0.6073 MB / 1.809 GB, free: 119.4 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/8.081, allocations: 81.81 kB / 1.809 GB, free: 119.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=422): time 5.611e-06/8.081, allocations: 0 / 1.809 GB, free: 119.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=422): time 0.01465/8.096, allocations: 12.58 MB / 1.821 GB, free: 106.7 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.612e-05/8.096, allocations: 98.72 kB / 1.822 GB, free: 106.6 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004453/8.097, allocations: 306.9 kB / 1.822 GB, free: 106.3 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0002384/8.097, allocations: 97.7 kB / 1.822 GB, free: 106.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 7.776e-05/8.097, allocations: 153.3 kB / 1.822 GB, free: 106 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007328/8.098, allocations: 1.457 MB / 1.824 GB, free: 104.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00116/8.099, allocations: 0.9445 MB / 1.824 GB, free: 103.8 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.293e-05/8.099, allocations: 325.9 kB / 1.825 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002647/8.102, allocations: 2.017 MB / 1.827 GB, free: 101.5 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003125/8.105, allocations: 2.276 MB / 1.829 GB, free: 99.16 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006889/8.112, allocations: 4.725 MB / 1.834 GB, free: 94.41 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.607e-06/8.112, allocations: 0 / 1.834 GB, free: 94.41 MB / 0.5294 GB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01422/8.126, allocations: 13.41 MB / 1.847 GB, free: 80.98 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/8.126, allocations: 8 kB / 1.847 GB, free: 80.97 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.344e-05/8.126, allocations: 4.094 kB / 1.847 GB, free: 80.97 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.917e-05/8.126, allocations: 12 kB / 1.847 GB, free: 80.96 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003973/8.13, allocations: 1.092 MB / 1.848 GB, free: 79.86 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.151e-05/8.13, allocations: 19.94 kB / 1.848 GB, free: 79.84 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001655/8.132, allocations: 238.2 kB / 1.848 GB, free: 79.61 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000527/8.132, allocations: 351.4 kB / 1.848 GB, free: 79.27 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.0009282/8.133, allocations: 0.5203 MB / 1.849 GB, free: 78.73 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001758/8.135, allocations: 351 kB / 1.849 GB, free: 78.39 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01567/8.151, allocations: 12.39 MB / 1.861 GB, free: 66.18 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.681e-05/8.151, allocations: 40 kB / 1.861 GB, free: 66.14 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.338e-05/8.151, allocations: 4.875 kB / 1.861 GB, free: 66.13 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.817e-05/8.151, allocations: 19.92 kB / 1.861 GB, free: 66.11 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002444/8.153, allocations: 2.499 MB / 1.864 GB, free: 63.64 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.816e-06/8.153, allocations: 0 / 1.864 GB, free: 63.64 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00372/8.157, allocations: 1.068 MB / 1.865 GB, free: 62.57 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.015e-05/8.157, allocations: 12.98 kB / 1.865 GB, free: 62.56 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003631/8.157, allocations: 294.2 kB / 1.865 GB, free: 62.28 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.827e-05/8.157, allocations: 16 kB / 1.865 GB, free: 62.26 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/8.157, allocations: 0 / 1.865 GB, free: 62.26 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01572/8.173, allocations: 13.93 MB / 1.879 GB, free: 48.29 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/8.174, allocations: 1.345 MB / 1.88 GB, free: 46.92 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003491/8.175, allocations: 64 kB / 1.88 GB, free: 46.86 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001679/8.176, allocations: 83.97 kB / 1.88 GB, free: 46.77 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006559/8.177, allocations: 390.6 kB / 1.881 GB, free: 46.39 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004916/8.178, allocations: 349.2 kB / 1.881 GB, free: 46.05 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003306/8.178, allocations: 225.9 kB / 1.881 GB, free: 45.83 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.9e-07/8.178, allocations: 0 / 1.881 GB, free: 45.83 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002343/8.18, allocations: 0.683 MB / 1.882 GB, free: 45.15 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.2143/8.395, allocations: 15.03 MB / 1.896 GB, free: 200.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009564/8.404, allocations: 5.176 MB / 1.902 GB, free: 199.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/8.404, allocations: 0 / 1.902 GB, free: 199.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004889/8.409, allocations: 2.861 MB / 1.904 GB, free: 198.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009751/8.41, allocations: 157.9 kB / 1.904 GB, free: 198.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03724/8.447, allocations: 32.23 MB / 1.936 GB, free: 177.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007132/8.448, allocations: 1.335 MB / 1.937 GB, free: 176.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006894/8.455, allocations: 3.012 MB / 1.94 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001707/8.457, allocations: 0.9905 MB / 1.941 GB, free: 172.6 MB / 0.5294 GB Notification: Performance of SimCode: time 6.32e-07/8.457, allocations: 0 / 1.941 GB, free: 172.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0751/8.532, allocations: 51.74 MB / 1.992 GB, free: 120.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.21/21.74, allocations: 7.234 kB / 1.992 GB, free: 120.9 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)