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.005433/0.005433, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001277/0.001277, allocations: 188.6 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.352/1.352, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1303/0.1303, allocations: 3.888 MB / 294.4 MB, free: 3.195 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 55.91 kB / 406.5 MB, free: 0.668 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2277/0.229, allocations: 50.18 MB / 456.6 MB, free: 20.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain): time 0.002435/0.2315, allocations: 2.062 MB / 458.7 MB, free: 18.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004746/0.2362, allocations: 3.912 MB / 462.6 MB, free: 16.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001788/0.2365, allocations: 6.938 kB / 462.6 MB, free: 16.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002959/0.2368, allocations: 46.25 kB / 462.7 MB, free: 16.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001468/0.2369, allocations: 53.45 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.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.001618/0.2386, allocations: 0.652 MB / 463.4 MB, free: 16.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004601/0.2432, allocations: 5.68 MB / 469 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001598/0.2434, allocations: 44.77 kB / 469.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002531/0.2459, allocations: 1.485 MB / 470.6 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003433/0.2494, allocations: 1.871 MB / 472.4 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001181/0.2506, allocations: 256.4 kB / 472.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.808/9.059, allocations: 1.215 GB / 1.677 GB, free: 37.62 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.001695/9.061, allocations: 0.971 MB / 1.678 GB, free: 37.1 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001269/9.062, allocations: 1.1 MB / 1.679 GB, free: 36.36 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.003162/9.065, allocations: 3.787 MB / 1.682 GB, free: 33.02 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/9.065, allocations: 3.094 kB / 1.682 GB, free: 33.02 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.443e-06/9.065, allocations: 4 kB / 1.682 GB, free: 33.02 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.886e-05/9.065, allocations: 0 / 1.682 GB, free: 33.02 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.005395/9.071, allocations: 1.969 MB / 1.684 GB, free: 31 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/9.071, allocations: 16.03 kB / 1.684 GB, free: 30.98 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003238/9.071, allocations: 253 kB / 1.684 GB, free: 30.73 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00166/9.073, allocations: 355 kB / 1.685 GB, free: 30.38 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003964/9.077, allocations: 1.596 MB / 1.686 GB, free: 28.79 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.944e-05/9.077, allocations: 124.1 kB / 1.686 GB, free: 28.67 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003999/9.077, allocations: 169.1 kB / 1.687 GB, free: 28.5 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00457/9.082, allocations: 3.606 MB / 1.69 GB, free: 24.87 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.682e-05/9.082, allocations: 0 / 1.69 GB, free: 24.87 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002394/9.082, allocations: 64 kB / 1.69 GB, free: 24.8 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.137e-05/9.082, allocations: 40 kB / 1.69 GB, free: 24.77 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2686/9.351, allocations: 62.48 MB / 1.751 GB, free: 179 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008877/9.359, allocations: 6.928 MB / 1.758 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2783/9.638, allocations: 48.16 MB / 1.805 GB, free: 123.6 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003202/9.641, allocations: 2.316 MB / 1.807 GB, free: 121.3 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007707/9.642, allocations: 446.5 kB / 1.808 GB, free: 120.9 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004334/9.646, allocations: 3.06 MB / 1.811 GB, free: 117.8 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=423): time 7.614e-06/9.646, allocations: 4 kB / 1.811 GB, free: 117.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=423): time 0.0166/9.663, allocations: 12.55 MB / 1.823 GB, free: 105.3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.731e-05/9.663, allocations: 133.6 kB / 1.823 GB, free: 105.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004927/9.663, allocations: 310.9 kB / 1.823 GB, free: 104.8 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0004595/9.664, allocations: 105.7 kB / 1.824 GB, free: 104.7 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 8.826e-05/9.664, allocations: 148.8 kB / 1.824 GB, free: 104.6 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009907/9.665, allocations: 1.382 MB / 1.825 GB, free: 103.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001489/9.667, allocations: 0.957 MB / 1.826 GB, free: 102.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.86e-05/9.667, allocations: 333.9 kB / 1.826 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003055/9.67, allocations: 2.029 MB / 1.828 GB, free: 99.86 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003424/9.673, allocations: 2.297 MB / 1.831 GB, free: 97.55 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0074/9.681, allocations: 4.751 MB / 1.835 GB, free: 92.77 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.158e-05/9.681, allocations: 5.438 kB / 1.835 GB, free: 92.76 MB / 0.5294 GB Notification: Performance of matching and sorting (n=439) (initialization): time 0.0164/9.697, allocations: 13.39 MB / 1.848 GB, free: 79.35 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.328e-05/9.697, allocations: 5.25 kB / 1.848 GB, free: 79.34 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.706e-05/9.697, allocations: 4 kB / 1.848 GB, free: 79.34 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.607e-05/9.697, allocations: 15.94 kB / 1.848 GB, free: 79.32 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004414/9.702, allocations: 1.092 MB / 1.849 GB, free: 78.23 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.248e-05/9.702, allocations: 16 kB / 1.849 GB, free: 78.21 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002082/9.704, allocations: 245.3 kB / 1.85 GB, free: 77.97 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007098/9.704, allocations: 323.5 kB / 1.85 GB, free: 77.66 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.001194/9.706, allocations: 0.5307 MB / 1.85 GB, free: 77.12 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001809/9.707, allocations: 345.8 kB / 1.851 GB, free: 76.78 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01661/9.724, allocations: 12.32 MB / 1.863 GB, free: 64.65 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.721e-05/9.724, allocations: 40.98 kB / 1.863 GB, free: 64.61 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.535e-05/9.724, allocations: 0 / 1.863 GB, free: 64.61 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-05/9.724, allocations: 19.92 kB / 1.863 GB, free: 64.59 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002755/9.727, allocations: 2.473 MB / 1.865 GB, free: 62.16 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.026e-05/9.727, allocations: 96 / 1.865 GB, free: 62.16 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004038/9.731, allocations: 1.061 MB / 1.866 GB, free: 61.09 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.402e-05/9.731, allocations: 19.98 kB / 1.866 GB, free: 61.07 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006001/9.732, allocations: 287.5 kB / 1.867 GB, free: 60.79 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.967e-05/9.732, allocations: 12 kB / 1.867 GB, free: 60.78 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/9.732, allocations: 12.8 kB / 1.867 GB, free: 60.77 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01705/9.749, allocations: 13.83 MB / 1.88 GB, free: 46.89 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001778/9.751, allocations: 1.325 MB / 1.881 GB, free: 45.54 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004103/9.751, allocations: 71.98 kB / 1.881 GB, free: 45.47 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001647/9.753, allocations: 79.98 kB / 1.882 GB, free: 45.39 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006274/9.753, allocations: 390.5 kB / 1.882 GB, free: 45.01 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000546/9.754, allocations: 319.5 kB / 1.882 GB, free: 44.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003646/9.754, allocations: 225.9 kB / 1.882 GB, free: 44.48 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.81e-07/9.754, allocations: 2.625 kB / 1.882 GB, free: 44.48 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00249/9.757, allocations: 0.6623 MB / 1.883 GB, free: 43.84 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.2015/9.958, allocations: 14.91 MB / 1.898 GB, free: 200.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0093/9.968, allocations: 5.184 MB / 1.903 GB, free: 198.7 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/9.968, allocations: 3.938 kB / 1.903 GB, free: 198.7 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005041/9.973, allocations: 2.843 MB / 1.905 GB, free: 197.8 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009036/9.974, allocations: 155.1 kB / 1.906 GB, free: 197.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03996/10.01, allocations: 32.14 MB / 1.937 GB, free: 176.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006477/10.01, allocations: 1.323 MB / 1.938 GB, free: 175.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007202/10.02, allocations: 2.99 MB / 1.941 GB, free: 172.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001886/10.02, allocations: 1.03 MB / 1.942 GB, free: 171.7 MB / 0.5294 GB Notification: Performance of SimCode: time 8.02e-07/10.02, allocations: 0 / 1.942 GB, free: 171.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07189/10.1, allocations: 51.73 MB / 1.993 GB, free: 120 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.74/21.84, allocations: 15.84 kB / 1.993 GB, free: 120 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)