Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain.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.SpaceAndTimeDomain,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_RailIrregularities_Comparisons_SpaceAndTimeDomain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_RailIrregularities_Comparisons_SpaceAndTimeDomain",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.00758/0.00758, allocations: 103.4 kB / 15.74 MB, free: 6.043 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.001935/0.001935, allocations: 200.2 kB / 16.68 MB, free: 5.965 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.429/1.429, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.127/0.127, allocations: 3.88 MB / 294.4 MB, free: 3.207 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 63.91 kB / 406.5 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.233/0.2349, allocations: 50.18 MB / 456.6 MB, free: 20.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain): time 0.002574/0.2375, allocations: 2.06 MB / 458.7 MB, free: 19.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004853/0.2423, allocations: 3.928 MB / 462.6 MB, free: 16.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001767/0.2425, allocations: 6.844 kB / 462.6 MB, free: 16.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000349/0.2429, allocations: 49.34 kB / 462.7 MB, free: 16.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001552/0.243, allocations: 50.05 kB / 462.7 MB, free: 16.42 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.SpaceAndTimeDomain.spaceDomainNoiseMinimum.generator.initialState' contains a call to impure function 'AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain.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.SpaceAndTimeDomain.spaceDomainNoiseMinimum.initialState' contains a call to impure function 'AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain.spaceDomainNoiseMinimum.convertRealToIntegers'. Notification: Performance of NFTyping.typeClassSections: time 0.001586/0.2446, allocations: 0.6601 MB / 463.4 MB, free: 16.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004228/0.2488, allocations: 5.677 MB / 469.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001379/0.249, allocations: 38.27 kB / 469.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002374/0.2513, allocations: 1.48 MB / 470.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003242/0.2546, allocations: 1.875 MB / 472.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007241/0.2553, allocations: 256.9 kB / 472.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.071/9.326, allocations: 1.218 GB / 1.679 GB, free: 32.72 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.001812/9.328, allocations: 0.979 MB / 1.68 GB, free: 32.19 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001889/9.33, allocations: 1.091 MB / 1.681 GB, free: 31.47 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.004171/9.334, allocations: 3.807 MB / 1.685 GB, free: 28.43 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/9.334, allocations: 0 / 1.685 GB, free: 28.43 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.443e-06/9.334, allocations: 0 / 1.685 GB, free: 28.43 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.496e-05/9.334, allocations: 0 / 1.685 GB, free: 28.43 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 429 * Number of variables: 429 Notification: Performance of Generate backend data structure: time 0.005986/9.34, allocations: 2.013 MB / 1.687 GB, free: 26.36 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/9.34, allocations: 12.03 kB / 1.687 GB, free: 26.35 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003036/9.34, allocations: 251.5 kB / 1.687 GB, free: 26.1 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001715/9.342, allocations: 359.9 kB / 1.687 GB, free: 25.75 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003634/9.346, allocations: 1.605 MB / 1.689 GB, free: 24.15 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.597e-05/9.346, allocations: 128.1 kB / 1.689 GB, free: 24.02 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003718/9.346, allocations: 170.3 kB / 1.689 GB, free: 23.86 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00464/9.351, allocations: 3.61 MB / 1.693 GB, free: 20.22 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.873e-05/9.351, allocations: 0 / 1.693 GB, free: 20.22 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000251/9.351, allocations: 64.7 kB / 1.693 GB, free: 20.16 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.242e-05/9.351, allocations: 40 kB / 1.693 GB, free: 20.12 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2832/9.634, allocations: 62.48 MB / 1.754 GB, free: 175.1 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008692/9.643, allocations: 6.927 MB / 1.761 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2537/9.897, allocations: 47.71 MB / 1.807 GB, free: 120.2 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004911/9.902, allocations: 2.027 MB / 1.809 GB, free: 118.2 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00116/9.903, allocations: 448.9 kB / 1.81 GB, free: 117.8 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004797/9.908, allocations: 3.06 MB / 1.813 GB, free: 114.7 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=423): time 7.294e-06/9.908, allocations: 2.625 kB / 1.813 GB, free: 114.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=423): time 0.01608/9.924, allocations: 12.57 MB / 1.825 GB, free: 102.1 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.968e-05/9.924, allocations: 125.6 kB / 1.825 GB, free: 102 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006289/9.925, allocations: 318.9 kB / 1.825 GB, free: 101.6 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003773/9.925, allocations: 93.7 kB / 1.826 GB, free: 101.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/9.925, allocations: 155.1 kB / 1.826 GB, free: 101.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001186/9.926, allocations: 1.46 MB / 1.827 GB, free: 100.1 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00172/9.928, allocations: 0.9463 MB / 1.828 GB, free: 99.14 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001107/9.928, allocations: 329.9 kB / 1.828 GB, free: 98.81 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003119/9.931, allocations: 2.037 MB / 1.83 GB, free: 96.77 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003521/9.935, allocations: 2.298 MB / 1.833 GB, free: 94.46 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007618/9.942, allocations: 4.751 MB / 1.837 GB, free: 89.68 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-05/9.942, allocations: 7.734 kB / 1.837 GB, free: 89.67 MB / 0.5294 GB Notification: Performance of matching and sorting (n=439) (initialization): time 0.01509/9.957, allocations: 13.41 MB / 1.85 GB, free: 76.25 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.198e-05/9.957, allocations: 8 kB / 1.85 GB, free: 76.24 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/9.957, allocations: 0 / 1.85 GB, free: 76.24 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.951e-05/9.958, allocations: 16 kB / 1.85 GB, free: 76.22 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004285/9.962, allocations: 1.088 MB / 1.851 GB, free: 75.13 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.28e-05/9.962, allocations: 16 kB / 1.851 GB, free: 75.12 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002065/9.964, allocations: 247.8 kB / 1.852 GB, free: 74.88 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007884/9.965, allocations: 323.5 kB / 1.852 GB, free: 74.56 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,globalSeed.seed,bandLimitedWhiteNoise.actualGlobalSeed,bandLimitedWhiteNoise.localSeed,spaceDomainNoiseMinimum.actualGlobalSeed,globalSeed.id_impure,spaceDomainNoiseMinimum.localSeed,bandLimitedWhiteNoise.r_raw,$PRE.bandLimitedWhiteNoise.r_raw,bandLimitedWhiteNoise.r,$PRE.bandLimitedWhiteNoise.r,bandLimitedWhiteNoise.state[4],$PRE.bandLimitedWhiteNoise.state[4],bandLimitedWhiteNoise.state[3],$PRE.bandLimitedWhiteNoise.state[3],bandLimitedWhiteNoise.state[2],$PRE.bandLimitedWhiteNoise.state[2],bandLimitedWhiteNoise.state[1],$PRE.bandLimitedWhiteNoise.state[1],position.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (436): * Single equations (assignments): 435 * Array equations: 1 * 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.001311/9.966, allocations: 0.5346 MB / 1.852 GB, free: 74.02 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001776/9.968, allocations: 351.1 kB / 1.853 GB, free: 73.67 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01691/9.985, allocations: 12.32 MB / 1.865 GB, free: 61.53 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-05/9.985, allocations: 40 kB / 1.865 GB, free: 61.49 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.013e-05/9.985, allocations: 0 / 1.865 GB, free: 61.49 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.703e-05/9.985, allocations: 23.92 kB / 1.865 GB, free: 61.47 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004075/9.989, allocations: 2.48 MB / 1.867 GB, free: 59.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.162e-05/9.989, allocations: 0 / 1.867 GB, free: 59.02 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005892/9.995, allocations: 1.054 MB / 1.868 GB, free: 57.97 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.501e-05/9.995, allocations: 12 kB / 1.868 GB, free: 57.96 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004884/9.995, allocations: 295.5 kB / 1.869 GB, free: 57.67 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.382e-05/9.995, allocations: 19.94 kB / 1.869 GB, free: 57.65 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/9.995, allocations: 6.891 kB / 1.869 GB, free: 57.64 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01641/10.01, allocations: 13.83 MB / 1.882 GB, free: 43.76 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001398/10.01, allocations: 1.337 MB / 1.883 GB, free: 42.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003915/10.01, allocations: 68 kB / 1.884 GB, free: 42.33 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001379/10.01, allocations: 83.97 kB / 1.884 GB, free: 42.25 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006504/10.02, allocations: 390.5 kB / 1.884 GB, free: 41.87 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005015/10.02, allocations: 319.5 kB / 1.884 GB, free: 41.55 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003393/10.02, allocations: 229.9 kB / 1.885 GB, free: 41.33 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/10.02, allocations: 0 / 1.885 GB, free: 41.33 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002434/10.02, allocations: 0.6674 MB / 1.885 GB, free: 40.66 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (position.y,timeDomainFilter.x_scaled[1],timeDomainFilter.x_scaled[2]) * Number of discrete variables: 8 (spaceDomainNoiseMinimum.localSeed,$whenCondition1,bandLimitedWhiteNoise.state[1],bandLimitedWhiteNoise.state[2],bandLimitedWhiteNoise.state[3],bandLimitedWhiteNoise.state[4],bandLimitedWhiteNoise.r,bandLimitedWhiteNoise.r_raw) * Number of discrete states: 4 (bandLimitedWhiteNoise.state[1],bandLimitedWhiteNoise.state[2],bandLimitedWhiteNoise.state[3],bandLimitedWhiteNoise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (419): * Single equations (assignments): 416 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.2024/10.22, allocations: 14.92 MB / 1.9 GB, free: 201.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009183/10.23, allocations: 4.847 MB / 1.904 GB, free: 199.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/10.23, allocations: 4.188 kB / 1.904 GB, free: 199.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004818/10.24, allocations: 2.553 MB / 1.907 GB, free: 199.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009595/10.24, allocations: 154.1 kB / 1.907 GB, free: 199.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03956/10.28, allocations: 32.18 MB / 1.939 GB, free: 174 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005741/10.28, allocations: 1.327 MB / 1.94 GB, free: 172.6 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006843/10.28, allocations: 2.994 MB / 1.943 GB, free: 169.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001768/10.29, allocations: 1.022 MB / 1.944 GB, free: 168.9 MB / 0.5294 GB Notification: Performance of SimCode: time 1.763e-06/10.29, allocations: 4 kB / 1.944 GB, free: 168.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07213/10.36, allocations: 51.11 MB / 1.994 GB, free: 117.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.75/23.11, allocations: 10.5 kB / 1.994 GB, free: 117.8 MB / 0.5294 GB (rm -f AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AdvancedNoise_AdvancedNoise_Examples_RailIrregularities_Comparisons_SpaceAndTimeDomain_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=0.001 AdvancedNoise_AdvancedNoise_Examples_RailIrregularities_Comparisons_SpaceAndTimeDomain.fmu > AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain.pipe 2>&1)