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.001309/0.001309, allocations: 110.9 kB / 16.37 MB, free: 6.469 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.001387/0.001387, allocations: 189.9 kB / 17.3 MB, free: 5.828 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 / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02559/0.02559, allocations: 3.899 MB / 295.1 MB, free: 11.06 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 63.89 kB / 356.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2598/0.2613, allocations: 50.19 MB / 407.1 MB, free: 31.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain): time 0.002563/0.2639, allocations: 2.061 MB / 409.2 MB, free: 29.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004626/0.2685, allocations: 3.904 MB / 413.1 MB, free: 25.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001387/0.2687, allocations: 7.938 kB / 413.1 MB, free: 25.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002065/0.269, allocations: 51.53 kB / 413.1 MB, free: 25.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001138/0.2691, allocations: 47.69 kB / 413.2 MB, free: 25.86 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.001319/0.2704, allocations: 0.6465 MB / 413.8 MB, free: 25.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002937/0.2734, allocations: 5.678 MB / 419.5 MB, free: 19.53 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001421/0.2735, allocations: 48.39 kB / 419.6 MB, free: 19.47 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001801/0.2753, allocations: 1.485 MB / 421 MB, free: 17.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002012/0.2773, allocations: 1.872 MB / 422.9 MB, free: 16.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000316/0.2777, allocations: 259.9 kB / 423.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.337/7.615, allocations: 1.215 GB / 1.628 GB, free: 159.7 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002207/7.617, allocations: 0.9721 MB / 1.629 GB, free: 159.7 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001299/7.618, allocations: 1.093 MB / 1.63 GB, free: 159.5 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004335/7.623, allocations: 3.79 MB / 1.634 GB, free: 158.3 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/7.623, allocations: 0 / 1.634 GB, free: 158.3 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.645e-06/7.623, allocations: 0 / 1.634 GB, free: 158.3 MB / 462.1 MB Notification: Performance of Transformations before backend: time 3.776e-05/7.623, allocations: 7.219 kB / 1.634 GB, free: 158.3 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.005389/7.628, allocations: 1.967 MB / 1.636 GB, free: 156.9 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/7.628, allocations: 15.16 kB / 1.636 GB, free: 156.9 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001938/7.63, allocations: 351.3 kB / 1.636 GB, free: 156.7 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003965/7.634, allocations: 1.604 MB / 1.638 GB, free: 155.4 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/7.634, allocations: 126.5 kB / 1.638 GB, free: 155.4 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004905/7.635, allocations: 173.7 kB / 1.638 GB, free: 155.3 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004939/7.64, allocations: 3.604 MB / 1.642 GB, free: 151.9 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.244e-05/7.64, allocations: 0 / 1.642 GB, free: 151.9 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000237/7.64, allocations: 68 kB / 1.642 GB, free: 151.9 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.057e-05/7.64, allocations: 40 kB / 1.642 GB, free: 151.8 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09084/7.731, allocations: 62.47 MB / 1.703 GB, free: 89.23 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008489/7.739, allocations: 6.928 MB / 1.709 GB, free: 82.29 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2364/7.976, allocations: 48.17 MB / 1.756 GB, free: 33.82 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002921/7.979, allocations: 2.314 MB / 1.759 GB, free: 31.5 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006527/7.979, allocations: 449.7 kB / 1.759 GB, free: 31.09 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003645/7.983, allocations: 3.061 MB / 1.762 GB, free: 27.99 MB / 462.1 MB Notification: Performance of pre-optimization done (n=423): time 5.681e-06/7.983, allocations: 0 / 1.762 GB, free: 27.99 MB / 462.1 MB Notification: Performance of matching and sorting (n=423): time 0.2123/8.195, allocations: 12.55 MB / 1.774 GB, free: 180.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.557e-05/8.196, allocations: 131.5 kB / 1.775 GB, free: 180.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006873/8.196, allocations: 320.9 kB / 1.775 GB, free: 180.1 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009724/8.197, allocations: 97.7 kB / 1.775 GB, free: 180 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/8.197, allocations: 146.6 kB / 1.775 GB, free: 179.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001718/8.199, allocations: 1.393 MB / 1.776 GB, free: 178.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002566/8.202, allocations: 0.9524 MB / 1.777 GB, free: 177.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.978e-05/8.202, allocations: 322 kB / 1.778 GB, free: 177.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004602/8.206, allocations: 2.037 MB / 1.78 GB, free: 175.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005374/8.212, allocations: 2.298 MB / 1.782 GB, free: 173 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01153/8.223, allocations: 4.747 MB / 1.787 GB, free: 168.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.359e-05/8.223, allocations: 0 / 1.787 GB, free: 168.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=439) (initialization): time 0.02377/8.247, allocations: 13.4 MB / 1.8 GB, free: 154.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.051e-05/8.247, allocations: 8 kB / 1.8 GB, free: 154.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.332e-05/8.247, allocations: 3.984 kB / 1.8 GB, free: 154.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.84e-05/8.247, allocations: 16 kB / 1.8 GB, free: 154.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005232/8.253, allocations: 1.089 MB / 1.801 GB, free: 153.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.821e-05/8.253, allocations: 14.62 kB / 1.801 GB, free: 153.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002281/8.255, allocations: 245.5 kB / 1.801 GB, free: 153.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008644/8.256, allocations: 322.1 kB / 1.801 GB, free: 153.1 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.001558/8.257, allocations: 0.5302 MB / 1.802 GB, free: 152.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001865/8.259, allocations: 346.1 kB / 1.802 GB, free: 152.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.017/8.276, allocations: 12.32 MB / 1.814 GB, free: 140.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.613e-05/8.276, allocations: 40 kB / 1.814 GB, free: 140.1 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.921e-05/8.276, allocations: 5.875 kB / 1.814 GB, free: 140.1 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.175e-05/8.276, allocations: 19.92 kB / 1.814 GB, free: 140.1 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002602/8.279, allocations: 2.467 MB / 1.817 GB, free: 137.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.749e-05/8.279, allocations: 0 / 1.817 GB, free: 137.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00402/8.283, allocations: 1.061 MB / 1.818 GB, free: 136.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.803e-05/8.283, allocations: 12 kB / 1.818 GB, free: 136.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004942/8.284, allocations: 295.5 kB / 1.818 GB, free: 136.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.892e-05/8.284, allocations: 16 kB / 1.818 GB, free: 136.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/8.284, allocations: 96 / 1.818 GB, free: 136.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01643/8.3, allocations: 13.84 MB / 1.831 GB, free: 122.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001671/8.302, allocations: 1.329 MB / 1.833 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003711/8.302, allocations: 72 kB / 1.833 GB, free: 121 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001345/8.304, allocations: 79.97 kB / 1.833 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00055/8.304, allocations: 394.2 kB / 1.833 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004636/8.305, allocations: 311.5 kB / 1.834 GB, free: 120.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0003125/8.305, allocations: 233.9 kB / 1.834 GB, free: 120 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/8.305, allocations: 0 / 1.834 GB, free: 120 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002528/8.307, allocations: 0.6651 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.001706/8.309, allocations: 0.6329 MB / 1.835 GB, free: 118.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008028/8.317, allocations: 5.19 MB / 1.84 GB, free: 113.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/8.317, allocations: 1.75 kB / 1.84 GB, free: 113.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004344/8.322, allocations: 2.844 MB / 1.843 GB, free: 110.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009765/8.323, allocations: 165.7 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.005117/8.328, allocations: 4.407 MB / 1.847 GB, free: 106.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006036/8.328, allocations: 1.325 MB / 1.849 GB, free: 104.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006853/8.335, 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.001479/8.337, allocations: 0.6312 MB / 1.852 GB, free: 101.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.333e-06/8.337, allocations: 0 / 1.852 GB, free: 101.3 MB / 462.1 MB Notification: Performance of Templates: time 0.04787/8.385, allocations: 38.82 MB / 1.89 GB, free: 62.52 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 cvode -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain.pipe 2>&1)