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.001122/0.001122, 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.001225/0.001225, allocations: 193 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.413/1.413, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1564/0.1564, allocations: 3.887 MB / 294.3 MB, free: 3.199 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 59.91 kB / 355.6 MB, free: 3.523 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09566/0.09696, allocations: 50.2 MB / 405.8 MB, free: 1.285 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedNoise): time 0.002827/0.09982, allocations: 1.464 MB / 407.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002067/0.1019, allocations: 1.048 MB / 408.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.276e-05/0.102, allocations: 0 / 408.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001544/0.1022, allocations: 15.81 kB / 408.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002092/0.1024, allocations: 23.86 kB / 408.3 MB, free: 14.71 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.0007389/0.1032, allocations: 191.2 kB / 408.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001747/0.1034, allocations: 115.8 kB / 408.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001008/0.1035, allocations: 15.98 kB / 408.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.625e-05/0.1036, allocations: 39.84 kB / 408.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.26e-05/0.1037, allocations: 47.77 kB / 408.7 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.353e-05/0.1037, allocations: 4 kB / 408.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003122/0.104, allocations: 171.7 kB / 408.9 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.189e-05/0.1041, allocations: 23.91 kB / 408.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.473e-05/0.1042, allocations: 35.8 kB / 408.9 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003512/0.1045, allocations: 203.5 kB / 409.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.1045, allocations: 3.984 kB / 409.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1045, allocations: 0 / 409.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.1046, allocations: 0 / 409.1 MB, free: 13.88 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.0006347/0.1052, allocations: 427.3 kB / 409.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.1053, allocations: 12.03 kB / 409.6 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.272e-05/0.1053, allocations: 38.67 kB / 409.6 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004608/0.1058, allocations: 52.78 kB / 409.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003194/0.1061, allocations: 213.6 kB / 409.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.76e-05/0.1062, allocations: 8.375 kB / 409.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.186e-05/0.1062, allocations: 7.938 kB / 409.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001943/0.1064, allocations: 81.58 kB / 410 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.1064, allocations: 0 / 410 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.585e-05/0.1064, allocations: 4 kB / 410 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.1064, allocations: 0 / 410 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001506/0.1066, allocations: 59.89 kB / 410 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005427/0.1071, allocations: 360.6 kB / 410.4 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002061/0.1074, allocations: 78.53 kB / 410.5 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.723e-05/0.1075, allocations: 40.84 kB / 410.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.447e-05/0.1075, allocations: 7.922 kB / 410.5 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.742e-05/0.1075, allocations: 42.56 kB / 410.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.493e-06/0.1075, allocations: 0 / 410.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0004209/0.108, allocations: 157.6 kB / 410.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.814e-05/0.108, allocations: 51.41 kB / 410.8 MB, free: 12.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001509/0.1082, allocations: 147.9 kB / 410.9 MB, free: 11.92 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.1082, allocations: 33.69 kB / 410.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.359e-05/0.1082, allocations: 96.14 kB / 411 MB, free: 11.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.821e-05/0.1083, allocations: 31.55 kB / 411.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.065e-05/0.1084, allocations: 25.7 kB / 411.1 MB, free: 11.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.1085, allocations: 322.8 kB / 411.4 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.777e-05/0.1086, allocations: 35.98 kB / 411.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.939e-05/0.1087, allocations: 35.97 kB / 411.5 MB, free: 11.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001743/0.1089, allocations: 88.92 kB / 411.6 MB, free: 11.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1089, allocations: 4 kB / 411.6 MB, free: 11.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002602/0.1091, allocations: 133.4 kB / 411.7 MB, free: 11.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.1091, allocations: 4 kB / 411.7 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.1092, allocations: 4.312 kB / 411.7 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.1092, allocations: 0 / 411.7 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001456/0.1093, allocations: 23.97 kB / 411.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.462e-05/0.1094, allocations: 3.938 kB / 411.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.419e-05/0.1094, allocations: 4 kB / 411.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.185e-05/0.1095, allocations: 35.94 kB / 411.8 MB, free: 11.02 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.511e-05/0.1096, allocations: 122.9 kB / 411.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.845e-05/0.1096, allocations: 7.906 kB / 411.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.245e-05/0.1097, allocations: 20.7 kB / 411.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.1097, allocations: 0 / 411.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.1097, allocations: 7.875 kB / 411.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.1097, allocations: 0 / 411.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002162/0.1099, allocations: 209.5 kB / 412.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.1099, allocations: 0 / 412.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.311e-05/0.11, allocations: 19.98 kB / 412.1 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.11, allocations: 0 / 412.1 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.1101, allocations: 3.984 kB / 412.1 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1101, allocations: 3.938 kB / 412.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.1101, allocations: 3.938 kB / 412.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000293/0.1104, allocations: 223.3 kB / 412.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.133e-05/0.1105, allocations: 93 kB / 412.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.357e-05/0.1105, allocations: 7.984 kB / 412.5 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.979e-05/0.1106, allocations: 8 kB / 412.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.729e-05/0.1106, allocations: 11.92 kB / 412.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.873e-05/0.1107, allocations: 24.89 kB / 412.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.071e-05/0.1108, allocations: 108.8 kB / 412.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1108, allocations: 0 / 412.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000339/0.1111, allocations: 51.98 kB / 412.7 MB, free: 10.02 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.000903/0.112, allocations: 0.8825 MB / 413.6 MB, free: 9.156 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002317/0.1123, allocations: 87.94 kB / 413.6 MB, free: 9.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1123, allocations: 0 / 413.6 MB, free: 9.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000101/0.1124, allocations: 51.84 kB / 413.7 MB, free: 9.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000261/0.1127, allocations: 11.92 kB / 413.7 MB, free: 9.008 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002117/0.1148, allocations: 1.614 MB / 415.3 MB, free: 7.316 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003442/0.1152, allocations: 0.7041 MB / 416 MB, free: 6.586 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.785e-05/0.1153, allocations: 24.58 kB / 416 MB, free: 6.562 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.905e-05/0.1154, allocations: 31.42 kB / 416.1 MB, free: 6.531 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1154, allocations: 0 / 416.1 MB, free: 6.531 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02053/0.1359, allocations: 3.567 MB / 419.6 MB, free: 3.016 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.535/7.67, allocations: 10.61 kB / 419.7 MB, free: 3.008 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)