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: translateModel(AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain,tolerance=0.001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain") translateModel(AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain,tolerance=0.001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 113.2 kB / 16.37 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.001087/0.001087, allocations: 196 kB / 17.31 MB, free: 5.613 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.281/1.281, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02467/0.02467, allocations: 3.899 MB / 295.1 MB, free: 11.05 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.0013, allocations: 67.89 kB / 356.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1859/0.1873, allocations: 50.18 MB / 407.1 MB, free: 31.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain): time 0.002503/0.1898, allocations: 2.053 MB / 409.2 MB, free: 29.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004437/0.1942, allocations: 3.914 MB / 413.1 MB, free: 25.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001502/0.1944, allocations: 7.938 kB / 413.1 MB, free: 25.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002675/0.1947, allocations: 47.53 kB / 413.1 MB, free: 25.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000135/0.1949, allocations: 43.7 kB / 413.2 MB, free: 25.84 MB / 302.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.001289/0.1962, allocations: 0.6562 MB / 413.8 MB, free: 25.19 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002782/0.1989, allocations: 5.674 MB / 419.5 MB, free: 19.51 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.1991, allocations: 48.38 kB / 419.6 MB, free: 19.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009698/0.2, allocations: 1.489 MB / 421.1 MB, free: 17.96 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001727/0.2018, allocations: 1.868 MB / 422.9 MB, free: 16.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003032/0.2021, allocations: 259.9 kB / 423.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.97/7.172, allocations: 1.215 GB / 1.628 GB, free: 159.7 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001373/7.174, allocations: 0.9756 MB / 1.629 GB, free: 159.7 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001124/7.175, allocations: 1.091 MB / 1.63 GB, free: 159.5 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002564/7.177, allocations: 3.792 MB / 1.634 GB, free: 158.2 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/7.177, allocations: 2.75 kB / 1.634 GB, free: 158.2 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.472e-06/7.177, allocations: 0 / 1.634 GB, free: 158.2 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.465e-05/7.177, allocations: 0 / 1.634 GB, free: 158.2 MB / 462.1 MB 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.005341/7.183, allocations: 1.97 MB / 1.636 GB, free: 156.8 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/7.183, allocations: 9.625 kB / 1.636 GB, free: 156.8 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001865/7.185, allocations: 359 kB / 1.636 GB, free: 156.7 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004022/7.189, allocations: 1.606 MB / 1.638 GB, free: 155.4 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.815e-05/7.189, allocations: 126.7 kB / 1.638 GB, free: 155.3 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003867/7.189, allocations: 162.9 kB / 1.638 GB, free: 155.3 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004525/7.194, allocations: 3.607 MB / 1.642 GB, free: 151.9 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.567e-05/7.194, allocations: 0 / 1.642 GB, free: 151.9 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002405/7.194, allocations: 72 kB / 1.642 GB, free: 151.8 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.505e-05/7.194, allocations: 40 kB / 1.642 GB, free: 151.8 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09438/7.288, allocations: 62.47 MB / 1.703 GB, free: 89.16 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009315/7.298, allocations: 6.928 MB / 1.709 GB, free: 82.21 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2487/7.546, allocations: 48.17 MB / 1.756 GB, free: 33.75 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003555/7.55, allocations: 2.314 MB / 1.759 GB, free: 31.43 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007866/7.551, allocations: 446.2 kB / 1.759 GB, free: 31.02 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004585/7.555, allocations: 3.055 MB / 1.762 GB, free: 27.93 MB / 462.1 MB Notification: Performance of pre-optimization done (n=423): time 7.084e-06/7.555, allocations: 0 / 1.762 GB, free: 27.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=423): time 0.199/7.755, allocations: 12.56 MB / 1.774 GB, free: 180.4 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.345e-05/7.755, allocations: 126.8 kB / 1.775 GB, free: 180.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000786/7.755, allocations: 318.8 kB / 1.775 GB, free: 180 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004803/7.756, allocations: 97.7 kB / 1.775 GB, free: 179.9 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000114/7.756, allocations: 153.5 kB / 1.775 GB, free: 179.7 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001407/7.758, allocations: 1.389 MB / 1.776 GB, free: 178.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002/7.76, allocations: 0.9531 MB / 1.777 GB, free: 177.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.205e-05/7.76, allocations: 326 kB / 1.778 GB, free: 177.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00526/7.765, allocations: 2.033 MB / 1.78 GB, free: 175.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005915/7.771, allocations: 2.293 MB / 1.782 GB, free: 173 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.013/7.784, allocations: 4.758 MB / 1.787 GB, free: 168.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-05/7.784, allocations: 0 / 1.787 GB, free: 168.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=439) (initialization): time 0.02834/7.812, allocations: 13.4 MB / 1.8 GB, free: 154.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.71e-05/7.812, allocations: 8 kB / 1.8 GB, free: 154.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.03e-05/7.812, allocations: 1.688 kB / 1.8 GB, free: 154.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.783e-05/7.812, allocations: 16 kB / 1.8 GB, free: 154.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007349/7.82, allocations: 1.084 MB / 1.801 GB, free: 153.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.002e-05/7.82, allocations: 22.61 kB / 1.801 GB, free: 153.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002486/7.822, allocations: 237.4 kB / 1.801 GB, free: 153.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009068/7.823, allocations: 323.5 kB / 1.801 GB, free: 153.2 MB / 462.1 MB 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.00159/7.825, allocations: 0.5269 MB / 1.802 GB, free: 152.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001837/7.827, allocations: 354 kB / 1.802 GB, free: 152.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0171/7.844, allocations: 12.31 MB / 1.814 GB, free: 140.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.543e-05/7.844, allocations: 40 kB / 1.814 GB, free: 140.1 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.268e-05/7.844, allocations: 0 / 1.814 GB, free: 140.1 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.662e-05/7.844, allocations: 23.92 kB / 1.814 GB, free: 140.1 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002365/7.846, allocations: 2.467 MB / 1.817 GB, free: 137.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-05/7.846, allocations: 4 kB / 1.817 GB, free: 137.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004132/7.85, allocations: 1.061 MB / 1.818 GB, free: 136.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.01e-05/7.851, allocations: 12 kB / 1.818 GB, free: 136.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004256/7.851, allocations: 291.5 kB / 1.818 GB, free: 136.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.202e-05/7.851, allocations: 16 kB / 1.818 GB, free: 136.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/7.851, allocations: 2.625 kB / 1.818 GB, free: 136.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01641/7.867, allocations: 13.83 MB / 1.831 GB, free: 122.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001724/7.869, allocations: 1.329 MB / 1.833 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004149/7.87, allocations: 72 kB / 1.833 GB, free: 121 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001481/7.871, allocations: 79.97 kB / 1.833 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005982/7.872, allocations: 390.5 kB / 1.833 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005728/7.872, allocations: 319.5 kB / 1.834 GB, free: 120.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0003515/7.873, allocations: 229.9 kB / 1.834 GB, free: 120 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/7.873, allocations: 0 / 1.834 GB, free: 120 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002485/7.875, allocations: 0.6599 MB / 1.834 GB, free: 119.4 MB / 462.1 MB 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.001747/7.877, allocations: 0.6453 MB / 1.835 GB, free: 118.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007398/7.884, allocations: 5.189 MB / 1.84 GB, free: 113.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/7.884, allocations: 1.859 kB / 1.84 GB, free: 113.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003772/7.888, allocations: 2.844 MB / 1.843 GB, free: 110.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008652/7.889, allocations: 156.8 kB / 1.843 GB, free: 110.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0054/7.894, allocations: 4.414 MB / 1.847 GB, free: 106.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006976/7.895, allocations: 1.319 MB / 1.849 GB, free: 104.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.007134/7.902, allocations: 2.988 MB / 1.852 GB, free: 102 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001605/7.904, allocations: 0.639 MB / 1.852 GB, free: 101.4 MB / 462.1 MB Notification: Performance of SimCode: time 1.062e-06/7.904, allocations: 0 / 1.852 GB, free: 101.4 MB / 462.1 MB Notification: Performance of Templates: time 0.04877/7.953, allocations: 38.81 MB / 1.89 GB, free: 62.55 MB / 462.1 MB make -j1 -f AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain.makefile (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 & ./AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain.pipe 2>&1)