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.001343/0.001343, allocations: 108 kB / 15.63 MB, free: 112 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001614/0.001615, allocations: 194.4 kB / 16.55 MB, free: 6.656 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.34/1.34, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1233/0.1233, allocations: 3.883 MB / 294.3 MB, free: 3.297 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 63.89 kB / 355.6 MB, free: 3.422 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08547/0.08665, allocations: 50.19 MB / 405.8 MB, free: 1.191 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain): time 0.002938/0.08962, allocations: 2.05 MB / 407.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005536/0.09518, allocations: 3.91 MB / 411.8 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00014/0.09534, allocations: 11.88 kB / 411.8 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002699/0.09564, allocations: 51.58 kB / 411.8 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001461/0.09579, allocations: 51.64 kB / 411.9 MB, free: 11.07 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.001485/0.09729, allocations: 0.6499 MB / 412.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004054/0.1014, allocations: 5.678 MB / 418.2 MB, free: 4.742 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.1015, allocations: 44.39 kB / 418.3 MB, free: 4.699 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001824/0.1033, allocations: 1.485 MB / 419.8 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002785/0.1061, allocations: 1.878 MB / 421.6 MB, free: 1.332 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008896/0.107, allocations: 256 kB / 421.9 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.933/9.04, allocations: 1.215 GB / 1.627 GB, free: 97.23 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00119/9.041, allocations: 0.9791 MB / 1.628 GB, free: 97.22 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001642/9.042, allocations: 1.093 MB / 1.629 GB, free: 96.84 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003743/9.046, allocations: 3.792 MB / 1.633 GB, free: 96.03 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/9.046, allocations: 1.938 kB / 1.633 GB, free: 96.03 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.402e-06/9.046, allocations: 0 / 1.633 GB, free: 96.03 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.863e-05/9.046, allocations: 0 / 1.633 GB, free: 96.03 MB / 494.1 MB 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.006738/9.053, allocations: 1.969 MB / 1.635 GB, free: 95.03 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/9.053, allocations: 12.72 kB / 1.635 GB, free: 95.03 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004931/9.054, allocations: 251.8 kB / 1.635 GB, free: 94.88 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001931/9.056, allocations: 363.2 kB / 1.635 GB, free: 94.74 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004133/9.06, allocations: 1.598 MB / 1.637 GB, free: 94.01 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001297/9.06, allocations: 124.3 kB / 1.637 GB, free: 93.95 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004797/9.06, allocations: 166.9 kB / 1.637 GB, free: 93.9 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006138/9.066, allocations: 3.606 MB / 1.64 GB, free: 92.99 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.797e-05/9.067, allocations: 1.125 kB / 1.64 GB, free: 92.99 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003017/9.067, allocations: 67.38 kB / 1.641 GB, free: 92.94 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.583e-05/9.067, allocations: 40.81 kB / 1.641 GB, free: 92.94 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2674/9.334, allocations: 62.47 MB / 1.702 GB, free: 194.3 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008534/9.343, allocations: 6.931 MB / 1.708 GB, free: 192 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.239/9.582, allocations: 48.16 MB / 1.755 GB, free: 166.2 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003272/9.585, allocations: 2.318 MB / 1.758 GB, free: 163.9 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007822/9.586, allocations: 445 kB / 1.758 GB, free: 163.5 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00458/9.591, allocations: 3.059 MB / 1.761 GB, free: 160.4 MB / 494.1 MB Notification: Performance of pre-optimization done (n=423): time 6.583e-06/9.591, allocations: 0 / 1.761 GB, free: 160.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=423): time 0.01631/9.607, allocations: 12.57 MB / 1.773 GB, free: 147.9 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/9.607, allocations: 130 kB / 1.773 GB, free: 147.7 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004515/9.607, allocations: 310.9 kB / 1.774 GB, free: 147.4 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004016/9.608, allocations: 101.7 kB / 1.774 GB, free: 147.3 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.985e-05/9.608, allocations: 148.7 kB / 1.774 GB, free: 147.1 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009007/9.609, allocations: 1.4 MB / 1.775 GB, free: 145.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001298/9.61, allocations: 0.9447 MB / 1.776 GB, free: 144.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.8e-05/9.61, allocations: 329.9 kB / 1.777 GB, free: 144.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002894/9.613, allocations: 2.035 MB / 1.779 GB, free: 142.4 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003346/9.616, allocations: 2.29 MB / 1.781 GB, free: 140.1 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007032/9.624, allocations: 4.763 MB / 1.785 GB, free: 135.4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.767e-06/9.624, allocations: 0 / 1.785 GB, free: 135.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=439) (initialization): time 0.01377/9.637, allocations: 13.4 MB / 1.799 GB, free: 121.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.441e-05/9.637, allocations: 5.188 kB / 1.799 GB, free: 121.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/9.637, allocations: 0 / 1.799 GB, free: 121.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.147e-05/9.637, allocations: 16.12 kB / 1.799 GB, free: 121.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00373/9.641, allocations: 1.089 MB / 1.8 GB, free: 120.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-05/9.641, allocations: 19.98 kB / 1.8 GB, free: 120.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001492/9.643, allocations: 237.4 kB / 1.8 GB, free: 120.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005441/9.643, allocations: 321.3 kB / 1.8 GB, free: 120.3 MB / 494.1 MB 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.001225/9.645, allocations: 0.5359 MB / 1.801 GB, free: 119.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001739/9.646, allocations: 350.1 kB / 1.801 GB, free: 119.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01525/9.662, allocations: 12.31 MB / 1.813 GB, free: 107.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-05/9.662, allocations: 40 kB / 1.813 GB, free: 107.3 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.48e-05/9.662, allocations: 8 kB / 1.813 GB, free: 107.3 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.835e-05/9.662, allocations: 20.69 kB / 1.813 GB, free: 107.3 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002289/9.664, allocations: 2.474 MB / 1.816 GB, free: 104.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.09e-05/9.664, allocations: 0 / 1.816 GB, free: 104.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003588/9.668, allocations: 1.051 MB / 1.817 GB, free: 103.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.774e-05/9.668, allocations: 16 kB / 1.817 GB, free: 103.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000408/9.668, allocations: 295.5 kB / 1.817 GB, free: 103.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.097e-05/9.668, allocations: 13.25 kB / 1.817 GB, free: 103.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/9.668, allocations: 6.609 kB / 1.817 GB, free: 103.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01485/9.683, allocations: 13.83 MB / 1.83 GB, free: 89.64 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001196/9.684, allocations: 1.333 MB / 1.832 GB, free: 88.29 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003854/9.685, allocations: 72 kB / 1.832 GB, free: 88.22 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001194/9.686, allocations: 83.97 kB / 1.832 GB, free: 88.14 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005208/9.686, allocations: 390.5 kB / 1.832 GB, free: 87.75 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004913/9.687, allocations: 315.5 kB / 1.833 GB, free: 87.45 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003071/9.687, allocations: 228.2 kB / 1.833 GB, free: 87.22 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.9e-07/9.687, allocations: 0 / 1.833 GB, free: 87.22 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002351/9.689, allocations: 0.664 MB / 1.833 GB, free: 86.58 MB / 494.1 MB 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.01723/9.707, allocations: 14.91 MB / 1.848 GB, free: 71.7 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007399/9.714, allocations: 5.195 MB / 1.853 GB, free: 66.49 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/9.714, allocations: 0 / 1.853 GB, free: 66.49 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003884/9.718, allocations: 2.836 MB / 1.856 GB, free: 63.66 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009726/9.719, allocations: 158.9 kB / 1.856 GB, free: 63.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1791/9.898, allocations: 33.11 MB / 1.888 GB, free: 181.9 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006814/9.899, allocations: 1.333 MB / 1.89 GB, free: 181.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.007178/9.906, allocations: 2.988 MB / 1.893 GB, free: 180.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001838/9.908, allocations: 1.024 MB / 1.894 GB, free: 179.9 MB / 494.1 MB Notification: Performance of SimCode: time 7.62e-07/9.908, allocations: 4 kB / 1.894 GB, free: 179.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06789/9.976, allocations: 50.48 MB / 1.943 GB, free: 134.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.969/18.94, allocations: 7.922 kB / 1.943 GB, free: 134.9 MB / 494.1 MB (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)