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.005623/0.005623, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001186/0.001186, allocations: 196.2 kB / 16.67 MB, free: 5.934 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1459/0.1459, allocations: 3.883 MB / 294.4 MB, free: 3.246 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 63.91 kB / 406.5 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.2702, allocations: 50.17 MB / 456.6 MB, free: 20.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase): time 0.003369/0.2736, allocations: 2.061 MB / 458.7 MB, free: 19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006829/0.2804, allocations: 3.912 MB / 462.6 MB, free: 16.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002887/0.2808, allocations: 6.875 kB / 462.6 MB, free: 16.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002615/0.2811, allocations: 35.98 kB / 462.7 MB, free: 16.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001705/0.2813, allocations: 34.41 kB / 462.7 MB, free: 16.38 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.002767/0.284, allocations: 0.7875 MB / 463.5 MB, free: 16.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0123/0.2964, allocations: 13.65 MB / 477.1 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003401/0.2967, allocations: 71.78 kB / 477.2 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006692/0.3035, allocations: 3.362 MB / 480.6 MB, free: 9.055 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007056/0.3105, allocations: 4.397 MB / 485 MB, free: 6.531 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004049/0.3146, allocations: 0.5931 MB / 485.5 MB, free: 6.531 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 52.66/52.97, allocations: 8.772 GB / 9.246 GB, free: 214.4 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.004289/52.97, allocations: 2.292 MB / 9.249 GB, free: 214.3 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.007412/52.98, allocations: 2.549 MB / 9.251 GB, free: 213.8 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01443/53, allocations: 8.646 MB / 9.26 GB, free: 211.7 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.155e-06/53, allocations: 0 / 9.26 GB, free: 211.7 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.803e-06/53, allocations: 0 / 9.26 GB, free: 211.7 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0001936/53, allocations: 0 / 9.26 GB, free: 211.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.0208/53.02, allocations: 3.918 MB / 9.263 GB, free: 209.3 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/53.02, allocations: 10.31 kB / 9.263 GB, free: 209.3 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002395/53.02, allocations: 0.5554 MB / 9.264 GB, free: 208.9 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006871/53.03, allocations: 0.8069 MB / 9.265 GB, free: 208.6 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01142/53.04, allocations: 3.457 MB / 9.268 GB, free: 205.8 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003658/53.04, allocations: 302.3 kB / 9.268 GB, free: 205.7 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003001/53.04, allocations: 390.3 kB / 9.269 GB, free: 205.5 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01921/53.06, allocations: 8.686 MB / 9.277 GB, free: 200.4 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001102/53.06, allocations: 0 / 9.277 GB, free: 200.4 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001356/53.06, allocations: 160.5 kB / 9.277 GB, free: 200.3 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.101e-05/53.06, allocations: 97.16 kB / 9.278 GB, free: 200.3 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5126/53.57, allocations: 198.1 MB / 9.471 GB, free: 193 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03323/53.61, allocations: 15.94 MB / 9.487 GB, free: 177.2 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.9971/54.61, allocations: 153.2 MB / 9.636 GB, free: 207.1 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009607/54.61, allocations: 5.633 MB / 9.642 GB, free: 204.7 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002152/54.62, allocations: 0.9964 MB / 9.643 GB, free: 204.1 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.649e-05/54.62, allocations: 139.8 kB / 9.643 GB, free: 204 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1017): time 1.476e-05/54.62, allocations: 1.188 kB / 9.643 GB, free: 204 MB / 0.545 GB Notification: Performance of matching and sorting (n=1017): time 0.05391/54.67, allocations: 34.38 MB / 9.676 GB, free: 173.4 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.056e-05/54.67, allocations: 159.4 kB / 9.676 GB, free: 173.3 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002622/54.67, allocations: 221 kB / 9.677 GB, free: 173 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.003115/54.67, allocations: 181.7 kB / 9.677 GB, free: 172.8 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/54.67, allocations: 147.4 kB / 9.677 GB, free: 172.7 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.005337/54.68, allocations: 3.497 MB / 9.68 GB, free: 169.3 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005881/54.69, allocations: 2.266 MB / 9.683 GB, free: 167 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.172e-05/54.69, allocations: 321.9 kB / 9.683 GB, free: 166.7 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007816/54.69, allocations: 4.872 MB / 9.688 GB, free: 161.8 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009272/54.7, allocations: 5.444 MB / 9.693 GB, free: 156.4 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01972/54.72, allocations: 11.38 MB / 9.704 GB, free: 145 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.822e-05/54.72, allocations: 4 kB / 9.704 GB, free: 145 MB / 0.545 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.0462/54.77, allocations: 38.32 MB / 9.742 GB, free: 106.6 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.196e-05/54.77, allocations: 4 kB / 9.742 GB, free: 106.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.182e-05/54.77, allocations: 4 kB / 9.742 GB, free: 106.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.219e-05/54.77, allocations: 32.75 kB / 9.742 GB, free: 106.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01136/54.78, allocations: 2.601 MB / 9.744 GB, free: 104 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001441/54.78, allocations: 35.98 kB / 9.744 GB, free: 103.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006078/54.79, allocations: 0.527 MB / 9.745 GB, free: 103.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003319/54.79, allocations: 0.7605 MB / 9.745 GB, free: 102.7 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.004364/54.79, allocations: 1.074 MB / 9.746 GB, free: 101.6 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005213/54.8, allocations: 0.8072 MB / 9.747 GB, free: 100.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0476/54.85, allocations: 33.94 MB / 9.78 GB, free: 67.02 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.007e-05/54.85, allocations: 96 kB / 9.78 GB, free: 66.93 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.993e-05/54.85, allocations: 0.75 kB / 9.78 GB, free: 66.93 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001369/54.85, allocations: 47.81 kB / 9.781 GB, free: 66.88 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008015/54.86, allocations: 5.715 MB / 9.786 GB, free: 61.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-05/54.86, allocations: 2.438 kB / 9.786 GB, free: 61.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01167/54.87, allocations: 2.589 MB / 9.789 GB, free: 58.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001281/54.87, allocations: 32 kB / 9.789 GB, free: 58.47 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004203/54.87, allocations: 0.6979 MB / 9.789 GB, free: 57.77 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001634/54.87, allocations: 34.73 kB / 9.789 GB, free: 57.74 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/54.87, allocations: 3.938 kB / 9.789 GB, free: 57.74 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2532/55.13, allocations: 37.53 MB / 9.826 GB, free: 208.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005019/55.13, allocations: 3.119 MB / 9.829 GB, free: 206.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001915/55.13, allocations: 156 kB / 9.829 GB, free: 206.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003415/55.14, allocations: 162.6 kB / 9.829 GB, free: 206.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001625/55.14, allocations: 0.9225 MB / 9.83 GB, free: 206.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001518/55.14, allocations: 0.7637 MB / 9.831 GB, free: 205.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001403/55.14, allocations: 159.5 kB / 9.831 GB, free: 205.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.1e-07/55.14, allocations: 4 kB / 9.831 GB, free: 205.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006747/55.15, allocations: 1.417 MB / 9.833 GB, free: 204.1 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.05139/55.2, allocations: 39.03 MB / 9.871 GB, free: 166.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02397/55.22, allocations: 12.52 MB / 9.883 GB, free: 153.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/55.22, allocations: 0 / 9.883 GB, free: 153.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.01273/55.23, allocations: 6.926 MB / 9.89 GB, free: 146.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00312/55.24, allocations: 333.8 kB / 9.89 GB, free: 146.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1014/55.34, allocations: 82.71 MB / 9.971 GB, free: 63.37 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001376/55.34, allocations: 2.164 MB / 9.973 GB, free: 61.17 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.02247/55.36, allocations: 7.351 MB / 9.98 GB, free: 54.12 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006672/55.37, allocations: 2.364 MB / 9.982 GB, free: 51.75 MB / 0.545 GB Notification: Performance of SimCode: time 6.11e-07/55.37, allocations: 0 / 9.982 GB, free: 51.75 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3325/55.7, allocations: 112 MB / 10.09 GB, free: 132.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.38/77.09, allocations: 7.844 kB / 10.09 GB, free: 132.5 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)