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.001072/0.001072, allocations: 108 kB / 15.63 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.001197/0.001197, allocations: 195.7 kB / 16.56 MB, free: 6.637 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.314/1.314, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1347/0.1347, allocations: 3.889 MB / 294.3 MB, free: 3.32 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 59.91 kB / 355.6 MB, free: 3.488 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08985/0.09102, allocations: 50.19 MB / 405.8 MB, free: 1.258 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedNoise): time 0.002697/0.09378, allocations: 1.467 MB / 407.3 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002007/0.0958, allocations: 1.048 MB / 408.3 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.075e-05/0.09587, allocations: 0 / 408.3 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001312/0.09601, allocations: 15.81 kB / 408.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001678/0.0962, allocations: 23.8 kB / 408.4 MB, free: 14.68 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.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.0005857/0.0968, allocations: 187.4 kB / 408.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001654/0.09698, allocations: 119.8 kB / 408.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.0971, allocations: 15.98 kB / 408.7 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.378e-05/0.0972, allocations: 39.8 kB / 408.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.936e-05/0.09729, allocations: 47.75 kB / 408.8 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.334e-05/0.09732, allocations: 8 kB / 408.8 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003064/0.09764, allocations: 171.8 kB / 408.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.056e-05/0.09769, allocations: 15.88 kB / 409 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.803e-05/0.09777, allocations: 39.78 kB / 409 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003164/0.0981, allocations: 203.5 kB / 409.2 MB, free: 13.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.09812, allocations: 4 kB / 409.2 MB, free: 13.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.09812, allocations: 0 / 409.2 MB, free: 13.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.09813, allocations: 0 / 409.2 MB, free: 13.85 MB / 350.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.0006372/0.09878, allocations: 431.2 kB / 409.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.09883, allocations: 8.031 kB / 409.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.545e-05/0.09889, allocations: 34.75 kB / 409.7 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003853/0.09928, allocations: 52.7 kB / 409.7 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000278/0.09957, allocations: 217.8 kB / 409.9 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.474e-05/0.0996, allocations: 8.375 kB / 409.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.429e-05/0.09962, allocations: 3.938 kB / 409.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001925/0.09981, allocations: 85.52 kB / 410 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/0.09983, allocations: 0 / 410 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.187e-05/0.09986, allocations: 8 kB / 410 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.09987, allocations: 3.984 kB / 410 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001474/0.1, allocations: 55.95 kB / 410.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005362/0.1006, allocations: 364.7 kB / 410.4 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001993/0.1008, allocations: 78.48 kB / 410.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.792e-05/0.1009, allocations: 48.77 kB / 410.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.524e-05/0.1009, allocations: 4.141 kB / 410.6 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.29e-05/0.1009, allocations: 30.56 kB / 410.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.322e-06/0.1009, allocations: 4 kB / 410.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0004109/0.1014, allocations: 145.5 kB / 410.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.1014, allocations: 55.41 kB / 410.8 MB, free: 12.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001343/0.1015, allocations: 151.9 kB / 410.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.156e-05/0.1016, allocations: 29.7 kB / 411 MB, free: 11.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.85e-05/0.1016, allocations: 96.12 kB / 411.1 MB, free: 11.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.167e-05/0.1017, allocations: 27.56 kB / 411.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.504e-05/0.1018, allocations: 33.69 kB / 411.1 MB, free: 11.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.1019, allocations: 318.8 kB / 411.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.634e-05/0.102, allocations: 39.97 kB / 411.5 MB, free: 11.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.65e-05/0.102, allocations: 35.86 kB / 411.5 MB, free: 11.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000168/0.1022, allocations: 84.83 kB / 411.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1022, allocations: 0 / 411.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002535/0.1025, allocations: 141.4 kB / 411.7 MB, free: 11.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.1025, allocations: 4 kB / 411.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.1025, allocations: 0 / 411.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.1025, allocations: 4 kB / 411.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.1027, allocations: 15.98 kB / 411.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/0.1027, allocations: 7.938 kB / 411.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.706e-05/0.1028, allocations: 4 kB / 411.8 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.751e-05/0.1028, allocations: 28.27 kB / 411.8 MB, free: 11 MB / 350.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 9.998e-05/0.1029, allocations: 134.9 kB / 411.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.711e-05/0.103, allocations: 7.906 kB / 411.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.169e-05/0.103, allocations: 20.66 kB / 412 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.103, allocations: 0 / 412 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.103, allocations: 3.938 kB / 412 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.103, allocations: 0 / 412 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002248/0.1033, allocations: 217.4 kB / 412.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1033, allocations: 0 / 412.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.177e-05/0.1034, allocations: 11.98 kB / 412.2 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.1034, allocations: 4 kB / 412.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.161e-05/0.1034, allocations: 4 kB / 412.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.1034, allocations: 3.984 kB / 412.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.1034, allocations: 3.938 kB / 412.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003668/0.1038, allocations: 223.3 kB / 412.4 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.38e-05/0.1039, allocations: 96.98 kB / 412.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.988e-05/0.1039, allocations: 0 / 412.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.823e-05/0.104, allocations: 4 kB / 412.5 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.63e-05/0.104, allocations: 15.92 kB / 412.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.087e-05/0.1041, allocations: 29.27 kB / 412.6 MB, free: 10.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.544e-05/0.1042, allocations: 112.4 kB / 412.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1042, allocations: 0 / 412.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003224/0.1045, allocations: 47.98 kB / 412.7 MB, free: 9.992 MB / 350.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.000889/0.1054, allocations: 0.8912 MB / 413.6 MB, free: 9.121 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002307/0.1056, allocations: 87.88 kB / 413.7 MB, free: 9.035 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1057, allocations: 7.938 kB / 413.7 MB, free: 9.027 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.654e-05/0.1058, allocations: 43.91 kB / 413.7 MB, free: 8.984 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002482/0.106, allocations: 11.94 kB / 413.8 MB, free: 8.973 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001724/0.1078, allocations: 1.618 MB / 415.4 MB, free: 7.277 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002455/0.108, allocations: 0.6924 MB / 416.1 MB, free: 6.559 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.544e-05/0.1081, allocations: 28.58 kB / 416.1 MB, free: 6.531 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.12e-05/0.1082, allocations: 39.41 kB / 416.1 MB, free: 6.492 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1082, allocations: 0 / 416.1 MB, free: 6.492 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02058/0.1288, allocations: 3.56 MB / 419.7 MB, free: 2.984 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.972/6.101, allocations: 8.062 kB / 419.7 MB, free: 2.977 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)