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: "" <> buildModelFMU(AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_RailIrregularities_Comparisons_MinimumAndZeroPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_RailIrregularities_Comparisons_MinimumAndZeroPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007664/0.007664, allocations: 99.67 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.001547/0.001547, allocations: 192 kB / 16.67 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.44/1.44, allocations: 222.9 MB / 240.4 MB, free: 4.152 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1647/0.1647, allocations: 3.88 MB / 294.4 MB, free: 3.188 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 67.89 kB / 406.5 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2413/0.2426, allocations: 50.17 MB / 456.6 MB, free: 20.42 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase): time 0.002777/0.2454, allocations: 2.074 MB / 458.7 MB, free: 18.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005293/0.2508, allocations: 3.906 MB / 462.6 MB, free: 16.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001756/0.251, allocations: 6.938 kB / 462.6 MB, free: 16.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001665/0.2512, allocations: 42.92 kB / 462.7 MB, free: 16.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.712e-05/0.2513, allocations: 19.19 kB / 462.7 MB, free: 16.36 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.002132/0.2534, allocations: 0.7935 MB / 463.5 MB, free: 16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01032/0.2637, allocations: 13.64 MB / 477.1 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002312/0.264, allocations: 76.42 kB / 477.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006883/0.2709, allocations: 3.355 MB / 480.6 MB, free: 9.027 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00725/0.2782, allocations: 4.396 MB / 484.9 MB, free: 6.504 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002933/0.2811, allocations: 0.594 MB / 485.5 MB, free: 6.504 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 52.72/53, allocations: 8.772 GB / 9.246 GB, free: 215.3 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.005381/53.01, allocations: 2.294 MB / 9.249 GB, free: 215.2 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.006703/53.01, allocations: 2.544 MB / 9.251 GB, free: 214.8 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01502/53.03, allocations: 8.646 MB / 9.26 GB, free: 212.7 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/53.03, allocations: 1 kB / 9.26 GB, free: 212.7 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.873e-06/53.03, allocations: 0 / 9.26 GB, free: 212.7 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.000238/53.03, allocations: 0.7031 kB / 9.26 GB, free: 212.7 MB / 0.545 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.031/53.06, allocations: 3.917 MB / 9.263 GB, free: 210.4 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 6.058e-05/53.06, allocations: 12.19 kB / 9.263 GB, free: 210.4 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004093/53.06, allocations: 0.5556 MB / 9.264 GB, free: 209.9 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007464/53.07, allocations: 0.8042 MB / 9.265 GB, free: 209.6 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01218/53.08, allocations: 3.467 MB / 9.268 GB, free: 206.8 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004989/53.08, allocations: 298.5 kB / 9.268 GB, free: 206.7 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004222/53.09, allocations: 386.1 kB / 9.269 GB, free: 206.5 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02704/53.12, allocations: 8.682 MB / 9.277 GB, free: 201.4 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001492/53.12, allocations: 1.156 kB / 9.277 GB, free: 201.4 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002477/53.12, allocations: 165 kB / 9.277 GB, free: 201.3 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001144/53.12, allocations: 97.25 kB / 9.278 GB, free: 201.3 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5544/53.67, allocations: 198.1 MB / 9.471 GB, free: 193.9 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03509/53.71, allocations: 15.95 MB / 9.487 GB, free: 178.1 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 1.16/54.87, allocations: 153.1 MB / 9.636 GB, free: 207.5 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01105/54.88, allocations: 5.632 MB / 9.642 GB, free: 205.2 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001987/54.88, allocations: 0.9996 MB / 9.643 GB, free: 204.6 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.684e-05/54.88, allocations: 136.9 kB / 9.643 GB, free: 204.4 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1017): time 1.161e-05/54.88, allocations: 2.188 kB / 9.643 GB, free: 204.4 MB / 0.545 GB Notification: Performance of matching and sorting (n=1017): time 0.0589/54.94, allocations: 34.39 MB / 9.676 GB, free: 174.3 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/54.94, allocations: 161.1 kB / 9.676 GB, free: 174.1 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002918/54.94, allocations: 223.5 kB / 9.677 GB, free: 173.9 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.003669/54.94, allocations: 185.7 kB / 9.677 GB, free: 173.7 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.85e-05/54.94, allocations: 144 kB / 9.677 GB, free: 173.5 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.006104/54.95, allocations: 3.491 MB / 9.68 GB, free: 170.1 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.009987/54.96, allocations: 2.263 MB / 9.683 GB, free: 167.9 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.55e-05/54.96, allocations: 317.9 kB / 9.683 GB, free: 167.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01061/54.97, allocations: 4.872 MB / 9.688 GB, free: 162.7 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01252/54.98, allocations: 5.444 MB / 9.693 GB, free: 157.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03815/55.02, allocations: 11.39 MB / 9.704 GB, free: 145.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.896e-05/55.02, allocations: 0 / 9.704 GB, free: 145.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.07699/55.1, allocations: 38.33 MB / 9.742 GB, free: 107.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.264e-05/55.1, allocations: 9.25 kB / 9.742 GB, free: 107.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.289e-05/55.1, allocations: 0 / 9.742 GB, free: 107.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.124e-05/55.1, allocations: 32 kB / 9.742 GB, free: 107.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01214/55.11, allocations: 2.597 MB / 9.744 GB, free: 104.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001347/55.11, allocations: 35.94 kB / 9.744 GB, free: 104.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005655/55.12, allocations: 0.5309 MB / 9.745 GB, free: 104.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003107/55.12, allocations: 0.7643 MB / 9.745 GB, free: 103.5 MB / 0.545 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.00525/55.13, allocations: 1.07 MB / 9.746 GB, free: 102.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006297/55.13, allocations: 0.8046 MB / 9.747 GB, free: 101.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06092/55.19, allocations: 33.94 MB / 9.78 GB, free: 67.85 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.141e-05/55.19, allocations: 99.98 kB / 9.78 GB, free: 67.75 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.016e-05/55.19, allocations: 0 / 9.78 GB, free: 67.75 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001486/55.19, allocations: 47.81 kB / 9.781 GB, free: 67.71 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007904/55.2, allocations: 5.715 MB / 9.786 GB, free: 61.93 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.026e-05/55.2, allocations: 0 / 9.786 GB, free: 61.93 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01104/55.21, allocations: 2.585 MB / 9.789 GB, free: 59.34 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001381/55.21, allocations: 32 kB / 9.789 GB, free: 59.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004258/55.22, allocations: 0.694 MB / 9.789 GB, free: 58.61 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001268/55.22, allocations: 43.98 kB / 9.789 GB, free: 58.57 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/55.22, allocations: 0 / 9.789 GB, free: 58.57 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.313/55.53, allocations: 37.52 MB / 9.826 GB, free: 209.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006351/55.54, allocations: 3.117 MB / 9.829 GB, free: 207.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002452/55.54, allocations: 164 kB / 9.829 GB, free: 207.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004454/55.54, allocations: 160 kB / 9.829 GB, free: 207.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002509/55.55, allocations: 0.9247 MB / 9.83 GB, free: 206.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00208/55.55, allocations: 0.7598 MB / 9.831 GB, free: 206.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001551/55.55, allocations: 163.2 kB / 9.831 GB, free: 206.1 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/55.55, allocations: 2.078 kB / 9.831 GB, free: 206.1 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00699/55.56, allocations: 1.425 MB / 9.833 GB, free: 204.7 MB / 0.545 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.06745/55.62, allocations: 39.02 MB / 9.871 GB, free: 167 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02318/55.65, allocations: 12.53 MB / 9.883 GB, free: 154.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/55.65, allocations: 4 kB / 9.883 GB, free: 154.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.01685/55.66, allocations: 6.926 MB / 9.89 GB, free: 147.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004825/55.67, allocations: 329.2 kB / 9.89 GB, free: 147.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1059/55.77, allocations: 82.71 MB / 9.971 GB, free: 64.19 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001342/55.78, allocations: 2.175 MB / 9.973 GB, free: 61.98 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.02273/55.8, allocations: 7.345 MB / 9.98 GB, free: 54.93 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008037/55.81, allocations: 2.364 MB / 9.982 GB, free: 52.56 MB / 0.545 GB Notification: Performance of SimCode: time 1.442e-06/55.81, allocations: 0 / 9.982 GB, free: 52.56 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.393/56.2, allocations: 112 MB / 10.09 GB, free: 133.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.51/78.71, allocations: 15.84 kB / 10.09 GB, free: 133.2 MB / 0.545 GB (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 & python3 -m fmpy simulate --output-file AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 0.001 --interface-type ModelExchange --solver CVode --output-interval 0.01 AdvancedNoise_AdvancedNoise_Examples_RailIrregularities_Comparisons_MinimumAndZeroPhase.fmu > AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase.pipe 2>&1)