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.01059/0.01059, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.002416/0.002416, allocations: 194.8 kB / 16.67 MB, free: 5.973 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.515/1.515, 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.179/0.179, allocations: 3.884 MB / 294.4 MB, free: 3.312 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001949/0.00195, allocations: 63.89 kB / 406.5 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2481/0.25, allocations: 50.19 MB / 456.6 MB, free: 20.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.RailIrregularities.Comparisons.SpaceAndTimeDomain): time 0.002452/0.2525, allocations: 2.061 MB / 458.7 MB, free: 19.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004741/0.2573, allocations: 3.907 MB / 462.6 MB, free: 16.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001535/0.2574, allocations: 6.781 kB / 462.6 MB, free: 16.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003079/0.2578, allocations: 49.86 kB / 462.7 MB, free: 16.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001469/0.2579, allocations: 51.11 kB / 462.7 MB, free: 16.43 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.001495/0.2595, allocations: 0.6549 MB / 463.4 MB, free: 16.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004176/0.2636, allocations: 5.674 MB / 469 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001482/0.2638, allocations: 60.12 kB / 469.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002639/0.2665, allocations: 1.484 MB / 470.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005626/0.2721, allocations: 1.863 MB / 472.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001221/0.2733, allocations: 260.8 kB / 472.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.191/7.464, allocations: 1.215 GB / 1.677 GB, free: 37.57 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.001864/7.466, allocations: 0.9785 MB / 1.678 GB, free: 37.04 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.002053/7.468, allocations: 1.084 MB / 1.679 GB, free: 36.29 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.004009/7.472, allocations: 3.804 MB / 1.682 GB, free: 32.9 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/7.472, allocations: 4 kB / 1.682 GB, free: 32.89 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.743e-06/7.472, allocations: 0 / 1.682 GB, free: 32.89 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.19e-05/7.473, allocations: 0 / 1.682 GB, free: 32.89 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.006131/7.479, allocations: 2.012 MB / 1.684 GB, free: 30.83 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/7.479, allocations: 8.031 kB / 1.684 GB, free: 30.82 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003501/7.479, allocations: 253 kB / 1.685 GB, free: 30.56 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001719/7.481, allocations: 367 kB / 1.685 GB, free: 30.21 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003641/7.484, allocations: 1.612 MB / 1.686 GB, free: 28.6 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.26e-05/7.485, allocations: 124.1 kB / 1.687 GB, free: 28.48 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003613/7.485, allocations: 164 kB / 1.687 GB, free: 28.32 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005419/7.49, allocations: 3.602 MB / 1.69 GB, free: 24.69 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.906e-05/7.49, allocations: 4 kB / 1.69 GB, free: 24.68 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002765/7.491, allocations: 72 kB / 1.69 GB, free: 24.61 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.005e-05/7.491, allocations: 40 kB / 1.69 GB, free: 24.57 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2957/7.786, allocations: 62.47 MB / 1.751 GB, free: 178.9 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008662/7.795, allocations: 6.926 MB / 1.758 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2804/8.076, allocations: 48.17 MB / 1.805 GB, free: 123.6 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002896/8.079, allocations: 2.314 MB / 1.807 GB, free: 121.3 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006658/8.079, allocations: 444.2 kB / 1.808 GB, free: 120.9 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003745/8.083, allocations: 3.061 MB / 1.811 GB, free: 117.8 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=423): time 5.28e-06/8.083, allocations: 4 kB / 1.811 GB, free: 117.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=423): time 0.01437/8.097, allocations: 12.56 MB / 1.823 GB, free: 105.3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.408e-05/8.097, allocations: 130.3 kB / 1.823 GB, free: 105.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004808/8.098, allocations: 318.9 kB / 1.824 GB, free: 104.8 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0002606/8.098, allocations: 101.7 kB / 1.824 GB, free: 104.7 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 7.708e-05/8.098, allocations: 145.4 kB / 1.824 GB, free: 104.5 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007497/8.099, allocations: 1.466 MB / 1.825 GB, free: 103.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001068/8.1, allocations: 0.9473 MB / 1.826 GB, free: 102.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.371e-05/8.1, allocations: 333.9 kB / 1.826 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002667/8.103, allocations: 2.029 MB / 1.828 GB, free: 99.92 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003086/8.106, allocations: 2.293 MB / 1.831 GB, free: 97.61 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006545/8.113, allocations: 4.755 MB / 1.835 GB, free: 92.82 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.516e-06/8.113, allocations: 4 kB / 1.835 GB, free: 92.82 MB / 0.5294 GB Notification: Performance of matching and sorting (n=439) (initialization): time 0.01371/8.126, allocations: 13.41 MB / 1.848 GB, free: 79.39 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.529e-05/8.126, allocations: 5.25 kB / 1.848 GB, free: 79.39 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/8.126, allocations: 4 kB / 1.848 GB, free: 79.38 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.522e-05/8.126, allocations: 12.09 kB / 1.848 GB, free: 79.37 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004001/8.13, allocations: 1.088 MB / 1.849 GB, free: 78.28 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.803e-05/8.13, allocations: 19.98 kB / 1.85 GB, free: 78.26 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001608/8.132, allocations: 250.2 kB / 1.85 GB, free: 78.02 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004734/8.132, allocations: 323.5 kB / 1.85 GB, free: 77.7 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.0008429/8.133, allocations: 0.5276 MB / 1.851 GB, free: 77.16 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001544/8.135, allocations: 355 kB / 1.851 GB, free: 76.82 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01501/8.15, allocations: 12.31 MB / 1.863 GB, free: 64.68 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.614e-05/8.15, allocations: 40.77 kB / 1.863 GB, free: 64.64 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.201e-05/8.15, allocations: 4 kB / 1.863 GB, free: 64.64 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.152e-05/8.15, allocations: 19.92 kB / 1.863 GB, free: 64.62 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002305/8.152, allocations: 2.484 MB / 1.865 GB, free: 62.17 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.115e-06/8.152, allocations: 0 / 1.865 GB, free: 62.17 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003827/8.156, allocations: 1.053 MB / 1.866 GB, free: 61.11 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.58e-05/8.156, allocations: 16 kB / 1.866 GB, free: 61.1 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003781/8.157, allocations: 292.3 kB / 1.867 GB, free: 60.81 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.346e-05/8.157, allocations: 12 kB / 1.867 GB, free: 60.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/8.157, allocations: 0 / 1.867 GB, free: 60.8 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01562/8.172, allocations: 13.84 MB / 1.88 GB, free: 46.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001295/8.174, allocations: 1.333 MB / 1.882 GB, free: 45.55 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003839/8.174, allocations: 72 kB / 1.882 GB, free: 45.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001566/8.176, allocations: 83.97 kB / 1.882 GB, free: 45.39 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005871/8.176, allocations: 390.5 kB / 1.882 GB, free: 45.01 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004556/8.177, allocations: 322.1 kB / 1.882 GB, free: 44.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003496/8.177, allocations: 233.8 kB / 1.883 GB, free: 44.47 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2e-07/8.177, allocations: 0 / 1.883 GB, free: 44.47 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002282/8.179, allocations: 0.6636 MB / 1.883 GB, free: 43.81 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.1954/8.375, allocations: 14.91 MB / 1.898 GB, free: 200.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008788/8.384, allocations: 5.193 MB / 1.903 GB, free: 198.8 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/8.384, allocations: 0 / 1.903 GB, free: 198.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004708/8.388, allocations: 2.839 MB / 1.906 GB, free: 198 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008439/8.389, allocations: 160.6 kB / 1.906 GB, free: 197.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04142/8.431, allocations: 32.18 MB / 1.937 GB, free: 176.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000582/8.431, allocations: 1.331 MB / 1.939 GB, free: 175.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006597/8.438, allocations: 2.978 MB / 1.941 GB, free: 172.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001743/8.44, allocations: 1.026 MB / 1.942 GB, free: 171.4 MB / 0.5294 GB Notification: Performance of SimCode: time 9.02e-07/8.44, allocations: 7.938 kB / 1.942 GB, free: 171.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07518/8.515, allocations: 50.96 MB / 1.992 GB, free: 120.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.53/21.05, allocations: 11.84 kB / 1.992 GB, free: 120.4 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)