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.001678/0.001678, allocations: 108 kB / 15.61 MB, free: 152 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.001847/0.001847, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.444/1.444, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1578/0.1578, allocations: 3.889 MB / 294.3 MB, free: 3.293 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 60.08 kB / 355.6 MB, free: 3.52 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09791/0.09926, allocations: 50.19 MB / 405.8 MB, free: 1.285 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase): time 0.003943/0.1033, allocations: 2.052 MB / 407.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006895/0.1102, allocations: 3.914 MB / 411.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002805/0.1105, allocations: 7.938 kB / 411.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002228/0.1108, allocations: 39.55 kB / 411.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001244/0.1109, allocations: 23.8 kB / 411.8 MB, free: 11.2 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.0025/0.1134, allocations: 0.7976 MB / 412.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2094/0.3228, allocations: 13.57 MB / 426.2 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002481/0.3231, allocations: 64.58 kB / 426.2 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004852/0.328, allocations: 3.341 MB / 429.6 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005291/0.3333, allocations: 4.4 MB / 434 MB, free: 35.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001943/0.3353, allocations: 0.5932 MB / 434.6 MB, free: 35.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 53.53/53.87, allocations: 8.772 GB / 9.197 GB, free: 174.8 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.002764/53.87, allocations: 2.29 MB / 9.199 GB, free: 174.7 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.004819/53.87, allocations: 2.546 MB / 9.201 GB, free: 174.3 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.009137/53.88, allocations: 8.587 MB / 9.21 GB, free: 172.4 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/53.88, allocations: 0 / 9.21 GB, free: 172.4 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.453e-06/53.88, allocations: 0 / 9.21 GB, free: 172.4 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.0001441/53.88, allocations: 0 / 9.21 GB, free: 172.4 MB / 0.5137 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.01386/53.9, allocations: 3.856 MB / 9.213 GB, free: 170.7 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/53.9, allocations: 9.625 kB / 9.213 GB, free: 170.7 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001168/53.9, allocations: 0.5531 MB / 9.214 GB, free: 170.4 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004372/53.9, allocations: 0.7891 MB / 9.215 GB, free: 170.1 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01223/53.92, allocations: 3.458 MB / 9.218 GB, free: 168.6 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003593/53.92, allocations: 301.7 kB / 9.218 GB, free: 168.5 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002043/53.92, allocations: 387.9 kB / 9.219 GB, free: 168.4 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01961/53.94, allocations: 8.684 MB / 9.227 GB, free: 166.2 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002019/53.94, allocations: 0 / 9.227 GB, free: 166.2 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002051/53.94, allocations: 160 kB / 9.227 GB, free: 166.1 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.496e-05/53.94, allocations: 97.53 kB / 9.227 GB, free: 166.1 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5038/54.44, allocations: 198.1 MB / 9.421 GB, free: 146.2 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03117/54.48, allocations: 15.93 MB / 9.437 GB, free: 130.3 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 1.159/55.63, allocations: 153.2 MB / 9.586 GB, free: 138.8 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008958/55.64, allocations: 5.632 MB / 9.592 GB, free: 133.7 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002211/55.65, allocations: 1.001 MB / 9.593 GB, free: 132.8 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001145/55.65, allocations: 134.5 kB / 9.593 GB, free: 132.6 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1017): time 2.084e-05/55.65, allocations: 3.438 kB / 9.593 GB, free: 132.6 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1017): time 0.05395/55.7, allocations: 34.37 MB / 9.626 GB, free: 98.36 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.094e-05/55.7, allocations: 159.4 kB / 9.626 GB, free: 98.2 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000252/55.7, allocations: 228.9 kB / 9.627 GB, free: 97.96 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.002486/55.7, allocations: 185.7 kB / 9.627 GB, free: 97.77 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 8.657e-05/55.7, allocations: 144.1 kB / 9.627 GB, free: 97.63 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.003972/55.71, allocations: 3.32 MB / 9.63 GB, free: 94.3 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006109/55.71, allocations: 2.259 MB / 9.632 GB, free: 92.03 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 5.719e-05/55.71, allocations: 325.9 kB / 9.633 GB, free: 91.7 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008055/55.72, allocations: 4.869 MB / 9.637 GB, free: 86.82 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1657/55.89, allocations: 5.441 MB / 9.643 GB, free: 221.3 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02066/55.91, allocations: 11.38 MB / 9.654 GB, free: 217.2 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.751e-05/55.91, allocations: 0 / 9.654 GB, free: 217.2 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.04902/55.96, allocations: 38.32 MB / 9.691 GB, free: 193.8 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.433e-05/55.96, allocations: 4 kB / 9.691 GB, free: 193.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.342e-05/55.96, allocations: 7.906 kB / 9.691 GB, free: 193.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.598e-05/55.96, allocations: 32 kB / 9.691 GB, free: 193.8 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01133/55.97, allocations: 2.602 MB / 9.694 GB, free: 192.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001179/55.97, allocations: 32 kB / 9.694 GB, free: 192.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004795/55.97, allocations: 0.524 MB / 9.694 GB, free: 191.5 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002031/55.97, allocations: 0.7606 MB / 9.695 GB, free: 191.1 MB / 0.5137 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.003907/55.98, allocations: 1.074 MB / 9.696 GB, free: 190.2 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004816/55.98, allocations: 0.7921 MB / 9.697 GB, free: 189.4 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0492/56.03, allocations: 33.97 MB / 9.73 GB, free: 157 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.294e-05/56.03, allocations: 96 kB / 9.73 GB, free: 156.9 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.712e-05/56.03, allocations: 1 kB / 9.73 GB, free: 156.9 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001556/56.03, allocations: 51.75 kB / 9.73 GB, free: 156.9 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00828/56.04, allocations: 5.686 MB / 9.736 GB, free: 151.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.666e-05/56.04, allocations: 0 / 9.736 GB, free: 151.3 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01108/56.05, allocations: 2.59 MB / 9.738 GB, free: 148.7 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000125/56.05, allocations: 32 kB / 9.738 GB, free: 148.7 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003004/56.06, allocations: 0.694 MB / 9.739 GB, free: 148 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001033/56.06, allocations: 32.56 kB / 9.739 GB, free: 147.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/56.06, allocations: 0 / 9.739 GB, free: 147.9 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05318/56.11, allocations: 37.51 MB / 9.776 GB, free: 110.4 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004539/56.11, allocations: 3.112 MB / 9.779 GB, free: 107.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002452/56.12, allocations: 167.5 kB / 9.779 GB, free: 107.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004882/56.12, allocations: 156 kB / 9.779 GB, free: 107 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002695/56.12, allocations: 0.9242 MB / 9.78 GB, free: 106 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003203/56.13, allocations: 0.7682 MB / 9.781 GB, free: 105.3 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002062/56.13, allocations: 164.5 kB / 9.781 GB, free: 105.1 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.41e-07/56.13, allocations: 2.625 kB / 9.781 GB, free: 105.1 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.009575/56.14, allocations: 1.419 MB / 9.782 GB, free: 103.7 MB / 0.5137 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.3071/56.44, allocations: 38.99 MB / 9.82 GB, free: 213.5 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.1458/56.59, allocations: 75.61 MB / 9.894 GB, free: 148.9 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.535e-05/56.59, allocations: 0 / 9.894 GB, free: 148.9 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.01387/56.6, allocations: 6.924 MB / 9.901 GB, free: 143.2 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002644/56.61, allocations: 333.8 kB / 9.901 GB, free: 142.9 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2662/56.87, allocations: 86.37 MB / 9.986 GB, free: 211.5 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001344/56.87, allocations: 2.167 MB / 9.988 GB, free: 210.6 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.02344/56.9, allocations: 7.353 MB / 9.995 GB, free: 207.8 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005234/56.9, allocations: 2.359 MB / 9.997 GB, free: 206.9 MB / 0.5137 GB Notification: Performance of SimCode: time 6.41e-07/56.9, allocations: 3.562 kB / 9.997 GB, free: 206.9 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1515/57.05, allocations: 113 MB / 10.11 GB, free: 98.61 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/69.47, allocations: 8.5 kB / 10.11 GB, free: 98.6 MB / 0.5137 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)