Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase.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.MinimumAndZeroPhase,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_RailIrregularities_Comparisons_MinimumAndZeroPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_RailIrregularities_Comparisons_MinimumAndZeroPhase",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.004991/0.004991, allocations: 100.2 kB / 15.73 MB, free: 6.051 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.001173/0.001173, allocations: 197.2 kB / 16.67 MB, free: 5.977 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.359/1.359, 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.1283/0.1283, allocations: 3.886 MB / 294.4 MB, free: 3.199 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 63.91 kB / 406.5 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2256/0.2269, allocations: 50.17 MB / 456.6 MB, free: 20.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase): time 0.002558/0.2295, allocations: 2.065 MB / 458.7 MB, free: 18.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004815/0.2344, allocations: 3.909 MB / 462.6 MB, free: 16.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001715/0.2346, allocations: 10.94 kB / 462.6 MB, free: 16.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001594/0.2348, allocations: 40.09 kB / 462.7 MB, free: 16.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.183e-05/0.2349, allocations: 26.8 kB / 462.7 MB, free: 16.38 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.MinimumAndZeroPhase.spaceDomainNoiseMinimum.generator.initialState' contains a call to impure function 'AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase.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.MinimumAndZeroPhase.spaceDomainNoiseMinimum.initialState' contains a call to impure function 'AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase.spaceDomainNoiseMinimum.convertRealToIntegers'. [/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.MinimumAndZeroPhase.spaceDomainNoiseZero.generator.initialState' contains a call to impure function 'AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase.spaceDomainNoiseZero.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.MinimumAndZeroPhase.spaceDomainNoiseZero.initialState' contains a call to impure function 'AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase.spaceDomainNoiseZero.convertRealToIntegers'. Notification: Performance of NFTyping.typeClassSections: time 0.001952/0.2368, allocations: 0.7981 MB / 463.5 MB, free: 16.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009519/0.2463, allocations: 13.64 MB / 477.1 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002561/0.2466, allocations: 71.42 kB / 477.2 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006037/0.2527, allocations: 3.354 MB / 480.5 MB, free: 9.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007585/0.2603, allocations: 4.4 MB / 484.9 MB, free: 6.543 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002554/0.2629, allocations: 0.5938 MB / 485.5 MB, free: 6.543 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 66.7/66.96, allocations: 8.772 GB / 9.246 GB, free: 204.1 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.004362/66.97, allocations: 2.29 MB / 9.249 GB, free: 204 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.006589/66.97, allocations: 2.549 MB / 9.251 GB, free: 203.5 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01332/66.99, allocations: 8.621 MB / 9.26 GB, free: 201.4 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.485e-06/66.99, allocations: 4 kB / 9.26 GB, free: 201.4 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.535e-06/66.99, allocations: 1.5 kB / 9.26 GB, free: 201.4 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0002415/66.99, allocations: 0 / 9.26 GB, free: 201.4 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1025 * Number of variables: 1025 Notification: Performance of Generate backend data structure: time 0.0227/67.01, allocations: 3.84 MB / 9.263 GB, free: 198.8 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/67.01, allocations: 13.5 kB / 9.263 GB, free: 198.8 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002463/67.01, allocations: 0.5552 MB / 9.264 GB, free: 198.4 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006282/67.02, allocations: 0.7933 MB / 9.265 GB, free: 198.1 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01191/67.03, allocations: 3.453 MB / 9.268 GB, free: 195.3 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003901/67.03, allocations: 298.5 kB / 9.268 GB, free: 195.2 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00305/67.04, allocations: 385.2 kB / 9.269 GB, free: 195.1 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02304/67.06, allocations: 8.683 MB / 9.277 GB, free: 189.9 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001664/67.06, allocations: 5.094 kB / 9.277 GB, free: 189.9 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002583/67.06, allocations: 160.3 kB / 9.277 GB, free: 189.8 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.005e-05/67.06, allocations: 96.31 kB / 9.277 GB, free: 189.8 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5328/67.59, allocations: 198.1 MB / 9.471 GB, free: 183.9 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02731/67.62, allocations: 15.93 MB / 9.486 GB, free: 168.1 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 1.176/68.8, allocations: 153.2 MB / 9.636 GB, free: 201.3 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009109/68.81, allocations: 5.632 MB / 9.641 GB, free: 198.9 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001999/68.81, allocations: 1.005 MB / 9.642 GB, free: 198.3 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.512e-05/68.81, allocations: 138.5 kB / 9.643 GB, free: 198.2 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1017): time 1.037e-05/68.81, allocations: 0 / 9.643 GB, free: 198.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=1017): time 0.05535/68.86, allocations: 34.37 MB / 9.676 GB, free: 164 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.651e-05/68.86, allocations: 162.3 kB / 9.676 GB, free: 163.9 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002261/68.86, allocations: 217 kB / 9.677 GB, free: 163.6 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.002677/68.87, allocations: 185.7 kB / 9.677 GB, free: 163.4 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.744e-05/68.87, allocations: 149.9 kB / 9.677 GB, free: 163.3 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.004879/68.87, allocations: 3.321 MB / 9.68 GB, free: 160 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007513/68.88, allocations: 2.259 MB / 9.682 GB, free: 157.8 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.618e-05/68.88, allocations: 325.9 kB / 9.683 GB, free: 157.4 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009228/68.89, allocations: 4.872 MB / 9.687 GB, free: 152.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01039/68.9, allocations: 5.444 MB / 9.693 GB, free: 147.1 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02279/68.92, allocations: 11.38 MB / 9.704 GB, free: 135.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.781e-05/68.92, allocations: 4 kB / 9.704 GB, free: 135.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.04781/68.97, allocations: 38.31 MB / 9.741 GB, free: 97.36 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.212e-05/68.97, allocations: 8 kB / 9.741 GB, free: 97.35 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.107e-05/68.97, allocations: 0 / 9.741 GB, free: 97.35 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.329e-05/68.97, allocations: 32 kB / 9.741 GB, free: 97.32 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01142/68.98, allocations: 2.602 MB / 9.744 GB, free: 94.71 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001294/68.98, allocations: 32 kB / 9.744 GB, free: 94.68 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005799/68.99, allocations: 0.5252 MB / 9.744 GB, free: 94.15 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003069/68.99, allocations: 0.7565 MB / 9.745 GB, free: 93.39 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 (globalSeed.seed,spaceDomainNoiseZero.actualGlobalSeed,spaceDomainNoiseMinimum.actualGlobalSeed,globalSeed.id_impure,spaceDomainNoiseZero.localSeed,spaceDomainNoiseMinimum.localSeed,position.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1024): * Single equations (assignments): 1024 * Array equations: 0 * 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.006886/69, allocations: 1.082 MB / 9.746 GB, free: 92.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006567/69, allocations: 0.79 MB / 9.747 GB, free: 91.51 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05633/69.06, allocations: 33.93 MB / 9.78 GB, free: 57.78 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.973e-05/69.06, allocations: 96 kB / 9.78 GB, free: 57.69 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.096e-05/69.06, allocations: 0 / 9.78 GB, free: 57.69 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000156/69.06, allocations: 51.2 kB / 9.78 GB, free: 57.64 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009054/69.07, allocations: 5.69 MB / 9.786 GB, free: 51.88 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.167e-05/69.07, allocations: 4 kB / 9.786 GB, free: 51.88 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01123/69.08, allocations: 2.581 MB / 9.788 GB, free: 49.29 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001013/69.08, allocations: 36 kB / 9.788 GB, free: 49.26 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002747/69.08, allocations: 0.6979 MB / 9.789 GB, free: 48.56 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.938e-05/69.08, allocations: 35.94 kB / 9.789 GB, free: 48.52 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/69.08, allocations: 0 / 9.789 GB, free: 48.52 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2567/69.34, allocations: 37.51 MB / 9.826 GB, free: 201 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006087/69.35, allocations: 3.113 MB / 9.829 GB, free: 199 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002695/69.35, allocations: 156 kB / 9.829 GB, free: 198.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0055/69.36, allocations: 163.8 kB / 9.829 GB, free: 198.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003314/69.36, allocations: 0.9253 MB / 9.83 GB, free: 198.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002617/69.36, allocations: 0.758 MB / 9.831 GB, free: 197.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001724/69.36, allocations: 163.5 kB / 9.831 GB, free: 197.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/69.36, allocations: 0 / 9.831 GB, free: 197.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008649/69.37, allocations: 1.42 MB / 9.832 GB, free: 196.2 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (position.y) * Number of discrete variables: 2 (spaceDomainNoiseMinimum.localSeed,spaceDomainNoiseZero.localSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1017): * Single equations (assignments): 1015 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.05548/69.43, allocations: 39 MB / 9.87 GB, free: 157.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02485/69.45, allocations: 12.52 MB / 9.882 GB, free: 145.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/69.45, allocations: 4.188 kB / 9.882 GB, free: 145.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.01275/69.46, allocations: 6.926 MB / 9.889 GB, free: 138.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003165/69.47, allocations: 334 kB / 9.89 GB, free: 138.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1043/69.57, allocations: 82.62 MB / 9.97 GB, free: 55.27 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001695/69.57, allocations: 2.164 MB / 9.972 GB, free: 53.06 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.02486/69.6, allocations: 7.348 MB / 9.98 GB, free: 46.02 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.201/69.8, allocations: 2.358 MB / 9.982 GB, free: 210.2 MB / 0.545 GB Notification: Performance of SimCode: time 2.515e-06/69.8, allocations: 0 / 9.982 GB, free: 210.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1537/69.95, allocations: 113.8 MB / 10.09 GB, free: 120.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.6/95.56, allocations: 11.91 kB / 10.09 GB, free: 120.8 MB / 0.545 GB (rm -f AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AdvancedNoise_AdvancedNoise_Examples_RailIrregularities_Comparisons_MinimumAndZeroPhase_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=0.001 AdvancedNoise_AdvancedNoise_Examples_RailIrregularities_Comparisons_MinimumAndZeroPhase.fmu > AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase.pipe 2>&1)