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.001106/0.001106, 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.001198/0.001198, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.369/1.369, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1378/0.1378, allocations: 3.886 MB / 294.3 MB, free: 3.27 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 59.91 kB / 355.6 MB, free: 3.484 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08242/0.08373, allocations: 50.18 MB / 405.8 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase): time 0.003233/0.087, allocations: 2.06 MB / 407.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006222/0.09325, allocations: 3.902 MB / 411.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002018/0.09347, allocations: 7.938 kB / 411.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001641/0.09367, allocations: 39.55 kB / 411.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.222e-05/0.09377, allocations: 23.78 kB / 411.8 MB, free: 11.18 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.002102/0.09588, allocations: 0.8055 MB / 412.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.154/0.2499, allocations: 13.57 MB / 426.2 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002055/0.2501, allocations: 68.38 kB / 426.2 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004542/0.2547, allocations: 3.342 MB / 429.6 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005079/0.2598, allocations: 4.403 MB / 434 MB, free: 35.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001982/0.2618, allocations: 0.5951 MB / 434.6 MB, free: 35.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 52.15/52.41, allocations: 8.772 GB / 9.197 GB, free: 162.4 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.003062/52.42, allocations: 2.299 MB / 9.199 GB, free: 162.3 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.003981/52.42, allocations: 2.541 MB / 9.201 GB, free: 161.8 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0108/52.43, allocations: 8.592 MB / 9.21 GB, free: 160 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.595e-06/52.43, allocations: 0 / 9.21 GB, free: 160 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.294e-06/52.43, allocations: 0 / 9.21 GB, free: 160 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.0002272/52.43, allocations: 0 / 9.21 GB, free: 160 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.02062/52.45, allocations: 3.845 MB / 9.213 GB, free: 158.3 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.429e-05/52.45, allocations: 9.625 kB / 9.213 GB, free: 158.3 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004435/52.46, allocations: 0.5525 MB / 9.214 GB, free: 158 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008223/52.46, allocations: 0.7907 MB / 9.215 GB, free: 157.7 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0154/52.48, allocations: 3.455 MB / 9.218 GB, free: 156.2 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007493/52.48, allocations: 300.4 kB / 9.218 GB, free: 156.1 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004601/52.49, allocations: 388.5 kB / 9.219 GB, free: 156 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03186/52.52, allocations: 8.69 MB / 9.227 GB, free: 153.6 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002625/52.52, allocations: 0 / 9.227 GB, free: 153.6 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003315/52.52, allocations: 161 kB / 9.227 GB, free: 153.5 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000105/52.52, allocations: 96.25 kB / 9.228 GB, free: 153.5 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5875/53.11, allocations: 198.1 MB / 9.421 GB, free: 135.6 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03057/53.14, allocations: 15.93 MB / 9.437 GB, free: 119.8 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 1.164/54.3, allocations: 153.2 MB / 9.586 GB, free: 127.5 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008916/54.31, allocations: 5.635 MB / 9.592 GB, free: 122.3 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00219/54.31, allocations: 0.9975 MB / 9.593 GB, free: 121.4 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001188/54.31, allocations: 135.9 kB / 9.593 GB, free: 121.2 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1017): time 1.751e-05/54.31, allocations: 4.812 kB / 9.593 GB, free: 121.2 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1017): time 0.05599/54.37, allocations: 34.37 MB / 9.626 GB, free: 86.96 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.59e-05/54.37, allocations: 155.4 kB / 9.626 GB, free: 86.79 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002958/54.37, allocations: 224.9 kB / 9.627 GB, free: 86.56 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.003227/54.37, allocations: 187.3 kB / 9.627 GB, free: 86.38 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/54.37, allocations: 144.2 kB / 9.627 GB, free: 86.23 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.184/54.56, allocations: 3.32 MB / 9.63 GB, free: 221.7 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006202/54.56, allocations: 2.259 MB / 9.632 GB, free: 221.6 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.186e-05/54.56, allocations: 324.8 kB / 9.633 GB, free: 221.3 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008425/54.57, allocations: 4.869 MB / 9.637 GB, free: 220.1 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01219/54.58, allocations: 5.442 MB / 9.643 GB, free: 218.3 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02524/54.61, allocations: 11.38 MB / 9.654 GB, free: 214.2 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.76e-05/54.61, allocations: 0.8438 kB / 9.654 GB, free: 214.2 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.05924/54.67, allocations: 38.31 MB / 9.691 GB, free: 186.1 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 5.239e-05/54.67, allocations: 6.188 kB / 9.691 GB, free: 186.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.015e-05/54.67, allocations: 8.609 kB / 9.691 GB, free: 186.1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001335/54.67, allocations: 32 kB / 9.691 GB, free: 186.1 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01258/54.68, allocations: 2.6 MB / 9.694 GB, free: 184.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000254/54.68, allocations: 40.89 kB / 9.694 GB, free: 184.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006915/54.69, allocations: 0.5213 MB / 9.694 GB, free: 183.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004489/54.69, allocations: 0.7574 MB / 9.695 GB, free: 183.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.007133/54.7, allocations: 1.07 MB / 9.696 GB, free: 182.1 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006856/54.71, allocations: 0.7968 MB / 9.697 GB, free: 181.3 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06563/54.77, allocations: 33.96 MB / 9.73 GB, free: 147.6 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.411e-05/54.77, allocations: 97.41 kB / 9.73 GB, free: 147.5 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.521e-05/54.77, allocations: 3.938 kB / 9.73 GB, free: 147.5 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002694/54.77, allocations: 47.81 kB / 9.73 GB, free: 147.4 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01141/54.79, allocations: 5.694 MB / 9.736 GB, free: 141.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.34e-05/54.79, allocations: 0 / 9.736 GB, free: 141.8 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01154/54.8, allocations: 2.585 MB / 9.738 GB, free: 139.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001289/54.8, allocations: 36.55 kB / 9.738 GB, free: 139.2 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003294/54.8, allocations: 0.6949 MB / 9.739 GB, free: 138.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001155/54.8, allocations: 32 kB / 9.739 GB, free: 138.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/54.8, allocations: 3.938 kB / 9.739 GB, free: 138.4 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05926/54.86, allocations: 37.52 MB / 9.776 GB, free: 100.9 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005485/54.87, allocations: 3.101 MB / 9.779 GB, free: 97.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002852/54.87, allocations: 168 kB / 9.779 GB, free: 97.61 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005143/54.87, allocations: 162.6 kB / 9.779 GB, free: 97.45 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002919/54.88, allocations: 0.9279 MB / 9.78 GB, free: 96.52 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003654/54.88, allocations: 0.7638 MB / 9.781 GB, free: 95.76 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001756/54.88, allocations: 156.5 kB / 9.781 GB, free: 95.61 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/54.88, allocations: 0 / 9.781 GB, free: 95.61 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.008778/54.89, allocations: 1.426 MB / 9.782 GB, free: 94.21 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.2395/55.13, allocations: 39 MB / 9.82 GB, free: 210.7 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.1296/55.26, allocations: 75.6 MB / 9.894 GB, free: 137.4 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/55.26, allocations: 4 kB / 9.894 GB, free: 137.4 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.01473/55.27, allocations: 6.926 MB / 9.901 GB, free: 131.6 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00545/55.28, allocations: 335.1 kB / 9.901 GB, free: 131.3 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.257/55.54, allocations: 86.36 MB / 9.986 GB, free: 204.5 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001391/55.54, allocations: 2.171 MB / 9.988 GB, free: 202.7 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.02262/55.56, allocations: 7.347 MB / 9.995 GB, free: 196.8 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00565/55.57, allocations: 2.356 MB / 9.997 GB, free: 195.2 MB / 0.5137 GB Notification: Performance of SimCode: time 1.242e-06/55.57, allocations: 4 kB / 9.997 GB, free: 195.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1446/55.71, allocations: 113 MB / 10.11 GB, free: 87.09 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.03/68.74, allocations: 22.95 kB / 10.11 GB, free: 87.07 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 & python3 -m fmpy simulate --output-file AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 0.001 --interface-type ModelExchange --solver CVode --output-interval 0.01 AdvancedNoise_AdvancedNoise_Examples_RailIrregularities_Comparisons_MinimumAndZeroPhase.fmu > AdvancedNoise_AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase.pipe 2>&1)