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.001823/0.001823, allocations: 112.5 kB / 15.73 MB, free: 76 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.001985/0.001985, allocations: 193.4 kB / 16.67 MB, free: 6.582 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.493/1.493, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1392/0.1392, allocations: 3.888 MB / 294.4 MB, free: 3.293 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 67.89 kB / 406.4 MB, free: 0.668 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2432/0.2452, allocations: 50.18 MB / 456.6 MB, free: 20.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.RailIrregularities.Comparisons.MinimumAndZeroPhase): time 0.002723/0.248, allocations: 2.065 MB / 458.7 MB, free: 18.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006869/0.2549, allocations: 3.912 MB / 462.6 MB, free: 16.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002882/0.2552, allocations: 7 kB / 462.6 MB, free: 16.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002191/0.2555, allocations: 36.08 kB / 462.6 MB, free: 16.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.721e-05/0.2556, allocations: 22.5 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.002749/0.2583, allocations: 0.7906 MB / 463.5 MB, free: 16.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01309/0.2714, allocations: 13.65 MB / 477.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003167/0.2718, allocations: 71.48 kB / 477.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008518/0.2803, allocations: 3.361 MB / 480.5 MB, free: 9.047 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008291/0.2886, allocations: 4.395 MB / 484.9 MB, free: 6.523 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004256/0.2929, allocations: 0.594 MB / 485.5 MB, free: 6.523 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 52.15/52.44, allocations: 8.772 GB / 9.246 GB, free: 217.1 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.003736/52.45, allocations: 2.294 MB / 9.249 GB, free: 217 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.00551/52.45, allocations: 2.542 MB / 9.251 GB, free: 216.5 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0149/52.47, allocations: 8.642 MB / 9.26 GB, free: 214.4 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.426e-06/52.47, allocations: 1.766 kB / 9.26 GB, free: 214.4 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.164e-06/52.47, allocations: 2.656 kB / 9.26 GB, free: 214.4 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0002359/52.47, allocations: 2.531 kB / 9.26 GB, free: 214.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.02088/52.49, allocations: 3.915 MB / 9.263 GB, free: 212.1 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.172e-05/52.49, allocations: 9.5 kB / 9.263 GB, free: 212.1 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002236/52.49, allocations: 0.5594 MB / 9.264 GB, free: 211.7 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00568/52.5, allocations: 0.8126 MB / 9.265 GB, free: 211.4 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01103/52.51, allocations: 3.459 MB / 9.268 GB, free: 208.6 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004033/52.51, allocations: 297.2 kB / 9.268 GB, free: 208.5 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003201/52.51, allocations: 385.6 kB / 9.269 GB, free: 208.3 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02178/52.53, allocations: 8.685 MB / 9.277 GB, free: 203.2 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.236e-05/52.53, allocations: 1 kB / 9.277 GB, free: 203.2 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008637/52.53, allocations: 163.8 kB / 9.277 GB, free: 203.1 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.716e-05/52.53, allocations: 97.03 kB / 9.278 GB, free: 203.1 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.505/53.04, allocations: 198.1 MB / 9.471 GB, free: 195.3 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02891/53.07, allocations: 15.95 MB / 9.487 GB, free: 179.5 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 1.184/54.25, allocations: 153.1 MB / 9.636 GB, free: 208.5 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01007/54.26, allocations: 5.637 MB / 9.642 GB, free: 206.1 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002454/54.26, allocations: 1.001 MB / 9.643 GB, free: 205.5 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001246/54.26, allocations: 136 kB / 9.643 GB, free: 205.4 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1017): time 2.202e-05/54.26, allocations: 0 / 9.643 GB, free: 205.4 MB / 0.545 GB Notification: Performance of matching and sorting (n=1017): time 0.06202/54.33, allocations: 34.38 MB / 9.676 GB, free: 175.9 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001174/54.33, allocations: 161 kB / 9.676 GB, free: 175.8 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003223/54.33, allocations: 221 kB / 9.677 GB, free: 175.5 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.003032/54.33, allocations: 189.7 kB / 9.677 GB, free: 175.4 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.616e-05/54.33, allocations: 146.8 kB / 9.677 GB, free: 175.2 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00554/54.33, allocations: 3.498 MB / 9.68 GB, free: 171.8 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.009569/54.34, allocations: 2.259 MB / 9.683 GB, free: 169.5 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.075e-05/54.34, allocations: 329.8 kB / 9.683 GB, free: 169.2 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009419/54.35, allocations: 4.865 MB / 9.688 GB, free: 164.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01107/54.36, allocations: 5.447 MB / 9.693 GB, free: 158.9 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0235/54.39, allocations: 11.38 MB / 9.704 GB, free: 147.5 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.436e-05/54.39, allocations: 0 / 9.704 GB, free: 147.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.05193/54.44, allocations: 38.33 MB / 9.742 GB, free: 109.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.908e-05/54.44, allocations: 4 kB / 9.742 GB, free: 109.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.437e-05/54.44, allocations: 96 / 9.742 GB, free: 109.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.397e-05/54.44, allocations: 36 kB / 9.742 GB, free: 109.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01186/54.45, allocations: 2.601 MB / 9.744 GB, free: 106.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001561/54.45, allocations: 36 kB / 9.744 GB, free: 106.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005989/54.46, allocations: 0.527 MB / 9.745 GB, free: 105.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003473/54.46, allocations: 0.7605 MB / 9.745 GB, free: 105.2 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.006255/54.47, allocations: 1.066 MB / 9.746 GB, free: 104.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006385/54.47, allocations: 0.8064 MB / 9.747 GB, free: 103.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05982/54.53, allocations: 33.95 MB / 9.78 GB, free: 69.54 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001282/54.53, allocations: 96 kB / 9.78 GB, free: 69.44 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.741e-05/54.53, allocations: 3.938 kB / 9.78 GB, free: 69.44 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003192/54.54, allocations: 52.58 kB / 9.781 GB, free: 69.39 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0119/54.55, allocations: 5.711 MB / 9.786 GB, free: 63.61 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.954e-05/54.55, allocations: 0 / 9.786 GB, free: 63.61 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01263/54.56, allocations: 2.586 MB / 9.789 GB, free: 61.02 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000151/54.56, allocations: 32 kB / 9.789 GB, free: 60.99 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003799/54.56, allocations: 0.698 MB / 9.789 GB, free: 60.29 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001171/54.56, allocations: 32 kB / 9.789 GB, free: 60.26 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/54.56, allocations: 1.859 kB / 9.789 GB, free: 60.26 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2574/54.82, allocations: 37.53 MB / 9.826 GB, free: 209.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005361/54.83, allocations: 3.119 MB / 9.829 GB, free: 208 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001893/54.83, allocations: 161.6 kB / 9.829 GB, free: 207.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004109/54.83, allocations: 156.8 kB / 9.829 GB, free: 207.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001705/54.83, allocations: 0.9233 MB / 9.83 GB, free: 207.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001475/54.84, allocations: 0.7594 MB / 9.831 GB, free: 207.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001434/54.84, allocations: 163.3 kB / 9.831 GB, free: 207.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/54.84, allocations: 4.062 kB / 9.831 GB, free: 207.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005999/54.84, allocations: 1.422 MB / 9.833 GB, free: 206.3 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.05144/54.89, allocations: 39.03 MB / 9.871 GB, free: 168.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02184/54.92, allocations: 12.52 MB / 9.883 GB, free: 156 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/54.92, allocations: 0 / 9.883 GB, free: 156 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.01133/54.93, allocations: 6.918 MB / 9.89 GB, free: 149.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002486/54.93, allocations: 338.3 kB / 9.89 GB, free: 148.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1032/55.03, allocations: 82.72 MB / 9.971 GB, free: 65.76 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001249/55.03, allocations: 2.172 MB / 9.973 GB, free: 63.55 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.02223/55.06, allocations: 7.351 MB / 9.98 GB, free: 56.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006284/55.06, allocations: 2.36 MB / 9.982 GB, free: 54.14 MB / 0.545 GB Notification: Performance of SimCode: time 8.42e-07/55.06, allocations: 0 / 9.982 GB, free: 54.14 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3478/55.41, allocations: 112 MB / 10.09 GB, free: 134.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.87/78.28, allocations: 7.844 kB / 10.09 GB, free: 134.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)