Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase.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.MinimumAndZeroPhase,tolerance=0.001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase") translateModel(AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase,tolerance=0.001,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001442/0.001442, 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.001531/0.001531, allocations: 194.2 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.438/1.438, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1368/0.1368, allocations: 3.888 MB / 294.3 MB, free: 3.285 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002226/0.002226, allocations: 63.89 kB / 355.5 MB, free: 3.57 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1214, allocations: 50.19 MB / 405.7 MB, free: 1.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase): time 0.004432/0.1259, allocations: 2.05 MB / 407.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007313/0.1333, allocations: 3.918 MB / 411.6 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002543/0.1336, allocations: 7.938 kB / 411.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002154/0.1338, allocations: 35.61 kB / 411.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.983e-05/0.1339, allocations: 23.73 kB / 411.7 MB, free: 11.26 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.MinimumAndZeroPhase.spaceDomainNoiseMinimum.generator.initialState' contains a call to impure function 'AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase.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.MinimumAndZeroPhase.spaceDomainNoiseMinimum.initialState' contains a call to impure function 'AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase.spaceDomainNoiseMinimum.convertRealToIntegers'. [/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.MinimumAndZeroPhase.spaceDomainNoiseZero.generator.initialState' contains a call to impure function 'AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase.spaceDomainNoiseZero.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.MinimumAndZeroPhase.spaceDomainNoiseZero.initialState' contains a call to impure function 'AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase.spaceDomainNoiseZero.convertRealToIntegers'. Notification: Performance of NFTyping.typeClassSections: time 0.002326/0.1363, allocations: 0.7907 MB / 412.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1808/0.3171, allocations: 13.56 MB / 426.1 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002219/0.3173, allocations: 61.02 kB / 426.1 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00491/0.3222, allocations: 3.349 MB / 429.5 MB, free: 35.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005086/0.3274, allocations: 4.403 MB / 433.9 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001929/0.3293, allocations: 0.5923 MB / 434.5 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 53.18/53.51, allocations: 8.772 GB / 9.196 GB, free: 167.8 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.006034/53.51, allocations: 2.289 MB / 9.199 GB, free: 167.7 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.008309/53.52, allocations: 2.545 MB / 9.201 GB, free: 167.2 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.01768/53.54, allocations: 8.587 MB / 9.21 GB, free: 165.3 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 1.044e-05/53.54, allocations: 0 / 9.21 GB, free: 165.3 MB / 0.5137 GB Notification: Performance of FrontEnd: time 3.025e-06/53.54, allocations: 0 / 9.21 GB, free: 165.3 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.0003336/53.54, allocations: 0 / 9.21 GB, free: 165.3 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1025 * Number of variables: 1025 Notification: Performance of Generate backend data structure: time 0.02527/53.56, allocations: 3.853 MB / 9.213 GB, free: 163.6 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 6.901e-05/53.56, allocations: 14.27 kB / 9.213 GB, free: 163.6 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008386/53.57, allocations: 0.7892 MB / 9.214 GB, free: 163.3 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01702/53.59, allocations: 3.454 MB / 9.217 GB, free: 161.9 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006309/53.59, allocations: 298.1 kB / 9.218 GB, free: 161.7 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004903/53.6, allocations: 393.8 kB / 9.218 GB, free: 161.6 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03457/53.63, allocations: 8.69 MB / 9.227 GB, free: 159.4 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000149/53.63, allocations: 0 / 9.227 GB, free: 159.4 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002392/53.63, allocations: 160.3 kB / 9.227 GB, free: 159.3 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.496e-05/53.63, allocations: 96.41 kB / 9.227 GB, free: 159.3 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6129/54.25, allocations: 198.1 MB / 9.42 GB, free: 140.5 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04378/54.29, allocations: 15.93 MB / 9.436 GB, free: 124.7 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 1.192/55.48, allocations: 153.2 MB / 9.585 GB, free: 133.1 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01233/55.49, allocations: 5.628 MB / 9.591 GB, free: 127.9 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00303/55.5, allocations: 1.001 MB / 9.592 GB, free: 127 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001428/55.5, allocations: 138.5 kB / 9.592 GB, free: 126.9 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1017): time 1.743e-05/55.5, allocations: 0 / 9.592 GB, free: 126.9 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1017): time 0.0739/55.57, allocations: 34.37 MB / 9.626 GB, free: 92.57 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/55.57, allocations: 156.3 kB / 9.626 GB, free: 92.4 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003047/55.57, allocations: 229.5 kB / 9.626 GB, free: 92.17 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0036/55.57, allocations: 185.7 kB / 9.626 GB, free: 91.98 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001206/55.57, allocations: 148.5 kB / 9.626 GB, free: 91.83 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.006266/55.58, allocations: 3.319 MB / 9.63 GB, free: 88.48 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.009827/55.59, allocations: 2.259 MB / 9.632 GB, free: 86.2 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.2998/55.89, allocations: 324.8 kB / 9.632 GB, free: 221.8 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01502/55.91, allocations: 4.874 MB / 9.637 GB, free: 221.5 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01746/55.92, allocations: 5.441 MB / 9.642 GB, free: 219.7 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03739/55.96, allocations: 11.38 MB / 9.653 GB, free: 215.7 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.224e-05/55.96, allocations: 3.625 kB / 9.653 GB, free: 215.7 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.05807/56.02, allocations: 38.31 MB / 9.691 GB, free: 189.3 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.828e-05/56.02, allocations: 4.656 kB / 9.691 GB, free: 189.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.669e-05/56.02, allocations: 0 / 9.691 GB, free: 189.3 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.616e-05/56.02, allocations: 36 kB / 9.691 GB, free: 189.3 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01293/56.03, allocations: 2.606 MB / 9.693 GB, free: 187.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003059/56.03, allocations: 36.78 kB / 9.693 GB, free: 187.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007069/56.04, allocations: 0.5168 MB / 9.694 GB, free: 187 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004009/56.04, allocations: 0.7638 MB / 9.695 GB, free: 186.6 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 (globalSeed.seed,spaceDomainNoiseZero.actualGlobalSeed,spaceDomainNoiseMinimum.actualGlobalSeed,globalSeed.id_impure,spaceDomainNoiseZero.localSeed,spaceDomainNoiseMinimum.localSeed,position.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1024): * Single equations (assignments): 1024 * Array equations: 0 * 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.006993/56.05, allocations: 1.077 MB / 9.696 GB, free: 185.7 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0076/56.06, allocations: 0.7916 MB / 9.696 GB, free: 184.9 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07193/56.13, allocations: 33.97 MB / 9.73 GB, free: 151.8 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.458e-05/56.13, allocations: 96 kB / 9.73 GB, free: 151.7 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.439e-05/56.13, allocations: 3.938 kB / 9.73 GB, free: 151.7 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002353/56.13, allocations: 47.81 kB / 9.73 GB, free: 151.6 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01222/56.14, allocations: 5.694 MB / 9.735 GB, free: 146 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.012e-05/56.14, allocations: 0 / 9.735 GB, free: 146 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01273/56.16, allocations: 2.581 MB / 9.738 GB, free: 143.4 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001261/56.16, allocations: 32 kB / 9.738 GB, free: 143.4 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003947/56.16, allocations: 0.7018 MB / 9.738 GB, free: 142.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001083/56.16, allocations: 36 kB / 9.739 GB, free: 142.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/56.16, allocations: 3.938 kB / 9.739 GB, free: 142.7 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06401/56.22, allocations: 37.51 MB / 9.775 GB, free: 105.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00603/56.23, allocations: 3.104 MB / 9.778 GB, free: 102 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002657/56.23, allocations: 164.6 kB / 9.778 GB, free: 101.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005477/56.24, allocations: 160 kB / 9.778 GB, free: 101.7 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003455/56.24, allocations: 0.9279 MB / 9.779 GB, free: 100.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003708/56.25, allocations: 0.7682 MB / 9.78 GB, free: 99.99 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001888/56.25, allocations: 152.5 kB / 9.78 GB, free: 99.84 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/56.25, allocations: 2.734 kB / 9.78 GB, free: 99.84 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0109/56.26, allocations: 1.423 MB / 9.782 GB, free: 98.45 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (position.y) * Number of discrete variables: 2 (spaceDomainNoiseMinimum.localSeed,spaceDomainNoiseZero.localSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1017): * Single equations (assignments): 1015 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.005551/56.26, allocations: 1.025 MB / 9.783 GB, free: 97.5 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.4277/56.69, allocations: 75.61 MB / 9.857 GB, free: 179.7 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/56.69, allocations: 4 kB / 9.857 GB, free: 179.7 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.01976/56.71, allocations: 6.916 MB / 9.863 GB, free: 174 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003386/56.71, allocations: 332.6 kB / 9.864 GB, free: 173.7 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01582/56.73, allocations: 10.32 MB / 9.874 GB, free: 164.8 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002137/56.73, allocations: 2.17 MB / 9.876 GB, free: 163 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.03142/56.76, allocations: 7.35 MB / 9.883 GB, free: 157.2 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008358/56.77, allocations: 1.53 MB / 9.884 GB, free: 156.3 MB / 0.5137 GB Notification: Performance of SimCode: time 1.793e-06/56.77, allocations: 0 / 9.884 GB, free: 156.3 MB / 0.5137 GB Notification: Performance of Templates: time 0.6881/57.46, allocations: 88.71 MB / 9.971 GB, free: 176.6 MB / 0.5138 GB make -j1 -f AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase.makefile (rm -f AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase.sim & ./AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase.pipe 2>&1)