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.001191/0.001191, allocations: 108 kB / 15.6 MB, free: 132 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.002001/0.002001, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.368/1.368, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1526/0.1526, allocations: 3.89 MB / 294.3 MB, free: 3.211 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.001401, allocations: 67.89 kB / 355.5 MB, free: 3.59 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1068, allocations: 50.18 MB / 405.7 MB, free: 1.367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain): time 0.003743/0.1106, allocations: 2.058 MB / 407.7 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006667/0.1173, allocations: 3.906 MB / 411.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002756/0.1176, allocations: 7.938 kB / 411.6 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003916/0.118, allocations: 51.53 kB / 411.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002392/0.1183, allocations: 55.62 kB / 411.7 MB, free: 11.25 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.001971/0.1203, allocations: 0.6494 MB / 412.4 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004346/0.1246, allocations: 5.635 MB / 418 MB, free: 4.957 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001978/0.1249, allocations: 64.36 kB / 418.1 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002527/0.1274, allocations: 1.477 MB / 419.6 MB, free: 3.414 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004085/0.1315, allocations: 1.868 MB / 421.4 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001368/0.1329, allocations: 259.9 kB / 421.7 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.42/7.553, allocations: 1.215 GB / 1.627 GB, free: 97.62 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001853/7.555, allocations: 0.9721 MB / 1.628 GB, free: 97.61 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002667/7.558, allocations: 1.096 MB / 1.629 GB, free: 97.22 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006357/7.564, allocations: 3.772 MB / 1.632 GB, free: 96.4 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.041e-05/7.564, allocations: 0 / 1.632 GB, free: 96.4 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.575e-06/7.564, allocations: 0 / 1.632 GB, free: 96.4 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0002061/7.565, allocations: 0 / 1.632 GB, free: 96.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.01168/7.576, allocations: 1.98 MB / 1.634 GB, free: 95.41 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.675e-05/7.576, allocations: 9.594 kB / 1.634 GB, free: 95.41 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003173/7.58, allocations: 356.8 kB / 1.635 GB, free: 95.27 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005458/7.585, allocations: 1.599 MB / 1.636 GB, free: 94.54 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001784/7.585, allocations: 130.4 kB / 1.636 GB, free: 94.48 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007447/7.586, allocations: 160.1 kB / 1.637 GB, free: 94.43 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008187/7.594, allocations: 3.607 MB / 1.64 GB, free: 93.52 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.994e-05/7.594, allocations: 0.6562 kB / 1.64 GB, free: 93.52 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003251/7.595, allocations: 68.12 kB / 1.64 GB, free: 93.47 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.424e-05/7.595, allocations: 45.03 kB / 1.64 GB, free: 93.47 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3451/7.94, allocations: 62.47 MB / 1.701 GB, free: 194.5 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0154/7.955, allocations: 6.933 MB / 1.708 GB, free: 192.2 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2962/8.251, allocations: 48.16 MB / 1.755 GB, free: 166.8 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003709/8.255, allocations: 2.319 MB / 1.757 GB, free: 164.5 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009711/8.256, allocations: 441.3 kB / 1.758 GB, free: 164.1 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0056/8.262, allocations: 3.067 MB / 1.761 GB, free: 161 MB / 494.1 MB Notification: Performance of pre-optimization done (n=423): time 8.326e-06/8.262, allocations: 0 / 1.761 GB, free: 161 MB / 494.1 MB Notification: Performance of matching and sorting (n=423): time 0.01976/8.282, allocations: 12.56 MB / 1.773 GB, free: 148.5 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.563e-05/8.282, allocations: 124.3 kB / 1.773 GB, free: 148.3 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004856/8.282, allocations: 310.9 kB / 1.773 GB, free: 148 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006328/8.283, allocations: 109.7 kB / 1.773 GB, free: 147.9 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.541e-05/8.283, allocations: 144.6 kB / 1.774 GB, free: 147.8 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001125/8.284, allocations: 1.396 MB / 1.775 GB, free: 146.4 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00137/8.285, allocations: 0.95 MB / 1.776 GB, free: 145.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.846e-05/8.285, allocations: 330.4 kB / 1.776 GB, free: 145.1 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002919/8.288, allocations: 2.029 MB / 1.778 GB, free: 143.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003367/8.292, allocations: 2.297 MB / 1.78 GB, free: 140.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007396/8.299, allocations: 4.758 MB / 1.785 GB, free: 136 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.478e-05/8.299, allocations: 0 / 1.785 GB, free: 136 MB / 494.1 MB Notification: Performance of matching and sorting (n=439) (initialization): time 0.0177/8.317, allocations: 13.4 MB / 1.798 GB, free: 122.6 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.346e-05/8.317, allocations: 4 kB / 1.798 GB, free: 122.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.094e-05/8.317, allocations: 8.125 kB / 1.798 GB, free: 122.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.89e-05/8.317, allocations: 16 kB / 1.798 GB, free: 122.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004929/8.322, allocations: 1.084 MB / 1.799 GB, free: 121.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.407e-05/8.322, allocations: 16 kB / 1.799 GB, free: 121.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002424/8.325, allocations: 243 kB / 1.799 GB, free: 121.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001493/8.326, allocations: 319.5 kB / 1.8 GB, free: 120.9 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.003009/8.329, allocations: 0.5305 MB / 1.8 GB, free: 120.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002979/8.332, allocations: 350.1 kB / 1.801 GB, free: 120.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02224/8.354, allocations: 12.33 MB / 1.813 GB, free: 108 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.672e-05/8.354, allocations: 40 kB / 1.813 GB, free: 108 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.402e-05/8.354, allocations: 0 / 1.813 GB, free: 108 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.696e-05/8.355, allocations: 19.92 kB / 1.813 GB, free: 107.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002987/8.358, allocations: 2.471 MB / 1.815 GB, free: 105.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.396e-05/8.358, allocations: 4.984 kB / 1.815 GB, free: 105.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004188/8.362, allocations: 1.056 MB / 1.816 GB, free: 104.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.313e-05/8.362, allocations: 15.94 kB / 1.816 GB, free: 104.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006884/8.363, allocations: 291.5 kB / 1.816 GB, free: 104.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.347e-05/8.363, allocations: 16 kB / 1.816 GB, free: 104.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/8.363, allocations: 4.547 kB / 1.816 GB, free: 104.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01808/8.381, allocations: 13.83 MB / 1.83 GB, free: 90.28 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001762/8.382, allocations: 1.329 MB / 1.831 GB, free: 88.93 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000701/8.383, allocations: 68 kB / 1.831 GB, free: 88.86 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002046/8.385, allocations: 86.38 kB / 1.831 GB, free: 88.78 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007134/8.386, allocations: 390.5 kB / 1.832 GB, free: 88.39 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005864/8.387, allocations: 315.5 kB / 1.832 GB, free: 88.09 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003653/8.387, allocations: 233.8 kB / 1.832 GB, free: 87.86 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/8.387, allocations: 0 / 1.832 GB, free: 87.86 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002976/8.39, allocations: 0.6636 MB / 1.833 GB, free: 87.21 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.002441/8.392, allocations: 0.6333 MB / 1.834 GB, free: 86.66 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02859/8.421, allocations: 15.52 MB / 1.849 GB, free: 71.14 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/8.421, allocations: 0 / 1.849 GB, free: 71.14 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00863/8.43, allocations: 2.836 MB / 1.852 GB, free: 68.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002511/8.432, allocations: 160.8 kB / 1.852 GB, free: 68.14 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01041/8.443, allocations: 4.438 MB / 1.856 GB, free: 63.68 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2191/8.662, allocations: 1.325 MB / 1.857 GB, free: 189.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.009234/8.671, allocations: 2.992 MB / 1.86 GB, free: 188.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001795/8.673, allocations: 0.6256 MB / 1.861 GB, free: 188.6 MB / 494.1 MB Notification: Performance of SimCode: time 1.533e-06/8.673, allocations: 0 / 1.861 GB, free: 188.6 MB / 494.1 MB Notification: Performance of Templates: time 0.06109/8.734, allocations: 38.85 MB / 1.899 GB, free: 177.4 MB / 494.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 -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain.pipe 2>&1)