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.006073/0.006073, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001225/0.001225, allocations: 193.7 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.308/1.308, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1187/0.1187, allocations: 3.883 MB / 294.4 MB, free: 3.199 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 55.91 kB / 406.9 MB, free: 152 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2203/0.2215, allocations: 50.18 MB / 457.1 MB, free: 20.78 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain): time 0.002404/0.2239, allocations: 2.068 MB / 459.2 MB, free: 19.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005008/0.229, allocations: 3.913 MB / 463.1 MB, free: 16.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001714/0.2292, allocations: 9.969 kB / 463.1 MB, free: 16.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002802/0.2295, allocations: 45.69 kB / 463.2 MB, free: 16.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001369/0.2296, allocations: 51.36 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.001435/0.2311, allocations: 0.6458 MB / 463.9 MB, free: 16.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00418/0.2352, allocations: 5.684 MB / 469.5 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001225/0.2354, allocations: 45.69 kB / 469.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002005/0.2374, allocations: 1.486 MB / 471.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002572/0.24, allocations: 1.867 MB / 472.9 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005481/0.2405, allocations: 256.3 kB / 473.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.663/6.904, allocations: 1.215 GB / 1.677 GB, free: 37.08 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.002082/6.906, allocations: 0.9777 MB / 1.678 GB, free: 36.53 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001031/6.907, allocations: 1.095 MB / 1.679 GB, free: 35.55 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.003221/6.91, allocations: 3.803 MB / 1.683 GB, free: 32.15 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/6.91, allocations: 0 / 1.683 GB, free: 32.15 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.963e-06/6.91, allocations: 3.188 kB / 1.683 GB, free: 32.15 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 2.172e-05/6.91, allocations: 0 / 1.683 GB, free: 32.15 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.005226/6.915, allocations: 2.014 MB / 1.685 GB, free: 30.08 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.235e-05/6.916, allocations: 12.03 kB / 1.685 GB, free: 30.07 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00166/6.917, allocations: 362.5 kB / 1.685 GB, free: 29.72 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003519/6.921, allocations: 1.6 MB / 1.687 GB, free: 28.12 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.597e-05/6.921, allocations: 127.7 kB / 1.687 GB, free: 28 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003645/6.921, allocations: 172.5 kB / 1.687 GB, free: 27.83 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004404/6.926, allocations: 3.606 MB / 1.69 GB, free: 24.2 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.482e-05/6.926, allocations: 0 / 1.69 GB, free: 24.2 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002474/6.926, allocations: 68 kB / 1.691 GB, free: 24.13 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.079e-05/6.926, allocations: 40 kB / 1.691 GB, free: 24.09 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2913/7.217, allocations: 62.47 MB / 1.752 GB, free: 178.5 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007167/7.224, allocations: 6.936 MB / 1.758 GB, free: 171.7 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2662/7.491, allocations: 48.15 MB / 1.805 GB, free: 123.2 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0027/7.493, allocations: 2.318 MB / 1.808 GB, free: 120.9 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006186/7.494, allocations: 444.6 kB / 1.808 GB, free: 120.5 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003515/7.498, allocations: 3.062 MB / 1.811 GB, free: 117.4 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=423): time 4.839e-06/7.498, allocations: 0 / 1.811 GB, free: 117.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=423): time 0.01346/7.511, allocations: 12.57 MB / 1.823 GB, free: 104.8 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.312e-05/7.511, allocations: 125.5 kB / 1.823 GB, free: 104.7 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000387/7.512, allocations: 310.9 kB / 1.824 GB, free: 104.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0002167/7.512, allocations: 109.7 kB / 1.824 GB, free: 104.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 6.93e-05/7.512, allocations: 143.6 kB / 1.824 GB, free: 104.1 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006828/7.513, allocations: 1.463 MB / 1.825 GB, free: 102.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001034/7.514, allocations: 0.9502 MB / 1.826 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.538e-05/7.514, allocations: 329.9 kB / 1.827 GB, free: 101.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002508/7.516, allocations: 2.032 MB / 1.829 GB, free: 99.49 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002876/7.519, allocations: 2.297 MB / 1.831 GB, free: 97.18 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006313/7.525, allocations: 4.756 MB / 1.836 GB, free: 92.39 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/7.525, allocations: 0 / 1.836 GB, free: 92.39 MB / 0.5294 GB Notification: Performance of matching and sorting (n=439) (initialization): time 0.01258/7.538, allocations: 13.41 MB / 1.849 GB, free: 78.96 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/7.538, allocations: 4 kB / 1.849 GB, free: 78.96 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/7.538, allocations: 4 kB / 1.849 GB, free: 78.96 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.318e-05/7.538, allocations: 15.94 kB / 1.849 GB, free: 78.94 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003678/7.542, allocations: 1.09 MB / 1.85 GB, free: 77.85 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.273e-05/7.542, allocations: 16 kB / 1.85 GB, free: 77.84 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001521/7.543, allocations: 246.1 kB / 1.85 GB, free: 77.59 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004388/7.544, allocations: 323.5 kB / 1.85 GB, free: 77.28 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.0007773/7.544, allocations: 0.5308 MB / 1.851 GB, free: 76.74 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001431/7.546, allocations: 351.1 kB / 1.851 GB, free: 76.39 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01386/7.56, allocations: 12.32 MB / 1.863 GB, free: 64.26 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.116e-05/7.56, allocations: 40 kB / 1.863 GB, free: 64.22 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/7.56, allocations: 0 / 1.863 GB, free: 64.22 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.676e-05/7.56, allocations: 19.92 kB / 1.863 GB, free: 64.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00207/7.562, allocations: 2.484 MB / 1.866 GB, free: 61.76 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/7.562, allocations: 3.125 kB / 1.866 GB, free: 61.76 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003511/7.565, allocations: 1.057 MB / 1.867 GB, free: 60.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.545e-05/7.565, allocations: 16 kB / 1.867 GB, free: 60.68 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003198/7.566, allocations: 291.5 kB / 1.867 GB, free: 60.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.278e-05/7.566, allocations: 12 kB / 1.867 GB, free: 60.39 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/7.566, allocations: 7.938 kB / 1.867 GB, free: 60.38 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01441/7.58, allocations: 13.84 MB / 1.881 GB, free: 46.48 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001129/7.581, allocations: 1.329 MB / 1.882 GB, free: 45.13 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003418/7.582, allocations: 68 kB / 1.882 GB, free: 45.07 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001474/7.583, allocations: 87.97 kB / 1.882 GB, free: 44.98 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000508/7.584, allocations: 386.6 kB / 1.882 GB, free: 44.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004294/7.584, allocations: 323.5 kB / 1.883 GB, free: 44.29 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003083/7.585, allocations: 229.8 kB / 1.883 GB, free: 44.06 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.9e-07/7.585, allocations: 2.516 kB / 1.883 GB, free: 44.06 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002034/7.587, allocations: 0.6636 MB / 1.883 GB, free: 43.4 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.001394/7.588, allocations: 0.6329 MB / 1.884 GB, free: 42.8 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.1683/7.756, allocations: 5.193 MB / 1.889 GB, free: 204 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/7.756, allocations: 0.9375 kB / 1.889 GB, free: 204 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005138/7.761, allocations: 2.839 MB / 1.892 GB, free: 203.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008363/7.762, allocations: 153.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.005423/7.768, allocations: 4.459 MB / 1.896 GB, free: 201.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006992/7.768, allocations: 1.322 MB / 1.898 GB, free: 200.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006921/7.775, allocations: 2.992 MB / 1.901 GB, free: 199.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001683/7.777, allocations: 0.6346 MB / 1.901 GB, free: 199.6 MB / 0.5294 GB Notification: Performance of SimCode: time 1.072e-06/7.777, allocations: 0 / 1.901 GB, free: 199.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.04912/7.826, allocations: 39.58 MB / 1.94 GB, free: 174.1 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)