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.001176/0.001176, allocations: 109.4 kB / 15.69 MB, free: 128 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.001219/0.001219, allocations: 189.5 kB / 16.62 MB, free: 6.582 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.358/1.358, allocations: 222.9 MB / 240.3 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1471/0.1471, allocations: 3.889 MB / 294.4 MB, free: 3.332 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 63.91 kB / 355.8 MB, free: 3.375 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08607/0.08736, allocations: 50.17 MB / 405.9 MB, free: 1.16 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain): time 0.003358/0.09075, allocations: 2.067 MB / 408 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006365/0.09714, allocations: 3.906 MB / 411.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002583/0.09744, allocations: 7.938 kB / 411.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003748/0.09785, allocations: 55.53 kB / 412 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002168/0.09808, allocations: 51.69 kB / 412 MB, free: 11.03 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.001873/0.09997, allocations: 0.6543 MB / 412.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004788/0.1048, allocations: 5.678 MB / 418.3 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002414/0.105, allocations: 40.39 kB / 418.4 MB, free: 4.652 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002622/0.1077, allocations: 1.485 MB / 419.9 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003964/0.1117, allocations: 1.868 MB / 421.7 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009503/0.1126, allocations: 260 kB / 422 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.995/7.108, allocations: 1.215 GB / 1.627 GB, free: 99.59 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001669/7.11, allocations: 0.9764 MB / 1.628 GB, free: 99.58 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002573/7.112, allocations: 1.097 MB / 1.629 GB, free: 99.21 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004848/7.117, allocations: 3.786 MB / 1.633 GB, free: 98.4 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/7.117, allocations: 0 / 1.633 GB, free: 98.4 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.854e-06/7.117, allocations: 0.8438 kB / 1.633 GB, free: 98.4 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.35e-05/7.117, allocations: 0 / 1.633 GB, free: 98.4 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: 429 * Number of variables: 429 Notification: Performance of Generate backend data structure: time 0.00736/7.125, allocations: 1.969 MB / 1.635 GB, free: 97.41 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/7.125, allocations: 12.16 kB / 1.635 GB, free: 97.41 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004543/7.125, allocations: 251.9 kB / 1.635 GB, free: 97.25 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002158/7.127, allocations: 357.4 kB / 1.635 GB, free: 97.12 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005072/7.132, allocations: 1.599 MB / 1.637 GB, free: 96.39 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001711/7.133, allocations: 129.9 kB / 1.637 GB, free: 96.33 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000698/7.133, allocations: 160.2 kB / 1.637 GB, free: 96.28 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008276/7.142, allocations: 3.61 MB / 1.641 GB, free: 95.37 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.345e-05/7.142, allocations: 4.031 kB / 1.641 GB, free: 95.37 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003226/7.142, allocations: 63.81 kB / 1.641 GB, free: 95.32 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.897e-05/7.142, allocations: 42.5 kB / 1.641 GB, free: 95.32 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3744/7.516, allocations: 62.47 MB / 1.702 GB, free: 194.5 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01246/7.529, allocations: 6.93 MB / 1.709 GB, free: 192.3 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2652/7.794, allocations: 48.16 MB / 1.756 GB, free: 168.6 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004428/7.799, allocations: 2.316 MB / 1.758 GB, free: 166.2 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001239/7.8, allocations: 448.5 kB / 1.758 GB, free: 165.8 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006674/7.807, allocations: 3.061 MB / 1.761 GB, free: 162.7 MB / 494.1 MB Notification: Performance of pre-optimization done (n=423): time 1.58e-05/7.807, allocations: 3.891 kB / 1.761 GB, free: 162.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=423): time 0.02322/7.83, allocations: 12.56 MB / 1.774 GB, free: 150.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/7.83, allocations: 124.3 kB / 1.774 GB, free: 150.1 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006198/7.831, allocations: 320.2 kB / 1.774 GB, free: 149.8 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001349/7.832, allocations: 98.27 kB / 1.774 GB, free: 149.7 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001321/7.832, allocations: 150.8 kB / 1.774 GB, free: 149.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002344/7.835, allocations: 1.393 MB / 1.776 GB, free: 148.1 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003098/7.838, allocations: 0.9525 MB / 1.776 GB, free: 147.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.627e-05/7.838, allocations: 329.9 kB / 1.777 GB, free: 146.8 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003849/7.842, allocations: 2.035 MB / 1.779 GB, free: 144.8 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004624/7.846, allocations: 2.305 MB / 1.781 GB, free: 142.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01009/7.856, allocations: 4.751 MB / 1.786 GB, free: 137.7 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.614e-05/7.856, allocations: 0 / 1.786 GB, free: 137.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=439) (initialization): time 0.02174/7.878, allocations: 13.4 MB / 1.799 GB, free: 124.3 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.078e-05/7.878, allocations: 8 kB / 1.799 GB, free: 124.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.66e-05/7.878, allocations: 0 / 1.799 GB, free: 124.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.456e-05/7.878, allocations: 16 kB / 1.799 GB, free: 124.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005594/7.884, allocations: 1.084 MB / 1.8 GB, free: 123.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.573e-05/7.884, allocations: 12 kB / 1.8 GB, free: 123.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003027/7.887, allocations: 241.3 kB / 1.8 GB, free: 123 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001291/7.888, allocations: 323.5 kB / 1.8 GB, free: 122.7 MB / 494.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.002313/7.891, allocations: 0.5368 MB / 1.801 GB, free: 122.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002619/7.893, allocations: 346.7 kB / 1.801 GB, free: 121.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02575/7.919, allocations: 12.31 MB / 1.813 GB, free: 109.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.316e-05/7.919, allocations: 40 kB / 1.813 GB, free: 109.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.691e-05/7.919, allocations: 0 / 1.813 GB, free: 109.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001011/7.919, allocations: 19.92 kB / 1.813 GB, free: 109.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005057/7.924, allocations: 2.476 MB / 1.816 GB, free: 107.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.45e-05/7.925, allocations: 0 / 1.816 GB, free: 107.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005811/7.93, allocations: 1.063 MB / 1.817 GB, free: 106.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.359e-05/7.93, allocations: 12 kB / 1.817 GB, free: 106.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001481/7.932, allocations: 291.5 kB / 1.817 GB, free: 105.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.81e-05/7.932, allocations: 16 kB / 1.817 GB, free: 105.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/7.932, allocations: 0 / 1.817 GB, free: 105.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02378/7.956, allocations: 13.83 MB / 1.831 GB, free: 92.01 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002411/7.958, allocations: 1.329 MB / 1.832 GB, free: 90.66 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001011/7.959, allocations: 78.5 kB / 1.832 GB, free: 90.59 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00218/7.962, allocations: 79.97 kB / 1.832 GB, free: 90.51 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00102/7.963, allocations: 390.5 kB / 1.832 GB, free: 90.12 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001017/7.964, allocations: 315.5 kB / 1.833 GB, free: 89.82 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004188/7.964, allocations: 233.8 kB / 1.833 GB, free: 89.59 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.31e-07/7.964, allocations: 0 / 1.833 GB, free: 89.59 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003704/7.968, allocations: 0.6562 MB / 1.834 GB, free: 88.95 MB / 494.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.02453/7.992, allocations: 14.92 MB / 1.848 GB, free: 74.06 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01051/8.003, allocations: 5.19 MB / 1.853 GB, free: 68.86 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/8.003, allocations: 0 / 1.853 GB, free: 68.86 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005907/8.009, allocations: 2.84 MB / 1.856 GB, free: 66.02 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002191/8.011, allocations: 152.9 kB / 1.856 GB, free: 65.87 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2612/8.272, allocations: 32.11 MB / 1.887 GB, free: 183.3 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001571/8.274, allocations: 1.333 MB / 1.889 GB, free: 182.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.01205/8.286, allocations: 2.986 MB / 1.892 GB, free: 181.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004268/8.29, allocations: 1.031 MB / 1.893 GB, free: 181.2 MB / 494.1 MB Notification: Performance of SimCode: time 1.233e-06/8.29, allocations: 0 / 1.893 GB, free: 181.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09798/8.388, allocations: 50.52 MB / 1.942 GB, free: 138.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.45/20.83, allocations: 3.859 kB / 1.942 GB, free: 138.2 MB / 494.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AdvancedNoise_AdvancedNoise_Examples_RailIrregularities_Comparisons_SpaceAndTimeDomain_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=0.001 AdvancedNoise_AdvancedNoise_Examples_RailIrregularities_Comparisons_SpaceAndTimeDomain.fmu > AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain.pipe 2>&1)