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.007896/0.007896, 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.002126/0.002126, allocations: 194.2 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.476/1.476, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1335/0.1335, allocations: 3.886 MB / 294.4 MB, free: 3.172 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00204/0.00204, allocations: 63.89 kB / 406.5 MB, free: 0.668 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2446/0.2466, allocations: 50.18 MB / 456.6 MB, free: 20.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase): time 0.00256/0.2492, allocations: 2.066 MB / 458.7 MB, free: 18.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005216/0.2545, allocations: 3.913 MB / 462.6 MB, free: 16.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001935/0.2547, allocations: 6.531 kB / 462.6 MB, free: 16.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001786/0.2549, allocations: 41.39 kB / 462.7 MB, free: 16.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.335e-05/0.255, allocations: 22.23 kB / 462.7 MB, free: 16.35 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.002207/0.2572, allocations: 0.7919 MB / 463.5 MB, free: 16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01275/0.27, allocations: 13.65 MB / 477.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003201/0.2703, allocations: 67.72 kB / 477.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007351/0.2777, allocations: 3.358 MB / 480.6 MB, free: 9.051 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007961/0.2857, allocations: 4.396 MB / 484.9 MB, free: 6.527 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003147/0.2889, allocations: 0.5932 MB / 485.5 MB, free: 6.527 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 52/52.29, allocations: 8.772 GB / 9.246 GB, free: 209.5 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.004742/52.3, allocations: 2.296 MB / 9.249 GB, free: 209.4 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.007956/52.3, allocations: 2.545 MB / 9.251 GB, free: 208.9 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01618/52.32, allocations: 8.642 MB / 9.26 GB, free: 206.8 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.515e-06/52.32, allocations: 4 kB / 9.26 GB, free: 206.8 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.344e-06/52.32, allocations: 1.188 kB / 9.26 GB, free: 206.8 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0002353/52.32, allocations: 5.656 kB / 9.26 GB, free: 206.8 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.02664/52.35, allocations: 3.907 MB / 9.263 GB, free: 204.4 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.905e-05/52.35, allocations: 13.84 kB / 9.263 GB, free: 204.3 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004786/52.35, allocations: 0.5583 MB / 9.264 GB, free: 203.9 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008518/52.36, allocations: 0.8101 MB / 9.265 GB, free: 203.6 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01206/52.37, allocations: 3.458 MB / 9.268 GB, free: 200.8 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005644/52.37, allocations: 298.7 kB / 9.268 GB, free: 200.7 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003649/52.38, allocations: 386.1 kB / 9.269 GB, free: 200.6 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02629/52.4, allocations: 8.682 MB / 9.277 GB, free: 195.4 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002132/52.4, allocations: 0 / 9.277 GB, free: 195.4 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003495/52.41, allocations: 169.1 kB / 9.277 GB, free: 195.3 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001122/52.41, allocations: 96.22 kB / 9.278 GB, free: 195.3 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5522/52.96, allocations: 198.1 MB / 9.471 GB, free: 188.7 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03227/52.99, allocations: 15.94 MB / 9.487 GB, free: 172.9 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 1.235/54.23, allocations: 153.1 MB / 9.636 GB, free: 204.3 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0104/54.24, allocations: 5.637 MB / 9.642 GB, free: 201.9 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00256/54.24, allocations: 1.001 MB / 9.643 GB, free: 201.3 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001383/54.24, allocations: 135 kB / 9.643 GB, free: 201.2 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1017): time 1.989e-05/54.24, allocations: 0 / 9.643 GB, free: 201.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=1017): time 0.0569/54.3, allocations: 34.38 MB / 9.676 GB, free: 168.9 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.556e-05/54.3, allocations: 157.1 kB / 9.676 GB, free: 168.7 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002997/54.3, allocations: 225 kB / 9.677 GB, free: 168.5 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.002912/54.3, allocations: 189.2 kB / 9.677 GB, free: 168.3 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.036e-05/54.3, allocations: 144 kB / 9.677 GB, free: 168.2 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.004101/54.3, allocations: 3.488 MB / 9.68 GB, free: 164.8 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003645/54.31, allocations: 2.267 MB / 9.683 GB, free: 162.5 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.119e-05/54.31, allocations: 325.9 kB / 9.683 GB, free: 162.2 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007451/54.32, allocations: 4.869 MB / 9.688 GB, free: 157.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009154/54.32, allocations: 5.444 MB / 9.693 GB, free: 151.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02196/54.35, allocations: 11.38 MB / 9.704 GB, free: 140.4 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.616e-05/54.35, allocations: 0 / 9.704 GB, free: 140.4 MB / 0.545 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.04827/54.4, allocations: 38.33 MB / 9.742 GB, free: 102.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.438e-05/54.4, allocations: 4 kB / 9.742 GB, free: 102.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.228e-05/54.4, allocations: 0 / 9.742 GB, free: 102.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.501e-05/54.4, allocations: 36 kB / 9.742 GB, free: 102 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0112/54.41, allocations: 2.597 MB / 9.744 GB, free: 99.45 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001267/54.41, allocations: 39.94 kB / 9.744 GB, free: 99.41 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00596/54.41, allocations: 0.527 MB / 9.745 GB, free: 98.88 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00373/54.42, allocations: 0.7649 MB / 9.745 GB, free: 98.11 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.006338/54.42, allocations: 1.066 MB / 9.746 GB, free: 97.03 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007041/54.43, allocations: 0.8064 MB / 9.747 GB, free: 96.22 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06395/54.49, allocations: 33.94 MB / 9.78 GB, free: 62.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.408e-05/54.49, allocations: 96 kB / 9.78 GB, free: 62.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.554e-05/54.49, allocations: 10.06 kB / 9.78 GB, free: 62.39 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002236/54.49, allocations: 47.81 kB / 9.781 GB, free: 62.35 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01073/54.51, allocations: 5.715 MB / 9.786 GB, free: 56.57 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.179e-05/54.51, allocations: 4 kB / 9.786 GB, free: 56.56 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01203/54.52, allocations: 2.585 MB / 9.789 GB, free: 53.97 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001445/54.52, allocations: 32 kB / 9.789 GB, free: 53.94 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004361/54.52, allocations: 0.694 MB / 9.789 GB, free: 53.25 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001254/54.52, allocations: 34.62 kB / 9.789 GB, free: 53.21 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/54.52, allocations: 0 / 9.789 GB, free: 53.21 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2535/54.78, allocations: 37.52 MB / 9.826 GB, free: 204.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005455/54.78, allocations: 3.12 MB / 9.829 GB, free: 202.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002604/54.78, allocations: 164.1 kB / 9.829 GB, free: 202.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00498/54.79, allocations: 160 kB / 9.829 GB, free: 202.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002517/54.79, allocations: 0.9288 MB / 9.83 GB, free: 202 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002361/54.79, allocations: 0.7574 MB / 9.831 GB, free: 201.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001654/54.79, allocations: 163.5 kB / 9.831 GB, free: 201.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.3e-07/54.79, allocations: 0 / 9.831 GB, free: 201.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008039/54.8, allocations: 1.421 MB / 9.833 GB, free: 200 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.06247/54.86, allocations: 39.03 MB / 9.871 GB, free: 162 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02363/54.89, allocations: 12.52 MB / 9.883 GB, free: 149.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.687e-06/54.89, allocations: 0 / 9.883 GB, free: 149.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.01524/54.9, allocations: 6.922 MB / 9.89 GB, free: 142.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004796/54.91, allocations: 335.2 kB / 9.89 GB, free: 142.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.108/55.02, allocations: 82.72 MB / 9.971 GB, free: 59.18 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001329/55.02, allocations: 2.164 MB / 9.973 GB, free: 56.98 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.02195/55.04, allocations: 7.343 MB / 9.98 GB, free: 49.95 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007363/55.05, allocations: 2.364 MB / 9.982 GB, free: 47.58 MB / 0.545 GB Notification: Performance of SimCode: time 1.272e-06/55.05, allocations: 0 / 9.982 GB, free: 47.58 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3458/55.39, allocations: 112 MB / 10.09 GB, free: 128.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.13/77.52, allocations: 15.91 kB / 10.09 GB, free: 128.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)