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.007482/0.007482, allocations: 101 kB / 15.73 MB, free: 6.047 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.001398/0.001399, allocations: 186.5 kB / 16.67 MB, free: 5.977 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.434/1.434, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1485/0.1485, allocations: 3.876 MB / 294.4 MB, free: 3.203 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 59.91 kB / 406.9 MB, free: 104 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2907/0.292, allocations: 50.18 MB / 457.1 MB, free: 20.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain): time 0.004241/0.2963, allocations: 2.06 MB / 459.2 MB, free: 19.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007093/0.3034, allocations: 3.913 MB / 463.1 MB, free: 16.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003442/0.3038, allocations: 6.781 kB / 463.1 MB, free: 16.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004229/0.3043, allocations: 48.09 kB / 463.2 MB, free: 16.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001924/0.3045, allocations: 54.56 kB / 463.2 MB, free: 16.7 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.002257/0.3068, allocations: 0.6508 MB / 463.9 MB, free: 16.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005449/0.3122, allocations: 5.677 MB / 469.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002188/0.3125, allocations: 53.09 kB / 469.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003938/0.3164, allocations: 1.489 MB / 471.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004975/0.3214, allocations: 1.868 MB / 472.9 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001606/0.323, allocations: 256.8 kB / 473.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.156/9.479, allocations: 1.215 GB / 1.677 GB, free: 37.12 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.002119/9.482, allocations: 0.9796 MB / 1.678 GB, free: 36.56 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.002536/9.484, allocations: 1.095 MB / 1.679 GB, free: 35.58 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.004558/9.489, allocations: 3.787 MB / 1.683 GB, free: 32.24 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/9.489, allocations: 0 / 1.683 GB, free: 32.24 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.124e-06/9.489, allocations: 3.094 kB / 1.683 GB, free: 32.24 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.877e-05/9.489, allocations: 1.156 kB / 1.683 GB, free: 32.24 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.006115/9.495, allocations: 1.97 MB / 1.685 GB, free: 30.22 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/9.495, allocations: 12.03 kB / 1.685 GB, free: 30.21 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001757/9.497, allocations: 359 kB / 1.685 GB, free: 29.86 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003587/9.5, allocations: 1.596 MB / 1.687 GB, free: 28.27 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.206e-05/9.5, allocations: 123.7 kB / 1.687 GB, free: 28.15 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003575/9.501, allocations: 172.6 kB / 1.687 GB, free: 27.98 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004486/9.505, allocations: 3.602 MB / 1.69 GB, free: 24.35 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.543e-05/9.505, allocations: 1.078 kB / 1.69 GB, free: 24.35 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002811/9.506, allocations: 68 kB / 1.69 GB, free: 24.28 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.546e-05/9.506, allocations: 43.19 kB / 1.691 GB, free: 24.24 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3558/9.861, allocations: 62.48 MB / 1.752 GB, free: 178.6 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00782/9.869, allocations: 6.926 MB / 1.758 GB, free: 171.8 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2717/10.14, allocations: 48.16 MB / 1.805 GB, free: 123.3 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003234/10.14, allocations: 2.311 MB / 1.808 GB, free: 121 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007358/10.15, allocations: 453.1 kB / 1.808 GB, free: 120.6 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004023/10.15, allocations: 3.058 MB / 1.811 GB, free: 117.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=423): time 7.484e-06/10.15, allocations: 0 / 1.811 GB, free: 117.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=423): time 0.01562/10.16, allocations: 12.56 MB / 1.823 GB, free: 104.9 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/10.16, allocations: 127.1 kB / 1.823 GB, free: 104.8 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005439/10.17, allocations: 314.9 kB / 1.824 GB, free: 104.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003428/10.17, allocations: 105.7 kB / 1.824 GB, free: 104.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/10.17, allocations: 142.8 kB / 1.824 GB, free: 104.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001018/10.17, allocations: 1.396 MB / 1.825 GB, free: 102.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001445/10.17, allocations: 0.9447 MB / 1.826 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 8.721e-05/10.17, allocations: 332.6 kB / 1.827 GB, free: 101.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002986/10.17, allocations: 2.033 MB / 1.829 GB, free: 99.51 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003274/10.17, allocations: 2.297 MB / 1.831 GB, free: 97.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007018/10.18, allocations: 4.751 MB / 1.835 GB, free: 92.41 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.224e-05/10.18, allocations: 0 / 1.835 GB, free: 92.41 MB / 0.5294 GB Notification: Performance of matching and sorting (n=439) (initialization): time 0.01633/10.2, allocations: 13.4 MB / 1.848 GB, free: 78.99 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.329e-05/10.2, allocations: 4 kB / 1.848 GB, free: 78.99 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.321e-05/10.2, allocations: 0 / 1.848 GB, free: 78.99 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.683e-05/10.2, allocations: 23.92 kB / 1.849 GB, free: 78.96 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006836/10.21, allocations: 1.084 MB / 1.85 GB, free: 77.88 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.414e-05/10.21, allocations: 16 kB / 1.85 GB, free: 77.86 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003467/10.21, allocations: 245.3 kB / 1.85 GB, free: 77.62 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001232/10.21, allocations: 317.3 kB / 1.85 GB, free: 77.31 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.002062/10.21, allocations: 0.5394 MB / 1.851 GB, free: 76.77 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003126/10.22, allocations: 342.2 kB / 1.851 GB, free: 76.43 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0342/10.25, allocations: 12.31 MB / 1.863 GB, free: 64.29 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.333e-05/10.25, allocations: 40 kB / 1.863 GB, free: 64.25 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.467e-05/10.25, allocations: 5.078 kB / 1.863 GB, free: 64.25 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001112/10.25, allocations: 23.86 kB / 1.863 GB, free: 64.22 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006058/10.26, allocations: 2.464 MB / 1.865 GB, free: 61.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.754e-05/10.26, allocations: 3.375 kB / 1.865 GB, free: 61.79 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009505/10.27, allocations: 1.061 MB / 1.867 GB, free: 60.73 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.576e-05/10.27, allocations: 16 kB / 1.867 GB, free: 60.71 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001803/10.27, allocations: 291.5 kB / 1.867 GB, free: 60.43 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.203e-05/10.27, allocations: 12 kB / 1.867 GB, free: 60.42 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.381e-06/10.27, allocations: 3.938 kB / 1.867 GB, free: 60.41 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03532/10.3, allocations: 13.83 MB / 1.88 GB, free: 46.53 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003329/10.31, allocations: 1.329 MB / 1.882 GB, free: 45.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009503/10.31, allocations: 75.98 kB / 1.882 GB, free: 45.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0032/10.31, allocations: 83.97 kB / 1.882 GB, free: 45.02 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001111/10.31, allocations: 386.5 kB / 1.882 GB, free: 44.64 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009399/10.31, allocations: 315.5 kB / 1.882 GB, free: 44.33 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0006417/10.31, allocations: 229.8 kB / 1.883 GB, free: 44.11 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.104e-06/10.31, allocations: 0 / 1.883 GB, free: 44.11 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003573/10.32, allocations: 0.6639 MB / 1.883 GB, free: 43.47 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.001908/10.32, allocations: 0.6395 MB / 1.884 GB, free: 42.89 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2456/10.56, allocations: 5.19 MB / 1.889 GB, free: 204 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/10.56, allocations: 0 / 1.889 GB, free: 204 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005659/10.57, allocations: 2.839 MB / 1.892 GB, free: 203.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00097/10.57, allocations: 159.1 kB / 1.892 GB, free: 203 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006045/10.58, allocations: 4.413 MB / 1.896 GB, free: 201.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007837/10.58, allocations: 1.33 MB / 1.898 GB, free: 200.6 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.012/10.59, allocations: 2.984 MB / 1.9 GB, free: 199.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00356/10.59, allocations: 0.6355 MB / 1.901 GB, free: 199.7 MB / 0.5294 GB Notification: Performance of SimCode: time 1.502e-06/10.59, allocations: 0 / 1.901 GB, free: 199.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.09654/10.69, allocations: 39.58 MB / 1.94 GB, free: 174.4 MB / 0.5294 GB 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 -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain.pipe 2>&1)