Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.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.TimeBasedNoise,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.TimeBasedNoise,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise",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.0009511/0.0009511, allocations: 91.22 kB / 15.36 MB, free: 0.7383 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.006327/0.006327, allocations: 172.9 kB / 16.26 MB, free: 6.613 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.242/1.242, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1474/0.1474, allocations: 3.886 MB / 295.3 MB, free: 3.961 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002951/0.0002953, allocations: 11.98 kB / 357.3 MB, free: 3.121 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08616/0.08647, allocations: 51.19 MB / 408.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.001394/0.08789, allocations: 1.256 MB / 409.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001816/0.08972, allocations: 1.169 MB / 410.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.362e-05/0.08979, allocations: 7.938 kB / 411 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001116/0.08992, allocations: 27.8 kB / 411 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.225e-05/0.08999, allocations: 15.86 kB / 411 MB, free: 13.39 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.0005685/0.09056, allocations: 195.5 kB / 411.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002049/0.09078, allocations: 227.5 kB / 411.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.975e-05/0.09083, allocations: 9.562 kB / 411.4 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001568/0.091, allocations: 95.66 kB / 411.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.713e-05/0.0911, allocations: 75.56 kB / 411.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.193e-05/0.09114, allocations: 8 kB / 411.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002459/0.09139, allocations: 167.8 kB / 411.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.186e-05/0.09144, allocations: 27.86 kB / 411.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001013/0.09155, allocations: 109.2 kB / 411.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002977/0.09185, allocations: 267.5 kB / 412.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.09186, allocations: 0 / 412.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.09187, allocations: 4 kB / 412.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.09188, allocations: 0 / 412.2 MB, free: 12.23 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.002196/0.09408, allocations: 2.201 MB / 414.4 MB, free: 9.957 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.09414, allocations: 8.031 kB / 414.4 MB, free: 9.949 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.269e-05/0.09419, allocations: 46.67 kB / 414.4 MB, free: 9.895 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000593/0.09479, allocations: 104.6 kB / 414.5 MB, free: 9.793 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002938/0.0951, allocations: 259.6 kB / 414.8 MB, free: 9.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.427e-05/0.09513, allocations: 12.38 kB / 414.8 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.556e-05/0.09517, allocations: 12.38 kB / 414.8 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004098/0.09559, allocations: 260.8 kB / 415 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.09561, allocations: 0 / 415 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.884e-05/0.09563, allocations: 4 kB / 415 MB, free: 9.207 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.09564, allocations: 0 / 415 MB, free: 9.207 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003691/0.09601, allocations: 231.8 kB / 415.3 MB, free: 8.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002588/0.09628, allocations: 254.3 kB / 415.5 MB, free: 8.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004066/0.0967, allocations: 329.3 kB / 415.8 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003541/0.09706, allocations: 301.7 kB / 416.1 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.276e-05/0.09708, allocations: 0 / 416.1 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005251/0.09762, allocations: 0.5365 MB / 416.7 MB, free: 7.449 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.002e-06/0.09763, allocations: 0 / 416.7 MB, free: 7.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.00116/0.09879, allocations: 0.77 MB / 417.4 MB, free: 6.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.09891, allocations: 164.6 kB / 417.6 MB, free: 6.469 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000216/0.09913, allocations: 211 kB / 417.8 MB, free: 6.254 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.814e-05/0.09917, allocations: 29.7 kB / 417.8 MB, free: 6.219 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.689e-05/0.09925, allocations: 116.6 kB / 418 MB, free: 6.102 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.018e-05/0.09931, allocations: 47.39 kB / 418 MB, free: 6.055 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.673e-05/0.09938, allocations: 37.7 kB / 418 MB, free: 6.012 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.09951, allocations: 330.8 kB / 418.4 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002385/0.09976, allocations: 140.2 kB / 418.5 MB, free: 5.539 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002154/0.09998, allocations: 144.4 kB / 418.6 MB, free: 5.398 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006224/0.1006, allocations: 476.6 kB / 419.1 MB, free: 4.906 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.1006, allocations: 4 kB / 419.1 MB, free: 4.902 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006563/0.1013, allocations: 466.9 kB / 419.6 MB, free: 4.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.037e-05/0.1014, allocations: 95.36 kB / 419.7 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.1014, allocations: 0 / 419.7 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.1014, allocations: 4 kB / 419.7 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001247/0.1016, allocations: 19.98 kB / 419.7 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.01e-06/0.1016, allocations: 4 kB / 419.7 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.746e-05/0.1017, allocations: 19.91 kB / 419.7 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.355e-05/0.1017, allocations: 35.94 kB / 419.7 MB, free: 4.242 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: 26 (globalSeed.seed,timeBasedNoise1.actualGlobalSeed,timeBasedNoise1.localSeed,timeBasedNoise.actualGlobalSeed,timeBasedNoise.localSeed,globalSeed.id_impure,timeBasedNoise.r,timeBasedNoise.bufferStartTime,timeBasedNoise.buffer[2],timeBasedNoise.buffer[1],timeBasedNoise.state[4],timeBasedNoise.state[3],timeBasedNoise.state[2],timeBasedNoise.state[1],$whenCondition4,$whenCondition3,timeBasedNoise1.r,timeBasedNoise1.bufferStartTime,timeBasedNoise1.buffer[2],timeBasedNoise1.buffer[1],timeBasedNoise1.state[4],timeBasedNoise1.state[3],timeBasedNoise1.state[2],timeBasedNoise1.state[1],$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 2 * 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.0002406/0.102, allocations: 264.3 kB / 420 MB, free: 3.961 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.323e-05/0.102, allocations: 31.72 kB / 420 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.538e-05/0.1021, allocations: 21.33 kB / 420 MB, free: 3.902 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.1021, allocations: 4 kB / 420.1 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.207e-06/0.1021, allocations: 0 / 420.1 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.1021, allocations: 0 / 420.1 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002331/0.1023, allocations: 273.3 kB / 420.3 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1024, allocations: 0 / 420.3 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.852e-05/0.1024, allocations: 15.98 kB / 420.3 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.1024, allocations: 0 / 420.3 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.264e-05/0.1025, allocations: 19.98 kB / 420.4 MB, free: 3.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.1025, allocations: 0 / 420.4 MB, free: 3.547 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1025, allocations: 0 / 420.4 MB, free: 3.547 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008936/0.1034, allocations: 0.7039 MB / 421.1 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001324/0.1035, allocations: 132.7 kB / 421.2 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.078e-05/0.1036, allocations: 28.11 kB / 421.2 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/0.1037, allocations: 23.98 kB / 421.2 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.554e-05/0.1038, allocations: 27.86 kB / 421.3 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.816e-05/0.1038, allocations: 36.59 kB / 421.3 MB, free: 2.547 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001109/0.104, allocations: 143.2 kB / 421.4 MB, free: 2.406 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.104, allocations: 0 / 421.4 MB, free: 2.406 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003168/0.1043, allocations: 79.98 kB / 421.5 MB, free: 2.328 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition3,$whenCondition4,timeBasedNoise.state[1],timeBasedNoise.state[2],timeBasedNoise.state[3],timeBasedNoise.state[4],timeBasedNoise.buffer[1],timeBasedNoise.buffer[2],timeBasedNoise.bufferStartTime,timeBasedNoise.r,$whenCondition1,$whenCondition2,timeBasedNoise1.state[1],timeBasedNoise1.state[2],timeBasedNoise1.state[3],timeBasedNoise1.state[4],timeBasedNoise1.buffer[1],timeBasedNoise1.buffer[2],timeBasedNoise1.bufferStartTime,timeBasedNoise1.r) * Number of discrete states: 20 (timeBasedNoise1.buffer[2],timeBasedNoise1.buffer[1],timeBasedNoise1.r,timeBasedNoise1.bufferStartTime,timeBasedNoise1.state[4],timeBasedNoise1.state[3],timeBasedNoise1.state[2],timeBasedNoise1.state[1],$whenCondition2,$whenCondition1,timeBasedNoise.buffer[2],timeBasedNoise.buffer[1],timeBasedNoise.r,timeBasedNoise.bufferStartTime,timeBasedNoise.state[4],timeBasedNoise.state[3],timeBasedNoise.state[2],timeBasedNoise.state[1],$whenCondition4,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.001605/0.1059, allocations: 1.405 MB / 422.9 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008918/0.1068, allocations: 0.7641 MB / 423.7 MB, free: 140 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.1068, allocations: 0 / 423.7 MB, free: 140 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.16/0.2668, allocations: 0.6462 MB / 424.3 MB, free: 46.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003239/0.2672, allocations: 32.77 kB / 424.4 MB, free: 46.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002931/0.2701, allocations: 3.001 MB / 427.4 MB, free: 45.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000137/0.2703, allocations: 0.7276 MB / 428.1 MB, free: 44.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.959e-05/0.2703, allocations: 16.16 kB / 428.1 MB, free: 44.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.595e-05/0.2704, allocations: 52.03 kB / 428.2 MB, free: 44.92 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2704, allocations: 0.6562 kB / 428.2 MB, free: 44.92 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01429/0.2847, allocations: 5.409 MB / 433.6 MB, free: 44.48 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001233/0.2849, allocations: 250 kB / 433.8 MB, free: 44.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.801/2.086, allocations: 0 / 433.8 MB, free: 44.23 MB / 350.1 MB (rm -f AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.fmu > AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe 2>&1)