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.001413/0.001413, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001282/0.001282, allocations: 193.1 kB / 16.13 MB, free: 6.66 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.319/1.319, allocations: 222.9 MB / 239.8 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1426/0.1426, allocations: 3.885 MB / 293.8 MB, free: 3.254 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001879, allocations: 59.91 kB / 354.9 MB, free: 3.977 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09436/0.09625, allocations: 50.19 MB / 405.1 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedNoise): time 0.002518/0.09881, allocations: 1.547 MB / 406.6 MB, free: 188 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001714/0.1005, allocations: 1.067 MB / 407.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.259e-05/0.1006, allocations: 4 kB / 407.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001201/0.1008, allocations: 11.86 kB / 407.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001322/0.1009, allocations: 15.94 kB / 407.7 MB, free: 15.08 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.0005112/0.1014, allocations: 155.6 kB / 407.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001411/0.1016, allocations: 103.7 kB / 408 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.322e-05/0.1017, allocations: 15.98 kB / 408 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.817e-05/0.1018, allocations: 43.78 kB / 408 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.51e-05/0.1018, allocations: 39.77 kB / 408.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.808e-05/0.1019, allocations: 4 kB / 408.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002793/0.1021, allocations: 163.8 kB / 408.2 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.978e-05/0.1022, allocations: 27.91 kB / 408.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.567e-05/0.1022, allocations: 31.8 kB / 408.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002879/0.1025, allocations: 203.4 kB / 408.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1026, allocations: 4 kB / 408.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.01e-07/0.1026, allocations: 0 / 408.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.1026, allocations: 0 / 408.5 MB, free: 14.3 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.0005031/0.1031, allocations: 423.3 kB / 408.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.1031, allocations: 8.031 kB / 408.9 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.938e-05/0.1032, allocations: 42.73 kB / 409 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000371/0.1035, allocations: 48.78 kB / 409 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002418/0.1038, allocations: 216.6 kB / 409.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.1038, allocations: 384 / 409.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.691e-05/0.1038, allocations: 7.938 kB / 409.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001805/0.104, allocations: 89.56 kB / 409.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.104, allocations: 0 / 409.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.1041, allocations: 0 / 409.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.1041, allocations: 4 kB / 409.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001496/0.1042, allocations: 63.89 kB / 409.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004968/0.1047, allocations: 352.7 kB / 409.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001872/0.1049, allocations: 86.47 kB / 409.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.288e-05/0.105, allocations: 40.84 kB / 409.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.582e-05/0.1051, allocations: 8.016 kB / 409.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.886e-05/0.1051, allocations: 34.56 kB / 409.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.393e-06/0.1051, allocations: 3.938 kB / 409.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003849/0.1055, allocations: 149.7 kB / 410 MB, free: 12.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.251e-05/0.1055, allocations: 55.41 kB / 410.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/0.1057, allocations: 145 kB / 410.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.1057, allocations: 33.7 kB / 410.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.296e-05/0.1057, allocations: 96.12 kB / 410.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.01e-05/0.1058, allocations: 31.55 kB / 410.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.688e-05/0.1058, allocations: 29.7 kB / 410.4 MB, free: 12.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.284e-05/0.1059, allocations: 322.8 kB / 410.7 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.438e-05/0.106, allocations: 31.92 kB / 410.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.907e-05/0.1061, allocations: 39.92 kB / 410.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001625/0.1063, allocations: 84.83 kB / 410.9 MB, free: 11.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1063, allocations: 0 / 410.9 MB, free: 11.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002543/0.1066, allocations: 133.5 kB / 411 MB, free: 11.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.1066, allocations: 4 kB / 411 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.818e-06/0.1066, allocations: 0 / 411 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.187e-06/0.1066, allocations: 0 / 411 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001335/0.1067, allocations: 31.86 kB / 411 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.1068, allocations: 7.938 kB / 411.1 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.545e-05/0.1068, allocations: 11.98 kB / 411.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.346e-05/0.1069, allocations: 23.95 kB / 411.1 MB, free: 11.46 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.931e-05/0.107, allocations: 122.4 kB / 411.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.882e-05/0.107, allocations: 11.91 kB / 411.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004267/0.1074, allocations: 218 kB / 411.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.372e-05/0.1075, allocations: 4 kB / 411.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.1075, allocations: 3.938 kB / 411.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.1075, allocations: 0 / 411.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003018/0.1078, allocations: 217.6 kB / 411.7 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.1078, allocations: 0 / 411.7 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.14e-05/0.1079, allocations: 19.92 kB / 411.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.1079, allocations: 0 / 411.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.1079, allocations: 8 kB / 411.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.108, allocations: 0 / 411.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.108, allocations: 3.938 kB / 411.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003184/0.1083, allocations: 270.6 kB / 412 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.512e-05/0.1084, allocations: 108.9 kB / 412.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.246e-05/0.1084, allocations: 0 / 412.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.492e-05/0.1085, allocations: 3.984 kB / 412.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.504e-05/0.1085, allocations: 15.92 kB / 412.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.339e-05/0.1086, allocations: 31.95 kB / 412.1 MB, free: 10.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.481e-05/0.1087, allocations: 113.5 kB / 412.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1087, allocations: 0 / 412.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003218/0.109, allocations: 55.98 kB / 412.3 MB, free: 10.18 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.0009147/0.1099, allocations: 0.9286 MB / 413.2 MB, free: 9.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000241/0.1102, allocations: 107.9 kB / 413.3 MB, free: 9.164 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.1102, allocations: 0 / 413.3 MB, free: 9.164 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001606/0.1104, allocations: 127.3 kB / 413.4 MB, free: 9.027 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002611/0.1106, allocations: 11.94 kB / 413.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001764/0.1124, allocations: 1.67 MB / 415.1 MB, free: 7.266 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000254/0.1127, allocations: 0.7083 MB / 415.8 MB, free: 6.531 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.397e-05/0.1128, allocations: 32.34 kB / 415.9 MB, free: 6.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.264e-05/0.1129, allocations: 39.41 kB / 415.9 MB, free: 6.461 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1129, allocations: 0 / 415.9 MB, free: 6.461 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0388/0.1517, allocations: 3.593 MB / 419.5 MB, free: 2.945 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002894/0.152, allocations: 255.4 kB / 419.7 MB, free: 2.688 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.812/1.964, allocations: 0 / 419.7 MB, free: 2.688 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)