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.0008299/0.0008299, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.004334/0.004334, allocations: 170.5 kB / 16.27 MB, free: 6.648 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.298/1.298, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1311/0.1311, allocations: 3.89 MB / 295.3 MB, free: 3.922 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000316/0.0003161, allocations: 12 kB / 357.3 MB, free: 3.078 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09401/0.09434, allocations: 51.17 MB / 408.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedNoise): time 0.001409/0.09578, allocations: 1.202 MB / 409.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00159/0.09739, allocations: 1.044 MB / 410.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.956e-05/0.09744, allocations: 0 / 410.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001088/0.09756, allocations: 11.88 kB / 410.8 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001295/0.0977, allocations: 19.84 kB / 410.8 MB, free: 13.56 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.0004238/0.09813, allocations: 151.7 kB / 410.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001378/0.09828, allocations: 115.7 kB / 411 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.354e-05/0.09838, allocations: 11.98 kB / 411.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.875e-05/0.09846, allocations: 43.78 kB / 411.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.608e-05/0.09854, allocations: 39.78 kB / 411.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.393e-05/0.09856, allocations: 0 / 411.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002481/0.09881, allocations: 163.8 kB / 411.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.847e-05/0.09886, allocations: 23.86 kB / 411.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.298e-05/0.09892, allocations: 57.48 kB / 411.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002586/0.09918, allocations: 203.5 kB / 411.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.09919, allocations: 0 / 411.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.0992, allocations: 4 kB / 411.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.647e-06/0.09921, allocations: 4 kB / 411.6 MB, free: 12.75 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.0004347/0.09965, allocations: 403.4 kB / 412 MB, free: 12.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.09969, allocations: 8.031 kB / 412 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.041e-05/0.09974, allocations: 42.73 kB / 412 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00033/0.1001, allocations: 52.72 kB / 412.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002286/0.1003, allocations: 211.3 kB / 412.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.302e-05/0.1003, allocations: 384 / 412.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.171e-05/0.1004, allocations: 15.94 kB / 412.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001703/0.1005, allocations: 89.5 kB / 412.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.812e-06/0.1006, allocations: 0 / 412.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.067e-05/0.1006, allocations: 0 / 412.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.898e-06/0.1006, allocations: 4 kB / 412.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000133/0.1007, allocations: 59.95 kB / 412.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005036/0.1012, allocations: 356.6 kB / 412.8 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001783/0.1014, allocations: 90.5 kB / 412.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.667e-05/0.1015, allocations: 36.84 kB / 412.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.163e-05/0.1015, allocations: 0 / 412.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.184e-05/0.1016, allocations: 34.56 kB / 413 MB, free: 11.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 9.01e-07/0.1016, allocations: 3.938 kB / 413 MB, free: 11.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003544/0.1019, allocations: 149.8 kB / 413.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.45e-05/0.102, allocations: 59.34 kB / 413.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001367/0.1021, allocations: 146.4 kB / 413.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.1022, allocations: 25.7 kB / 413.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.974e-05/0.1022, allocations: 96.12 kB / 413.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.705e-05/0.1022, allocations: 31.7 kB / 413.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.114e-05/0.1023, allocations: 21.7 kB / 413.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.028e-05/0.1024, allocations: 322.8 kB / 413.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.768e-05/0.1025, allocations: 35.92 kB / 413.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.979e-05/0.1025, allocations: 35.98 kB / 413.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001459/0.1027, allocations: 76.83 kB / 413.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1027, allocations: 3.984 kB / 413.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002312/0.1029, allocations: 133.5 kB / 414.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.103, allocations: 15.94 kB / 414.1 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.496e-06/0.103, allocations: 0 / 414.1 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.002e-05/0.103, allocations: 3.938 kB / 414.1 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/0.1031, allocations: 19.98 kB / 414.1 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.1031, allocations: 11.98 kB / 414.1 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.441e-05/0.1032, allocations: 0 / 414.1 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.366e-05/0.1032, allocations: 27.95 kB / 414.2 MB, free: 9.945 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 8.268e-05/0.1033, allocations: 122.4 kB / 414.3 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.317e-05/0.1033, allocations: 11.81 kB / 414.3 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003836/0.1037, allocations: 214 kB / 414.5 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-05/0.1038, allocations: 4 kB / 414.5 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.1038, allocations: 3.938 kB / 414.5 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.1038, allocations: 3.984 kB / 414.5 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002834/0.1041, allocations: 221.6 kB / 414.7 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.1041, allocations: 4 kB / 414.7 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.449e-05/0.1042, allocations: 11.98 kB / 414.7 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.1042, allocations: 7.938 kB / 414.7 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.1042, allocations: 0 / 414.7 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.1042, allocations: 0 / 414.7 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.1042, allocations: 3.938 kB / 414.7 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003046/0.1045, allocations: 274.8 kB / 415 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.938e-05/0.1046, allocations: 108.9 kB / 415.1 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.096e-05/0.1046, allocations: 4 kB / 415.1 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.845e-05/0.1047, allocations: 8 kB / 415.1 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.331e-05/0.1048, allocations: 11.92 kB / 415.1 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.294e-05/0.1048, allocations: 28.89 kB / 415.2 MB, free: 8.828 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.84e-05/0.1049, allocations: 112.8 kB / 415.3 MB, free: 8.719 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1049, allocations: 0 / 415.3 MB, free: 8.719 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003213/0.1052, allocations: 51.98 kB / 415.3 MB, free: 8.668 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: 5 ($cse2[1],$cse2[2],$cse4[1],$cse4[2],signalBasedNoise.localSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 7 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * 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.0008954/0.1061, allocations: 0.9261 MB / 416.3 MB, free: 7.758 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002282/0.1064, allocations: 107.9 kB / 416.4 MB, free: 7.652 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1064, allocations: 0 / 416.4 MB, free: 7.652 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001488/0.1065, allocations: 115.6 kB / 416.5 MB, free: 7.527 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002878/0.1068, allocations: 16.16 kB / 416.5 MB, free: 7.512 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001606/0.1085, allocations: 1.691 MB / 418.2 MB, free: 5.734 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002262/0.1087, allocations: 0.7043 MB / 418.9 MB, free: 5.004 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.896e-05/0.1088, allocations: 32.33 kB / 418.9 MB, free: 4.973 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.048e-05/0.1089, allocations: 39.42 kB / 419 MB, free: 4.934 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1089, allocations: 0 / 419 MB, free: 4.934 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01299/0.1219, allocations: 3.477 MB / 422.4 MB, free: 1.562 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001889/0.1221, allocations: 266.7 kB / 422.7 MB, free: 1.293 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.779/1.902, allocations: 0 / 422.7 MB, free: 1.293 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)