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.0012/0.0012, allocations: 108 kB / 15.6 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.001232/0.001232, allocations: 198.4 kB / 16.53 MB, free: 6.668 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.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1466/0.1466, allocations: 3.885 MB / 294.3 MB, free: 3.266 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 63.91 kB / 355.6 MB, free: 3.457 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08711/0.08842, allocations: 50.18 MB / 405.8 MB, free: 1.23 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain): time 0.003291/0.09175, allocations: 2.054 MB / 407.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00671/0.09849, allocations: 3.91 MB / 411.7 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002344/0.09875, allocations: 7.938 kB / 411.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003743/0.09917, allocations: 55.56 kB / 411.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000175/0.09935, allocations: 47.66 kB / 411.8 MB, free: 11.11 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.002024/0.1014, allocations: 0.646 MB / 412.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004628/0.106, allocations: 5.646 MB / 418.1 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002059/0.1063, allocations: 60.36 kB / 418.2 MB, free: 4.758 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002352/0.1086, allocations: 1.466 MB / 419.7 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003019/0.1116, allocations: 1.878 MB / 421.5 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007296/0.1124, allocations: 260 kB / 421.8 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.982/7.094, allocations: 1.215 GB / 1.627 GB, free: 97.44 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001278/7.095, allocations: 0.9776 MB / 1.628 GB, free: 97.42 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001878/7.097, allocations: 1.093 MB / 1.629 GB, free: 97.04 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003872/7.101, allocations: 3.771 MB / 1.632 GB, free: 96.23 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/7.101, allocations: 1.656 kB / 1.632 GB, free: 96.23 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.543e-06/7.101, allocations: 0 / 1.632 GB, free: 96.23 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.939e-05/7.101, allocations: 0 / 1.632 GB, free: 96.23 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.005951/7.107, allocations: 1.974 MB / 1.634 GB, free: 95.24 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/7.107, allocations: 9.125 kB / 1.634 GB, free: 95.24 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004319/7.108, allocations: 255.8 kB / 1.635 GB, free: 95.08 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001976/7.11, allocations: 356.8 kB / 1.635 GB, free: 94.95 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00452/7.114, allocations: 1.596 MB / 1.637 GB, free: 94.21 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001674/7.114, allocations: 134 kB / 1.637 GB, free: 94.16 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006815/7.115, allocations: 165.6 kB / 1.637 GB, free: 94.11 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006814/7.122, allocations: 3.603 MB / 1.64 GB, free: 93.2 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.895e-05/7.122, allocations: 0 / 1.64 GB, free: 93.2 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003368/7.122, allocations: 68.08 kB / 1.64 GB, free: 93.15 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.276e-05/7.122, allocations: 42.59 kB / 1.64 GB, free: 93.14 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2901/7.413, allocations: 62.47 MB / 1.701 GB, free: 194.5 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01384/7.426, allocations: 6.932 MB / 1.708 GB, free: 192.2 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2937/7.72, allocations: 48.16 MB / 1.755 GB, free: 166.5 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003132/7.723, allocations: 2.318 MB / 1.758 GB, free: 164.2 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007196/7.724, allocations: 445.5 kB / 1.758 GB, free: 163.8 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003943/7.728, allocations: 3.06 MB / 1.761 GB, free: 160.7 MB / 494.1 MB Notification: Performance of pre-optimization done (n=423): time 5.18e-06/7.728, allocations: 0 / 1.761 GB, free: 160.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=423): time 0.01524/7.743, allocations: 12.56 MB / 1.773 GB, free: 148.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.038e-05/7.743, allocations: 125.3 kB / 1.773 GB, free: 148 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000464/7.744, allocations: 314.9 kB / 1.774 GB, free: 147.7 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003168/7.744, allocations: 97.7 kB / 1.774 GB, free: 147.6 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.22e-05/7.744, allocations: 148.5 kB / 1.774 GB, free: 147.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008029/7.745, allocations: 1.398 MB / 1.775 GB, free: 146.1 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001373/7.746, allocations: 0.9509 MB / 1.776 GB, free: 145.1 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.235e-05/7.747, allocations: 325.9 kB / 1.776 GB, free: 144.8 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004803/7.751, allocations: 2.037 MB / 1.778 GB, free: 142.8 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005767/7.757, allocations: 2.295 MB / 1.781 GB, free: 140.4 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009833/7.767, allocations: 4.754 MB / 1.785 GB, free: 135.7 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.938e-06/7.767, allocations: 2.625 kB / 1.785 GB, free: 135.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=439) (initialization): time 0.0154/7.782, allocations: 13.4 MB / 1.798 GB, free: 122.2 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.88e-05/7.783, allocations: 8 kB / 1.798 GB, free: 122.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.426e-05/7.783, allocations: 0 / 1.798 GB, free: 122.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.118e-05/7.783, allocations: 16.66 kB / 1.798 GB, free: 122.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004198/7.787, allocations: 1.089 MB / 1.8 GB, free: 121.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.503e-05/7.787, allocations: 16 kB / 1.8 GB, free: 121.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001789/7.789, allocations: 237.3 kB / 1.8 GB, free: 120.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004598/7.789, allocations: 323.5 kB / 1.8 GB, free: 120.6 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.001176/7.79, allocations: 0.5356 MB / 1.801 GB, free: 120.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001777/7.792, allocations: 346.1 kB / 1.801 GB, free: 119.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01664/7.809, allocations: 12.33 MB / 1.813 GB, free: 107.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-05/7.809, allocations: 44 kB / 1.813 GB, free: 107.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/7.809, allocations: 0 / 1.813 GB, free: 107.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-05/7.809, allocations: 23.92 kB / 1.813 GB, free: 107.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002431/7.811, allocations: 2.467 MB / 1.815 GB, free: 105.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.477e-06/7.811, allocations: 0.9844 kB / 1.815 GB, free: 105.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004006/7.815, allocations: 1.058 MB / 1.816 GB, free: 104.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.947e-05/7.815, allocations: 12 kB / 1.817 GB, free: 104.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003722/7.816, allocations: 291.5 kB / 1.817 GB, free: 103.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.428e-05/7.816, allocations: 19.94 kB / 1.817 GB, free: 103.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/7.816, allocations: 3.125 kB / 1.817 GB, free: 103.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01583/7.832, allocations: 13.83 MB / 1.83 GB, free: 89.96 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001299/7.833, allocations: 1.334 MB / 1.832 GB, free: 88.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004101/7.833, allocations: 68 kB / 1.832 GB, free: 88.54 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001522/7.835, allocations: 86.38 kB / 1.832 GB, free: 88.45 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005921/7.835, allocations: 386.5 kB / 1.832 GB, free: 88.07 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004344/7.836, allocations: 311.5 kB / 1.832 GB, free: 87.77 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003582/7.836, allocations: 229.9 kB / 1.833 GB, free: 87.54 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.072e-06/7.836, allocations: 4 kB / 1.833 GB, free: 87.54 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002438/7.839, allocations: 0.6678 MB / 1.833 GB, free: 86.89 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.0181/7.857, allocations: 14.93 MB / 1.848 GB, free: 72 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.1817/8.039, allocations: 15.51 MB / 1.863 GB, free: 190.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/8.039, allocations: 0 / 1.863 GB, free: 190.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005953/8.045, allocations: 2.841 MB / 1.866 GB, free: 189.8 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002249/8.047, allocations: 156.8 kB / 1.866 GB, free: 189.6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04272/8.09, allocations: 32.85 MB / 1.898 GB, free: 175.9 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006412/8.09, allocations: 1.327 MB / 1.899 GB, free: 174.7 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.008381/8.099, allocations: 2.983 MB / 1.902 GB, free: 172.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002013/8.101, allocations: 1.025 MB / 1.903 GB, free: 171.8 MB / 494.1 MB Notification: Performance of SimCode: time 7.02e-07/8.101, allocations: 0 / 1.903 GB, free: 171.8 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07038/8.171, allocations: 50.5 MB / 1.953 GB, free: 125.3 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.294/17.47, allocations: 8.578 kB / 1.953 GB, free: 125.3 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 & 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)