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.001683/0.00169, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002279/0.002279, allocations: 195.1 kB / 16.53 MB, free: 6.664 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.39/1.39, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1318/0.1318, allocations: 3.882 MB / 294.3 MB, free: 3.301 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 59.91 kB / 355.6 MB, free: 3.512 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0985/0.09982, allocations: 50.19 MB / 405.8 MB, free: 1.273 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.RailIrregularities.Comparisons.FilterAndConvolution): time 0.003785/0.1037, allocations: 2.05 MB / 407.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006612/0.1103, allocations: 3.906 MB / 411.7 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002585/0.1106, allocations: 7.938 kB / 411.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003762/0.111, allocations: 59.44 kB / 411.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002304/0.1113, allocations: 51.72 kB / 411.8 MB, free: 11.16 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.00206/0.1133, allocations: 0.7088 MB / 412.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004517/0.1179, allocations: 5.697 MB / 418.3 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002092/0.1181, allocations: 56.38 kB / 418.3 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002558/0.1207, allocations: 1.493 MB / 419.8 MB, free: 3.195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003061/0.1238, allocations: 1.868 MB / 421.7 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001065/0.1248, allocations: 260 kB / 421.9 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.951/7.076, allocations: 1.215 GB / 1.627 GB, free: 96.53 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001248/7.077, allocations: 0.9783 MB / 1.628 GB, free: 96.52 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002008/7.079, allocations: 1.098 MB / 1.629 GB, free: 96.12 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004623/7.084, allocations: 3.842 MB / 1.633 GB, free: 95.29 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/7.084, allocations: 0 / 1.633 GB, free: 95.29 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.834e-06/7.084, allocations: 0 / 1.633 GB, free: 95.29 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.117e-05/7.084, allocations: 0 / 1.633 GB, free: 95.29 MB / 494.1 MB 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.007769/7.092, allocations: 1.992 MB / 1.635 GB, free: 94.27 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.466e-05/7.092, allocations: 8.938 kB / 1.635 GB, free: 94.27 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005338/7.092, allocations: 253.3 kB / 1.635 GB, free: 94.12 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002333/7.095, allocations: 387.9 kB / 1.635 GB, free: 93.98 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0048/7.099, allocations: 1.608 MB / 1.637 GB, free: 93.25 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001613/7.1, allocations: 126.8 kB / 1.637 GB, free: 93.2 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005735/7.1, allocations: 169.2 kB / 1.637 GB, free: 93.14 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007159/7.107, allocations: 3.623 MB / 1.641 GB, free: 92.23 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.008e-05/7.107, allocations: 4 kB / 1.641 GB, free: 92.23 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000335/7.108, allocations: 65.42 kB / 1.641 GB, free: 92.18 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.694e-05/7.108, allocations: 42.41 kB / 1.641 GB, free: 92.18 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2692/7.377, allocations: 62.5 MB / 1.702 GB, free: 194.3 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008835/7.386, allocations: 6.884 MB / 1.709 GB, free: 192.1 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2847/7.671, allocations: 48.98 MB / 1.756 GB, free: 164.7 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003256/7.674, allocations: 2.32 MB / 1.759 GB, free: 162.4 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000785/7.675, allocations: 0.6062 MB / 1.759 GB, free: 161.8 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.435e-05/7.675, allocations: 73.88 kB / 1.759 GB, free: 161.7 MB / 494.1 MB Notification: Performance of pre-optimization done (n=422): time 5.591e-06/7.675, allocations: 10.97 kB / 1.759 GB, free: 161.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=422): time 0.0155/7.69, allocations: 12.57 MB / 1.772 GB, free: 149.1 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.353e-05/7.69, allocations: 98.72 kB / 1.772 GB, free: 149 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004645/7.691, allocations: 307 kB / 1.772 GB, free: 148.7 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002882/7.691, allocations: 93.7 kB / 1.772 GB, free: 148.6 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.324e-05/7.691, allocations: 158.6 kB / 1.772 GB, free: 148.4 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007701/7.692, allocations: 1.371 MB / 1.774 GB, free: 147.1 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001114/7.693, allocations: 0.9483 MB / 1.775 GB, free: 146.1 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.561e-05/7.693, allocations: 329.9 kB / 1.775 GB, free: 145.8 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002671/7.696, allocations: 2.021 MB / 1.777 GB, free: 143.8 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003193/7.699, allocations: 2.269 MB / 1.779 GB, free: 141.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00714/7.706, allocations: 4.731 MB / 1.784 GB, free: 136.7 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/7.706, allocations: 0 / 1.784 GB, free: 136.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01431/7.721, allocations: 13.4 MB / 1.797 GB, free: 123.3 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/7.721, allocations: 8 kB / 1.797 GB, free: 123.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/7.721, allocations: 0 / 1.797 GB, free: 123.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.634e-05/7.721, allocations: 16 kB / 1.797 GB, free: 123.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004096/7.725, allocations: 1.09 MB / 1.798 GB, free: 122.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.032e-05/7.725, allocations: 17.64 kB / 1.798 GB, free: 122.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001774/7.727, allocations: 237.6 kB / 1.798 GB, free: 122 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005161/7.727, allocations: 352.7 kB / 1.798 GB, free: 121.7 MB / 494.1 MB 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.001222/7.728, allocations: 0.5284 MB / 1.799 GB, free: 121.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001848/7.73, allocations: 346.2 kB / 1.799 GB, free: 120.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01714/7.747, allocations: 12.4 MB / 1.811 GB, free: 108.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.517e-05/7.747, allocations: 40 kB / 1.811 GB, free: 108.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.279e-05/7.747, allocations: 1.312 kB / 1.811 GB, free: 108.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.503e-05/7.747, allocations: 19.92 kB / 1.811 GB, free: 108.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002479/7.75, allocations: 2.491 MB / 1.814 GB, free: 106.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.471e-05/7.75, allocations: 2.297 kB / 1.814 GB, free: 106.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003882/7.754, allocations: 1.065 MB / 1.815 GB, free: 105 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.428e-05/7.754, allocations: 12 kB / 1.815 GB, free: 105 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003884/7.754, allocations: 295.5 kB / 1.815 GB, free: 104.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.33e-05/7.754, allocations: 20 kB / 1.815 GB, free: 104.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/7.754, allocations: 1.812 kB / 1.815 GB, free: 104.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01624/7.771, allocations: 13.92 MB / 1.829 GB, free: 90.76 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001383/7.772, allocations: 1.34 MB / 1.83 GB, free: 89.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004069/7.772, allocations: 64 kB / 1.83 GB, free: 89.34 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001623/7.774, allocations: 75.98 kB / 1.83 GB, free: 89.26 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005807/7.775, allocations: 394.6 kB / 1.831 GB, free: 88.88 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004865/7.775, allocations: 343.4 kB / 1.831 GB, free: 88.54 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003514/7.775, allocations: 229.9 kB / 1.831 GB, free: 88.31 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.4e-07/7.776, allocations: 0 / 1.831 GB, free: 88.31 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002598/7.778, allocations: 0.6802 MB / 1.832 GB, free: 87.66 MB / 494.1 MB 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.01791/7.796, allocations: 15.03 MB / 1.847 GB, free: 72.68 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.1808/7.977, allocations: 16 MB / 1.862 GB, free: 190.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/7.977, allocations: 0 / 1.862 GB, free: 190.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004017/7.981, allocations: 2.852 MB / 1.865 GB, free: 189.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001015/7.982, allocations: 156.2 kB / 1.865 GB, free: 189.6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04244/8.024, allocations: 32.91 MB / 1.897 GB, free: 176 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006477/8.025, allocations: 1.326 MB / 1.899 GB, free: 174.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.008688/8.034, allocations: 3.01 MB / 1.901 GB, free: 172.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002295/8.036, allocations: 0.9945 MB / 1.902 GB, free: 172 MB / 494.1 MB Notification: Performance of SimCode: time 1.152e-06/8.036, allocations: 0 / 1.902 GB, free: 172 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07284/8.109, allocations: 51.28 MB / 1.952 GB, free: 124.7 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.396/17.51, allocations: 22.08 kB / 1.953 GB, free: 124.7 MB / 494.1 MB (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)