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.00517/0.00517, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001127/0.001127, allocations: 195.1 kB / 16.68 MB, free: 5.969 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.238/1.238, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02364/0.02364, allocations: 3.919 MB / 294.4 MB, free: 11.03 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001066/0.001066, allocations: 61.16 kB / 407 MB, free: 28.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07764/0.07871, allocations: 50.17 MB / 457.1 MB, free: 10 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase): time 0.002837/0.08159, allocations: 2.065 MB / 459.2 MB, free: 7.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005547/0.08715, allocations: 3.91 MB / 463.1 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001429/0.08731, allocations: 7.938 kB / 463.1 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001635/0.08748, allocations: 35.61 kB / 463.1 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.891e-05/0.08759, allocations: 23.73 kB / 463.2 MB, free: 3.914 MB / 334.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.001874/0.08947, allocations: 0.8001 MB / 464 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009719/0.0992, allocations: 13.64 MB / 477.6 MB, free: 5.457 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002178/0.09944, allocations: 68.28 kB / 477.7 MB, free: 5.391 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005158/0.1046, allocations: 3.351 MB / 481 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005851/0.1105, allocations: 4.4 MB / 485.4 MB, free: 13.63 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001919/0.1124, allocations: 0.5938 MB / 486 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 48.31/48.43, allocations: 8.772 GB / 9.247 GB, free: 66.75 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.00248/48.43, allocations: 2.295 MB / 9.249 GB, free: 66.51 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.003676/48.43, allocations: 2.543 MB / 9.252 GB, free: 65.29 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01066/48.44, allocations: 8.641 MB / 9.26 GB, free: 60.13 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/48.44, allocations: 3.984 kB / 9.26 GB, free: 60.13 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.142e-06/48.44, allocations: 0 / 9.26 GB, free: 60.13 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001348/48.44, allocations: 0 / 9.26 GB, free: 60.13 MB / 0.5606 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.01373/48.46, allocations: 3.919 MB / 9.264 GB, free: 57.25 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/48.46, allocations: 11.89 kB / 9.264 GB, free: 57.23 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004023/48.46, allocations: 0.8073 MB / 9.265 GB, free: 56.43 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008275/48.47, allocations: 3.462 MB / 9.268 GB, free: 53.01 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002099/48.47, allocations: 296.4 kB / 9.268 GB, free: 52.72 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009626/48.47, allocations: 393.6 kB / 9.269 GB, free: 52.34 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01139/48.48, allocations: 8.679 MB / 9.277 GB, free: 43.57 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.942e-05/48.48, allocations: 0 / 9.277 GB, free: 43.57 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005544/48.48, allocations: 164 kB / 9.277 GB, free: 43.41 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.306e-05/48.48, allocations: 96 kB / 9.277 GB, free: 43.32 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4788/48.96, allocations: 198.1 MB / 9.471 GB, free: 65.7 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2255/49.19, allocations: 15.93 MB / 9.486 GB, free: 235.5 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.875/50.06, allocations: 153.2 MB / 9.636 GB, free: 87.97 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008754/50.07, allocations: 5.626 MB / 9.642 GB, free: 82.34 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00213/50.07, allocations: 1.001 MB / 9.643 GB, free: 81.41 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001356/50.07, allocations: 137.7 kB / 9.643 GB, free: 81.27 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1017): time 2.072e-05/50.07, allocations: 4 kB / 9.643 GB, free: 81.27 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1017): time 0.2759/50.35, allocations: 34.38 MB / 9.676 GB, free: 237.7 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.667e-05/50.35, allocations: 161.8 kB / 9.676 GB, free: 237.5 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002589/50.35, allocations: 232.2 kB / 9.677 GB, free: 237.3 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009736/50.35, allocations: 185.7 kB / 9.677 GB, free: 237.1 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.858e-05/50.35, allocations: 145.5 kB / 9.677 GB, free: 237 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002399/50.35, allocations: 3.488 MB / 9.68 GB, free: 233.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002796/50.36, allocations: 2.261 MB / 9.683 GB, free: 232.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.972e-05/50.36, allocations: 319.2 kB / 9.683 GB, free: 232.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006426/50.36, allocations: 4.866 MB / 9.688 GB, free: 228 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00761/50.37, allocations: 5.447 MB / 9.693 GB, free: 222.5 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01668/50.39, allocations: 11.38 MB / 9.704 GB, free: 211.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.527e-05/50.39, allocations: 2.438 kB / 9.704 GB, free: 211.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.03627/50.42, allocations: 38.33 MB / 9.741 GB, free: 172.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.127e-05/50.42, allocations: 9.031 kB / 9.741 GB, free: 172.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.033e-05/50.42, allocations: 4 kB / 9.741 GB, free: 172.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.149e-05/50.42, allocations: 32 kB / 9.742 GB, free: 172.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00945/50.43, allocations: 2.601 MB / 9.744 GB, free: 170.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001636/50.43, allocations: 36 kB / 9.744 GB, free: 170.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004555/50.44, allocations: 0.5314 MB / 9.745 GB, free: 169.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002036/50.44, allocations: 0.7643 MB / 9.745 GB, free: 168.8 MB / 0.5606 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.002951/50.44, allocations: 1.07 MB / 9.746 GB, free: 167.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004281/50.45, allocations: 0.8142 MB / 9.747 GB, free: 166.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04651/50.49, allocations: 33.94 MB / 9.78 GB, free: 133.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.645e-05/50.49, allocations: 99.94 kB / 9.78 GB, free: 133.1 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.252e-05/50.49, allocations: 0 / 9.78 GB, free: 133.1 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001489/50.49, allocations: 51.81 kB / 9.78 GB, free: 133 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007418/50.5, allocations: 5.699 MB / 9.786 GB, free: 127.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.212e-05/50.5, allocations: 0 / 9.786 GB, free: 127.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009634/50.51, allocations: 2.592 MB / 9.789 GB, free: 124.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001124/50.51, allocations: 32 kB / 9.789 GB, free: 124.9 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001683/50.51, allocations: 0.7018 MB / 9.789 GB, free: 124.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.237e-05/50.51, allocations: 35.94 kB / 9.789 GB, free: 124.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/50.51, allocations: 7.984 kB / 9.789 GB, free: 124.1 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0434/50.56, allocations: 37.51 MB / 9.826 GB, free: 86.6 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003942/50.56, allocations: 3.133 MB / 9.829 GB, free: 83.44 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001812/50.56, allocations: 156 kB / 9.829 GB, free: 83.29 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004002/50.57, allocations: 160 kB / 9.829 GB, free: 83.13 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001752/50.57, allocations: 0.9241 MB / 9.83 GB, free: 82.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001803/50.57, allocations: 0.7565 MB / 9.831 GB, free: 81.45 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001545/50.57, allocations: 168.5 kB / 9.831 GB, free: 81.29 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.11e-07/50.57, allocations: 0 / 9.831 GB, free: 81.29 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006644/50.58, allocations: 1.421 MB / 9.833 GB, free: 79.86 MB / 0.5606 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.003705/50.58, allocations: 1.039 MB / 9.834 GB, free: 78.88 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02038/50.6, allocations: 12.52 MB / 9.846 GB, free: 66.37 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/50.6, allocations: 0 / 9.846 GB, free: 66.37 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.2096/50.81, allocations: 6.915 MB / 9.853 GB, free: 236.9 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002575/50.81, allocations: 331.2 kB / 9.853 GB, free: 236.8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01762/50.83, allocations: 10.34 MB / 9.863 GB, free: 233 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001738/50.83, allocations: 2.173 MB / 9.865 GB, free: 232.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.02051/50.85, allocations: 7.343 MB / 9.872 GB, free: 228.2 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004572/50.86, allocations: 1.533 MB / 9.874 GB, free: 227 MB / 0.5606 GB Notification: Performance of SimCode: time 3.006e-06/50.86, allocations: 0 / 9.874 GB, free: 227 MB / 0.5606 GB Notification: Performance of Templates: time 0.1047/50.96, allocations: 88.58 MB / 9.96 GB, free: 138.3 MB / 0.5606 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)