Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.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.SignalBasedNoise,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_SignalBasedNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.SignalBasedNoise,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_SignalBasedNoise",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.005207/0.005207, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001168/0.001168, allocations: 190.2 kB / 16.67 MB, free: 5.969 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.03052/0.03052, allocations: 3.917 MB / 294.5 MB, free: 11.01 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 71.42 kB / 406.4 MB, free: 28.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09068/0.09202, allocations: 50.18 MB / 456.6 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedNoise): time 0.00288/0.09494, allocations: 1.474 MB / 458.1 MB, free: 9.031 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001993/0.09696, allocations: 1.044 MB / 459.1 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.488e-05/0.09707, allocations: 4 kB / 459.1 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001511/0.09723, allocations: 15.86 kB / 459.1 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001875/0.09744, allocations: 31.78 kB / 459.2 MB, free: 7.93 MB / 334.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.SignalBasedNoise.signalBasedNoise.generator.initialState' contains a call to impure function 'AdvancedNoise.Examples.SignalBasedNoise.signalBasedNoise.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.SignalBasedNoise.signalBasedNoise.initialState' contains a call to impure function 'AdvancedNoise.Examples.SignalBasedNoise.signalBasedNoise.convertRealToIntegers'. Notification: Performance of NFTyping.typeClassSections: time 0.0006936/0.09814, allocations: 179.4 kB / 459.3 MB, free: 7.754 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001927/0.09835, allocations: 119.7 kB / 459.5 MB, free: 7.637 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.09847, allocations: 11.98 kB / 459.5 MB, free: 7.625 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001081/0.09858, allocations: 47.78 kB / 459.5 MB, free: 7.578 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.669e-05/0.09867, allocations: 51.77 kB / 459.6 MB, free: 7.527 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.988e-05/0.09869, allocations: 4 kB / 459.6 MB, free: 7.523 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003012/0.099, allocations: 159.8 kB / 459.7 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.552e-05/0.09906, allocations: 27.91 kB / 459.8 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.388e-05/0.09912, allocations: 39.73 kB / 459.8 MB, free: 7.301 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004193/0.09955, allocations: 215.5 kB / 460 MB, free: 7.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.09956, allocations: 0 / 460 MB, free: 7.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.09957, allocations: 0 / 460 MB, free: 7.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.09958, allocations: 0 / 460 MB, free: 7.09 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005973/0.1002, allocations: 430.5 kB / 460.4 MB, free: 6.621 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.1002, allocations: 12.03 kB / 460.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.185e-05/0.1003, allocations: 34.75 kB / 460.5 MB, free: 6.566 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004227/0.1007, allocations: 52.77 kB / 460.5 MB, free: 6.516 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002964/0.101, allocations: 215 kB / 460.7 MB, free: 6.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.101, allocations: 4.375 kB / 460.7 MB, free: 6.266 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.363e-05/0.1011, allocations: 11.94 kB / 460.7 MB, free: 6.254 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002843/0.1014, allocations: 85.52 kB / 460.8 MB, free: 6.164 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.1014, allocations: 0 / 460.8 MB, free: 6.164 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.1014, allocations: 0 / 460.8 MB, free: 6.164 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.1014, allocations: 0 / 460.8 MB, free: 6.164 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001442/0.1016, allocations: 59.95 kB / 460.9 MB, free: 6.105 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005443/0.1021, allocations: 352.7 kB / 461.2 MB, free: 5.711 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002056/0.1023, allocations: 86.56 kB / 461.3 MB, free: 5.617 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.07e-05/0.1024, allocations: 40.78 kB / 461.4 MB, free: 5.574 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.019e-05/0.1025, allocations: 4 kB / 461.4 MB, free: 5.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.154e-05/0.1025, allocations: 38.56 kB / 461.4 MB, free: 5.523 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 3.015e-06/0.1025, allocations: 3.984 kB / 461.4 MB, free: 5.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005104/0.103, allocations: 153.5 kB / 461.6 MB, free: 5.363 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.857e-05/0.1031, allocations: 55.5 kB / 461.6 MB, free: 5.297 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000195/0.1033, allocations: 157.1 kB / 461.8 MB, free: 5.129 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.312e-05/0.1034, allocations: 25.7 kB / 461.8 MB, free: 5.098 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.874e-05/0.1034, allocations: 96.12 kB / 461.9 MB, free: 5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.783e-05/0.1035, allocations: 35.73 kB / 461.9 MB, free: 4.965 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.142e-05/0.1036, allocations: 33.7 kB / 462 MB, free: 4.926 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.1038, allocations: 318.8 kB / 462.3 MB, free: 4.605 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.1039, allocations: 31.98 kB / 462.3 MB, free: 4.574 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.44e-05/0.104, allocations: 43.91 kB / 462.3 MB, free: 4.531 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001915/0.1042, allocations: 76.83 kB / 462.4 MB, free: 4.453 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1042, allocations: 0 / 462.4 MB, free: 4.453 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002986/0.1045, allocations: 137.5 kB / 462.5 MB, free: 4.312 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.1045, allocations: 11.94 kB / 462.6 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.1046, allocations: 0 / 462.6 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/0.1046, allocations: 0 / 462.6 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001501/0.1047, allocations: 23.97 kB / 462.6 MB, free: 4.277 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.849e-06/0.1048, allocations: 3.938 kB / 462.6 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.152e-05/0.1048, allocations: 11.89 kB / 462.6 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.139e-05/0.1049, allocations: 23.95 kB / 462.6 MB, free: 4.238 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (globalSeed.seed,signalBasedNoise.actualGlobalSeed,globalSeed.id_impure,signalBasedNoise.localSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0002394/0.1051, allocations: 126.3 kB / 462.7 MB, free: 4.105 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.633e-05/0.1052, allocations: 7.953 kB / 462.8 MB, free: 4.098 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.573e-05/0.1053, allocations: 24.58 kB / 462.8 MB, free: 4.07 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.1053, allocations: 0 / 462.8 MB, free: 4.07 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.659e-06/0.1053, allocations: 3.938 kB / 462.8 MB, free: 4.066 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1053, allocations: 0 / 462.8 MB, free: 4.066 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002802/0.1056, allocations: 201.6 kB / 463 MB, free: 3.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1056, allocations: 0 / 463 MB, free: 3.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.924e-05/0.1057, allocations: 19.98 kB / 463 MB, free: 3.801 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.1057, allocations: 4 kB / 463 MB, free: 3.797 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.428e-05/0.1057, allocations: 4 kB / 463 MB, free: 3.793 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.1057, allocations: 4 kB / 463 MB, free: 3.789 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.1057, allocations: 3.938 kB / 463 MB, free: 3.785 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003123/0.106, allocations: 215.4 kB / 463.2 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.289e-05/0.1061, allocations: 101 kB / 463.3 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.479e-05/0.1062, allocations: 4 kB / 463.3 MB, free: 3.438 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.056e-05/0.1063, allocations: 4 kB / 463.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.74e-05/0.1063, allocations: 23.8 kB / 463.4 MB, free: 3.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.07e-05/0.1064, allocations: 23.95 kB / 463.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.841e-05/0.1065, allocations: 107.3 kB / 463.5 MB, free: 3.281 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1065, allocations: 0 / 463.5 MB, free: 3.281 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003437/0.1068, allocations: 55.86 kB / 463.5 MB, free: 3.227 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (signalBasedNoise.localSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001214/0.108, allocations: 0.8793 MB / 464.4 MB, free: 2.363 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002358/0.1083, allocations: 87.89 kB / 464.5 MB, free: 2.277 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1083, allocations: 0 / 464.5 MB, free: 2.277 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001067/0.1084, allocations: 47.91 kB / 464.5 MB, free: 2.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002682/0.1087, allocations: 14.19 kB / 464.6 MB, free: 2.219 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001878/0.1106, allocations: 1.625 MB / 466.2 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003603/0.111, allocations: 0.7001 MB / 466.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.879e-05/0.111, allocations: 32.58 kB / 466.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.023e-05/0.1111, allocations: 31.42 kB / 466.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1111, allocations: 0 / 466.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02499/0.1361, allocations: 3.609 MB / 470.6 MB, free: 12.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.703/7.839, allocations: 18.02 kB / 470.6 MB, free: 12.18 MB / 350.1 MB (rm -f AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.sim & python3 -m fmpy simulate --output-file AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 AdvancedNoise_AdvancedNoise_Examples_SignalBasedNoise.fmu > AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.pipe 2>&1)