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.001269/0.001269, allocations: 108 kB / 15.6 MB, free: 132 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.001448/0.001448, allocations: 197.7 kB / 16.54 MB, free: 6.672 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.434/1.434, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1526/0.1526, allocations: 3.885 MB / 294.3 MB, free: 3.238 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002695/0.002695, allocations: 55.91 kB / 355.6 MB, free: 3.461 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1175, allocations: 50.18 MB / 405.8 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain): time 0.004106/0.1216, allocations: 2.056 MB / 407.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007565/0.1292, allocations: 3.914 MB / 411.7 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003844/0.1296, allocations: 3.938 kB / 411.7 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004724/0.1302, allocations: 59.52 kB / 411.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000285/0.1305, allocations: 47.64 kB / 411.9 MB, free: 11.11 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.002068/0.1326, allocations: 0.6451 MB / 412.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004418/0.137, allocations: 5.646 MB / 418.1 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001988/0.1372, allocations: 52.36 kB / 418.2 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002541/0.1398, allocations: 1.474 MB / 419.7 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003482/0.1433, allocations: 1.877 MB / 421.5 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001161/0.1444, allocations: 256 kB / 421.8 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.494/7.638, allocations: 1.215 GB / 1.627 GB, free: 95.75 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001472/7.64, allocations: 0.9779 MB / 1.628 GB, free: 95.73 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002565/7.642, allocations: 1.09 MB / 1.629 GB, free: 95.32 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004595/7.647, allocations: 3.776 MB / 1.632 GB, free: 94.51 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/7.647, allocations: 1.688 kB / 1.632 GB, free: 94.51 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.124e-06/7.647, allocations: 0 / 1.632 GB, free: 94.51 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.547e-05/7.647, allocations: 0 / 1.632 GB, free: 94.51 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.006449/7.654, allocations: 1.969 MB / 1.634 GB, free: 93.52 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/7.654, allocations: 9.125 kB / 1.634 GB, free: 93.52 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004436/7.654, allocations: 250.9 kB / 1.635 GB, free: 93.37 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001969/7.656, allocations: 363.4 kB / 1.635 GB, free: 93.23 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004622/7.661, allocations: 1.594 MB / 1.637 GB, free: 92.5 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001578/7.661, allocations: 126.7 kB / 1.637 GB, free: 92.44 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005602/7.661, allocations: 165.1 kB / 1.637 GB, free: 92.39 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008454/7.67, allocations: 3.608 MB / 1.64 GB, free: 91.48 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.89e-05/7.67, allocations: 1.188 kB / 1.64 GB, free: 91.48 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003999/7.67, allocations: 65.41 kB / 1.64 GB, free: 91.43 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.867e-05/7.67, allocations: 40.12 kB / 1.64 GB, free: 91.43 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2779/7.948, allocations: 62.47 MB / 1.701 GB, free: 194.3 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01072/7.959, allocations: 6.934 MB / 1.708 GB, free: 191.9 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2824/8.242, allocations: 48.16 MB / 1.755 GB, free: 164.8 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003707/8.245, allocations: 2.32 MB / 1.758 GB, free: 162.5 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009247/8.246, allocations: 446 kB / 1.758 GB, free: 162 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004826/8.251, allocations: 3.062 MB / 1.761 GB, free: 159 MB / 494.1 MB Notification: Performance of pre-optimization done (n=423): time 7.895e-06/8.251, allocations: 0 / 1.761 GB, free: 159 MB / 494.1 MB Notification: Performance of matching and sorting (n=423): time 0.01741/8.269, allocations: 12.56 MB / 1.773 GB, free: 146.4 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.703e-05/8.269, allocations: 124.3 kB / 1.773 GB, free: 146.3 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005287/8.269, allocations: 316.6 kB / 1.774 GB, free: 146 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004332/8.27, allocations: 101.7 kB / 1.774 GB, free: 145.9 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/8.27, allocations: 156.9 kB / 1.774 GB, free: 145.7 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001206/8.271, allocations: 1.387 MB / 1.775 GB, free: 144.3 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001717/8.273, allocations: 0.9525 MB / 1.776 GB, free: 143.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.156e-05/8.273, allocations: 325.9 kB / 1.776 GB, free: 143.1 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003138/8.276, allocations: 2.033 MB / 1.778 GB, free: 141 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003587/8.28, allocations: 2.293 MB / 1.781 GB, free: 138.7 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007558/8.287, allocations: 4.765 MB / 1.785 GB, free: 133.9 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.309e-05/8.287, allocations: 0 / 1.785 GB, free: 133.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=439) (initialization): time 0.01487/8.302, allocations: 13.4 MB / 1.798 GB, free: 120.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.596e-05/8.302, allocations: 4 kB / 1.798 GB, free: 120.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.558e-05/8.302, allocations: 4 kB / 1.798 GB, free: 120.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.815e-05/8.302, allocations: 16.12 kB / 1.798 GB, free: 120.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004093/8.306, allocations: 1.087 MB / 1.8 GB, free: 119.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.263e-05/8.306, allocations: 19.66 kB / 1.8 GB, free: 119.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00187/8.308, allocations: 241.4 kB / 1.8 GB, free: 119.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006558/8.309, allocations: 319.5 kB / 1.8 GB, free: 118.9 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.00155/8.311, allocations: 0.5339 MB / 1.801 GB, free: 118.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002111/8.313, allocations: 346.9 kB / 1.801 GB, free: 118 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01944/8.332, allocations: 12.33 MB / 1.813 GB, free: 105.9 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.68e-05/8.332, allocations: 40 kB / 1.813 GB, free: 105.9 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.601e-05/8.332, allocations: 0 / 1.813 GB, free: 105.9 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.86e-05/8.332, allocations: 19.92 kB / 1.813 GB, free: 105.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00287/8.335, allocations: 2.471 MB / 1.815 GB, free: 103.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.61e-05/8.335, allocations: 2.859 kB / 1.815 GB, free: 103.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004078/8.339, allocations: 1.055 MB / 1.816 GB, free: 102.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.718e-05/8.339, allocations: 19.98 kB / 1.817 GB, free: 102.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006776/8.34, allocations: 287.5 kB / 1.817 GB, free: 102.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.129e-05/8.34, allocations: 12 kB / 1.817 GB, free: 102.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/8.34, allocations: 7.984 kB / 1.817 GB, free: 102.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01775/8.358, allocations: 13.84 MB / 1.83 GB, free: 88.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001583/8.359, allocations: 1.329 MB / 1.832 GB, free: 86.85 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006048/8.36, allocations: 75.97 kB / 1.832 GB, free: 86.77 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001707/8.362, allocations: 82.28 kB / 1.832 GB, free: 86.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007122/8.362, allocations: 390.5 kB / 1.832 GB, free: 86.31 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006378/8.363, allocations: 315.5 kB / 1.832 GB, free: 86 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003803/8.364, allocations: 233.8 kB / 1.833 GB, free: 85.77 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.81e-07/8.364, allocations: 0 / 1.833 GB, free: 85.77 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002672/8.366, allocations: 0.6562 MB / 1.833 GB, free: 85.14 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.02033/8.387, allocations: 14.92 MB / 1.848 GB, free: 70.24 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.2088/8.595, allocations: 15.51 MB / 1.863 GB, free: 190.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/8.595, allocations: 1.688 kB / 1.863 GB, free: 190.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004983/8.6, allocations: 2.838 MB / 1.866 GB, free: 189.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001063/8.602, allocations: 153.9 kB / 1.866 GB, free: 189.6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04794/8.649, allocations: 32.86 MB / 1.898 GB, free: 174.3 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006738/8.65, allocations: 1.325 MB / 1.899 GB, free: 173.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.007967/8.658, allocations: 2.995 MB / 1.902 GB, free: 171 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001807/8.66, allocations: 1.024 MB / 1.903 GB, free: 170.2 MB / 494.1 MB Notification: Performance of SimCode: time 9.02e-07/8.66, allocations: 0 / 1.903 GB, free: 170.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07973/8.74, allocations: 50.51 MB / 1.953 GB, free: 123.8 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.497/18.24, allocations: 8.453 kB / 1.953 GB, free: 123.7 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)