Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain.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.SpaceAndTimeDomain,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_RailIrregularities_Comparisons_SpaceAndTimeDomain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_RailIrregularities_Comparisons_SpaceAndTimeDomain",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.004796/0.004796, allocations: 95.05 kB / 15.73 MB, free: 6.039 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.001304/0.001304, allocations: 205.8 kB / 16.68 MB, free: 5.969 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.449/1.449, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1353/0.1353, allocations: 3.88 MB / 294.4 MB, free: 3.242 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 55.91 kB / 406.5 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2353/0.2372, allocations: 50.19 MB / 456.6 MB, free: 20.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain): time 0.002515/0.2397, allocations: 2.054 MB / 458.7 MB, free: 18.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004888/0.2446, allocations: 3.919 MB / 462.6 MB, free: 16.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001638/0.2448, allocations: 6.875 kB / 462.6 MB, free: 16.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003226/0.2452, allocations: 48.23 kB / 462.7 MB, free: 16.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000156/0.2454, allocations: 47.62 kB / 462.7 MB, free: 16.25 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.SpaceAndTimeDomain.spaceDomainNoiseMinimum.generator.initialState' contains a call to impure function 'AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain.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.SpaceAndTimeDomain.spaceDomainNoiseMinimum.initialState' contains a call to impure function 'AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain.spaceDomainNoiseMinimum.convertRealToIntegers'. Notification: Performance of NFTyping.typeClassSections: time 0.001641/0.247, allocations: 0.6551 MB / 463.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004461/0.2515, allocations: 5.677 MB / 469 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001669/0.2517, allocations: 45.58 kB / 469.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002906/0.2546, allocations: 1.483 MB / 470.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004475/0.2591, allocations: 1.867 MB / 472.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001559/0.2607, allocations: 256.8 kB / 472.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.03/7.291, allocations: 1.215 GB / 1.677 GB, free: 36.61 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.002039/7.293, allocations: 0.9749 MB / 1.678 GB, free: 36.09 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001101/7.294, allocations: 1.091 MB / 1.679 GB, free: 35.31 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.00304/7.297, allocations: 3.8 MB / 1.682 GB, free: 31.92 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/7.297, allocations: 4 kB / 1.682 GB, free: 31.91 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.603e-06/7.297, allocations: 2.125 kB / 1.682 GB, free: 31.91 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.678e-05/7.297, allocations: 0 / 1.682 GB, free: 31.91 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: 429 * Number of variables: 429 Notification: Performance of Generate backend data structure: time 0.005169/7.302, allocations: 2.011 MB / 1.684 GB, free: 29.85 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/7.302, allocations: 8.031 kB / 1.684 GB, free: 29.84 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003084/7.303, allocations: 257 kB / 1.685 GB, free: 29.58 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001623/7.304, allocations: 359.9 kB / 1.685 GB, free: 29.23 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003529/7.308, allocations: 1.614 MB / 1.686 GB, free: 27.62 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.747e-05/7.308, allocations: 125.7 kB / 1.687 GB, free: 27.5 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003236/7.308, allocations: 164 kB / 1.687 GB, free: 27.34 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004259/7.313, allocations: 3.602 MB / 1.69 GB, free: 23.71 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.68e-05/7.313, allocations: 0 / 1.69 GB, free: 23.71 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002615/7.313, allocations: 74.06 kB / 1.69 GB, free: 23.64 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.292e-05/7.313, allocations: 40 kB / 1.69 GB, free: 23.6 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2931/7.606, allocations: 62.48 MB / 1.751 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00848/7.615, allocations: 6.926 MB / 1.758 GB, free: 171.3 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2708/7.885, allocations: 48.16 MB / 1.805 GB, free: 122.9 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003435/7.889, allocations: 2.314 MB / 1.807 GB, free: 120.5 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008542/7.89, allocations: 456.4 kB / 1.808 GB, free: 120.1 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004457/7.894, allocations: 3.055 MB / 1.811 GB, free: 117 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=423): time 7.003e-06/7.894, allocations: 0 / 1.811 GB, free: 117 MB / 0.5294 GB Notification: Performance of matching and sorting (n=423): time 0.01531/7.91, allocations: 12.57 MB / 1.823 GB, free: 104.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.993e-05/7.91, allocations: 128.3 kB / 1.823 GB, free: 104.3 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004918/7.91, allocations: 318.9 kB / 1.824 GB, free: 104 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0002651/7.911, allocations: 93.7 kB / 1.824 GB, free: 103.9 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 9.195e-05/7.911, allocations: 154.6 kB / 1.824 GB, free: 103.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008066/7.911, allocations: 1.464 MB / 1.825 GB, free: 102.5 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001098/7.913, allocations: 0.9486 MB / 1.826 GB, free: 101.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.356e-05/7.913, allocations: 325.9 kB / 1.826 GB, free: 101.2 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00272/7.915, allocations: 2.04 MB / 1.828 GB, free: 99.15 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003041/7.918, allocations: 2.293 MB / 1.831 GB, free: 96.84 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007143/7.926, allocations: 4.751 MB / 1.835 GB, free: 92.06 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.307e-06/7.926, allocations: 1.375 kB / 1.835 GB, free: 92.06 MB / 0.5294 GB Notification: Performance of matching and sorting (n=439) (initialization): time 0.01514/7.941, allocations: 13.41 MB / 1.848 GB, free: 78.63 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.845e-05/7.941, allocations: 9.062 kB / 1.848 GB, free: 78.62 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.66e-05/7.941, allocations: 4 kB / 1.848 GB, free: 78.62 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.225e-05/7.941, allocations: 16 kB / 1.848 GB, free: 78.61 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003856/7.945, allocations: 1.084 MB / 1.849 GB, free: 77.52 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.32e-05/7.945, allocations: 12 kB / 1.849 GB, free: 77.51 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/7.946, allocations: 250.1 kB / 1.85 GB, free: 77.26 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004873/7.947, allocations: 323.5 kB / 1.85 GB, free: 76.95 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,globalSeed.seed,bandLimitedWhiteNoise.actualGlobalSeed,bandLimitedWhiteNoise.localSeed,spaceDomainNoiseMinimum.actualGlobalSeed,globalSeed.id_impure,spaceDomainNoiseMinimum.localSeed,bandLimitedWhiteNoise.r_raw,$PRE.bandLimitedWhiteNoise.r_raw,bandLimitedWhiteNoise.r,$PRE.bandLimitedWhiteNoise.r,bandLimitedWhiteNoise.state[4],$PRE.bandLimitedWhiteNoise.state[4],bandLimitedWhiteNoise.state[3],$PRE.bandLimitedWhiteNoise.state[3],bandLimitedWhiteNoise.state[2],$PRE.bandLimitedWhiteNoise.state[2],bandLimitedWhiteNoise.state[1],$PRE.bandLimitedWhiteNoise.state[1],position.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (436): * Single equations (assignments): 435 * Array equations: 1 * 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.001081/7.948, allocations: 0.5382 MB / 1.851 GB, free: 76.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001603/7.95, allocations: 351.9 kB / 1.851 GB, free: 76.06 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01609/7.966, allocations: 12.32 MB / 1.863 GB, free: 63.92 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.938e-05/7.966, allocations: 40.09 kB / 1.863 GB, free: 63.88 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.288e-05/7.966, allocations: 3.938 kB / 1.863 GB, free: 63.88 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.021e-05/7.966, allocations: 19.92 kB / 1.863 GB, free: 63.86 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002639/7.968, allocations: 2.48 MB / 1.865 GB, free: 61.41 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.521e-05/7.969, allocations: 3.984 kB / 1.865 GB, free: 61.41 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003955/7.972, allocations: 1.053 MB / 1.866 GB, free: 60.36 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.508e-05/7.973, allocations: 16.98 kB / 1.866 GB, free: 60.34 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003741/7.973, allocations: 299.4 kB / 1.867 GB, free: 60.05 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.967e-05/7.973, allocations: 16 kB / 1.867 GB, free: 60.03 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/7.973, allocations: 0 / 1.867 GB, free: 60.03 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01627/7.989, allocations: 13.83 MB / 1.88 GB, free: 46.14 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001317/7.991, allocations: 1.333 MB / 1.882 GB, free: 44.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003643/7.991, allocations: 72 kB / 1.882 GB, free: 44.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001478/7.992, allocations: 83.97 kB / 1.882 GB, free: 44.63 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006437/7.993, allocations: 390.5 kB / 1.882 GB, free: 44.25 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004756/7.994, allocations: 314 kB / 1.882 GB, free: 43.95 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.000374/7.994, allocations: 237.8 kB / 1.883 GB, free: 43.71 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.7e-07/7.994, allocations: 3.938 kB / 1.883 GB, free: 43.71 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002605/7.997, allocations: 0.6636 MB / 1.883 GB, free: 43.05 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (position.y,timeDomainFilter.x_scaled[1],timeDomainFilter.x_scaled[2]) * Number of discrete variables: 8 (spaceDomainNoiseMinimum.localSeed,$whenCondition1,bandLimitedWhiteNoise.state[1],bandLimitedWhiteNoise.state[2],bandLimitedWhiteNoise.state[3],bandLimitedWhiteNoise.state[4],bandLimitedWhiteNoise.r,bandLimitedWhiteNoise.r_raw) * Number of discrete states: 4 (bandLimitedWhiteNoise.state[1],bandLimitedWhiteNoise.state[2],bandLimitedWhiteNoise.state[3],bandLimitedWhiteNoise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (419): * Single equations (assignments): 416 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.2571/8.254, allocations: 14.92 MB / 1.898 GB, free: 200.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009747/8.263, allocations: 5.19 MB / 1.903 GB, free: 198.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/8.264, allocations: 4.062 kB / 1.903 GB, free: 198.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005364/8.269, allocations: 2.842 MB / 1.906 GB, free: 198 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009999/8.27, allocations: 154.8 kB / 1.906 GB, free: 197.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04512/8.315, allocations: 32.17 MB / 1.937 GB, free: 175.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006646/8.316, allocations: 1.331 MB / 1.939 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00742/8.323, allocations: 2.985 MB / 1.941 GB, free: 171.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001937/8.325, allocations: 1.03 MB / 1.942 GB, free: 170.6 MB / 0.5294 GB Notification: Performance of SimCode: time 1.493e-06/8.325, allocations: 0 / 1.942 GB, free: 170.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08029/8.405, allocations: 50.96 MB / 1.992 GB, free: 119.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.31/21.72, allocations: 11.92 kB / 1.992 GB, free: 119.7 MB / 0.5294 GB (rm -f AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain.sim & python3 -m fmpy simulate --output-file AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain_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_SpaceAndTimeDomain.fmu > AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain.pipe 2>&1)