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.00516/0.00516, allocations: 101.5 kB / 15.73 MB, free: 5.965 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.001292/0.001292, allocations: 193.8 kB / 16.67 MB, free: 5.887 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.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02813/0.02813, allocations: 3.908 MB / 294.4 MB, free: 11.01 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001893/0.001893, allocations: 66.38 kB / 406.4 MB, free: 28.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0814/0.08329, allocations: 50.18 MB / 456.6 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedNoise): time 0.002674/0.08597, allocations: 1.466 MB / 458.1 MB, free: 9.027 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001837/0.08781, allocations: 1.051 MB / 459.1 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.378e-05/0.08786, allocations: 4 kB / 459.1 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001348/0.08799, allocations: 11.86 kB / 459.1 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001616/0.08816, allocations: 31.78 kB / 459.2 MB, free: 7.922 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.0005718/0.08873, allocations: 183.4 kB / 459.3 MB, free: 7.742 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001937/0.08892, allocations: 111.7 kB / 459.5 MB, free: 7.633 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.035e-05/0.08901, allocations: 15.98 kB / 459.5 MB, free: 7.617 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.68e-05/0.08911, allocations: 47.78 kB / 459.5 MB, free: 7.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.782e-05/0.08919, allocations: 43.77 kB / 459.6 MB, free: 7.527 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.004e-05/0.08921, allocations: 4 kB / 459.6 MB, free: 7.523 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003101/0.08952, allocations: 167.8 kB / 459.7 MB, free: 7.359 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.503e-05/0.08956, allocations: 19.91 kB / 459.8 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.542e-05/0.08963, allocations: 43.73 kB / 459.8 MB, free: 7.297 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003336/0.08996, allocations: 215.5 kB / 460 MB, free: 7.086 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.08997, allocations: 4 kB / 460 MB, free: 7.082 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.08997, allocations: 0 / 460 MB, free: 7.082 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.478e-06/0.08997, allocations: 3.938 kB / 460 MB, free: 7.078 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.0005627/0.09053, allocations: 430.5 kB / 460.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.09057, allocations: 8.031 kB / 460.4 MB, free: 6.602 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.763e-05/0.09062, allocations: 34.75 kB / 460.5 MB, free: 6.559 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003565/0.09098, allocations: 56.75 kB / 460.5 MB, free: 6.504 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002763/0.09126, allocations: 215 kB / 460.7 MB, free: 6.258 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.329e-05/0.09127, allocations: 384 / 460.7 MB, free: 6.258 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.644e-05/0.09129, allocations: 7.938 kB / 460.7 MB, free: 6.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001883/0.09148, allocations: 89.56 kB / 460.8 MB, free: 6.156 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.09148, allocations: 0 / 460.8 MB, free: 6.156 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.09149, allocations: 0 / 460.8 MB, free: 6.156 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.0915, allocations: 4 kB / 460.8 MB, free: 6.152 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001618/0.09166, allocations: 55.95 kB / 460.9 MB, free: 6.098 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005593/0.09222, allocations: 364.7 kB / 461.2 MB, free: 5.691 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002022/0.09242, allocations: 74.58 kB / 461.3 MB, free: 5.609 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.579e-05/0.09251, allocations: 32.84 kB / 461.4 MB, free: 5.574 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.833e-05/0.09254, allocations: 7.984 kB / 461.4 MB, free: 5.566 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/0.09257, allocations: 38.56 kB / 461.4 MB, free: 5.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.443e-06/0.09257, allocations: 0 / 461.4 MB, free: 5.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0004085/0.09298, allocations: 149.5 kB / 461.5 MB, free: 5.367 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.682e-05/0.09303, allocations: 55.34 kB / 461.6 MB, free: 5.301 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001471/0.09317, allocations: 156.9 kB / 461.8 MB, free: 5.133 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.81e-05/0.09319, allocations: 29.7 kB / 461.8 MB, free: 5.098 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.196e-05/0.09325, allocations: 100.3 kB / 461.9 MB, free: 4.996 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.697e-05/0.09328, allocations: 27.75 kB / 461.9 MB, free: 4.969 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.111e-05/0.09335, allocations: 33.7 kB / 461.9 MB, free: 4.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.0935, allocations: 322.8 kB / 462.3 MB, free: 4.605 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.477e-05/0.09359, allocations: 31.97 kB / 462.3 MB, free: 4.574 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.265e-05/0.09367, allocations: 39.92 kB / 462.3 MB, free: 4.535 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001745/0.09384, allocations: 76.83 kB / 462.4 MB, free: 4.457 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.09385, allocations: 4 kB / 462.4 MB, free: 4.453 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002696/0.09412, allocations: 145.5 kB / 462.5 MB, free: 4.305 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.09413, allocations: 4 kB / 462.5 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.09413, allocations: 3.938 kB / 462.6 MB, free: 4.297 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.09414, allocations: 0 / 462.6 MB, free: 4.297 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.09427, allocations: 19.98 kB / 462.6 MB, free: 4.277 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.09428, allocations: 4.25 kB / 462.6 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.162e-05/0.09433, allocations: 11.89 kB / 462.6 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.547e-05/0.09438, 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.0001028/0.09448, allocations: 130.3 kB / 462.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.615e-05/0.09452, allocations: 7.953 kB / 462.7 MB, free: 4.094 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.717e-05/0.09456, allocations: 16.72 kB / 462.8 MB, free: 4.074 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.09457, allocations: 7.938 kB / 462.8 MB, free: 4.066 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.09457, allocations: 3.938 kB / 462.8 MB, free: 4.062 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.09458, allocations: 0 / 462.8 MB, free: 4.062 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002406/0.09482, allocations: 197.6 kB / 463 MB, free: 3.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.09482, allocations: 0 / 463 MB, free: 3.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.478e-05/0.0949, allocations: 15.98 kB / 463 MB, free: 3.805 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.0949, allocations: 4 kB / 463 MB, free: 3.801 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.09492, allocations: 8 kB / 463 MB, free: 3.793 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.09492, allocations: 0 / 463 MB, free: 3.793 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/0.09493, allocations: 11.91 kB / 463 MB, free: 3.781 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003081/0.09524, allocations: 215.3 kB / 463.2 MB, free: 3.555 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.235e-05/0.09533, allocations: 105 kB / 463.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.92e-05/0.09535, allocations: 0 / 463.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.619e-05/0.09542, allocations: 7.938 kB / 463.3 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.003e-05/0.09547, allocations: 15.86 kB / 463.3 MB, free: 3.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.495e-05/0.09552, allocations: 31.95 kB / 463.4 MB, free: 3.379 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.174e-05/0.09561, allocations: 107.2 kB / 463.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.09561, allocations: 0 / 463.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003198/0.09593, allocations: 55.86 kB / 463.5 MB, free: 3.219 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.001038/0.09697, allocations: 0.8888 MB / 464.4 MB, free: 2.352 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002381/0.09721, allocations: 79.95 kB / 464.5 MB, free: 2.273 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.09721, allocations: 0 / 464.5 MB, free: 2.273 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.997e-05/0.09731, allocations: 43.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.0002422/0.09755, allocations: 7.938 kB / 464.6 MB, free: 2.223 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001868/0.09942, allocations: 1.633 MB / 466.2 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003482/0.09977, allocations: 0.6924 MB / 466.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.531e-05/0.09985, allocations: 32.58 kB / 466.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.984e-05/0.09993, allocations: 35.41 kB / 466.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.09993, allocations: 0 / 466.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02841/0.1283, allocations: 3.625 MB / 470.6 MB, free: 12.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.819/7.947, allocations: 15.72 kB / 470.6 MB, free: 12.16 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AdvancedNoise_AdvancedNoise_Examples_SignalBasedNoise_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 AdvancedNoise_AdvancedNoise_Examples_SignalBasedNoise.fmu > AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.pipe 2>&1)