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.01107/0.01107, allocations: 99.31 kB / 15.73 MB, free: 6.047 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.002374/0.002374, allocations: 187.7 kB / 16.67 MB, free: 5.977 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.48/1.48, allocations: 222.9 MB / 240.4 MB, free: 4.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.1968/0.1968, allocations: 3.885 MB / 294.4 MB, free: 3.23 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 55.91 kB / 406.4 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2774/0.2788, allocations: 50.19 MB / 456.6 MB, free: 20.24 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.002095/0.281, allocations: 1.514 MB / 458.1 MB, free: 19.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001654/0.2826, allocations: 1.15 MB / 459.3 MB, free: 18.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.325e-05/0.2827, allocations: 6.969 kB / 459.3 MB, free: 18.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001378/0.2829, allocations: 32.92 kB / 459.3 MB, free: 18.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.002e-05/0.283, allocations: 23.17 kB / 459.3 MB, free: 18.36 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.0007867/0.2838, allocations: 230.2 kB / 459.5 MB, free: 18.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002417/0.284, allocations: 267.2 kB / 459.8 MB, free: 18.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.067e-05/0.2841, allocations: 10.66 kB / 459.8 MB, free: 18.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001579/0.2842, allocations: 111.2 kB / 459.9 MB, free: 18.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.121e-05/0.2843, allocations: 74.81 kB / 460 MB, free: 18.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.829e-05/0.2844, allocations: 12.44 kB / 460 MB, free: 18.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002469/0.2846, allocations: 176.8 kB / 460.2 MB, free: 17.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.001e-05/0.2847, allocations: 25.45 kB / 460.2 MB, free: 17.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.216e-05/0.2848, allocations: 90.97 kB / 460.3 MB, free: 17.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003232/0.2851, allocations: 283 kB / 460.6 MB, free: 17.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.2851, allocations: 0 / 460.6 MB, free: 17.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2851, allocations: 3 kB / 460.6 MB, free: 17.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.2851, allocations: 0 / 460.6 MB, free: 17.8 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.002011/0.2872, allocations: 2.232 MB / 462.8 MB, free: 16.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.2872, allocations: 9.719 kB / 462.8 MB, free: 16.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.89e-05/0.2873, allocations: 43 kB / 462.9 MB, free: 16.65 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006766/0.2879, allocations: 101 kB / 463 MB, free: 16.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002764/0.2882, allocations: 252 kB / 463.2 MB, free: 16.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.2883, allocations: 3.594 kB / 463.2 MB, free: 16.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.483e-05/0.2883, allocations: 14.81 kB / 463.2 MB, free: 16.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004121/0.2887, allocations: 261 kB / 463.5 MB, free: 16.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.2887, allocations: 0 / 463.5 MB, free: 16.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.941e-05/0.2888, allocations: 8.75 kB / 463.5 MB, free: 16.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.2888, allocations: 0 / 463.5 MB, free: 16.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003852/0.2892, allocations: 218 kB / 463.7 MB, free: 16.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002424/0.2894, allocations: 263.7 kB / 464 MB, free: 16.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000357/0.2898, allocations: 322.4 kB / 464.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003663/0.2902, allocations: 299.6 kB / 464.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.532e-05/0.2902, allocations: 1.406 kB / 464.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004947/0.2907, allocations: 0.5207 MB / 465.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.342e-06/0.2907, allocations: 1.156 kB / 465.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.00118/0.2919, allocations: 0.766 MB / 465.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.975e-05/0.292, allocations: 168.6 kB / 466 MB, free: 14.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002162/0.2922, allocations: 217.2 kB / 466.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.973e-05/0.2922, allocations: 28.86 kB / 466.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.319e-05/0.2923, allocations: 111.4 kB / 466.4 MB, free: 14.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.335e-05/0.2924, allocations: 46.64 kB / 466.4 MB, free: 14.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.2925, allocations: 53.16 kB / 466.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.648e-05/0.2926, allocations: 335.2 kB / 466.8 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002459/0.2928, allocations: 134.9 kB / 466.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002269/0.293, allocations: 143.8 kB / 467.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005111/0.2936, allocations: 460.8 kB / 467.5 MB, free: 13.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.2936, allocations: 0 / 467.5 MB, free: 13.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.00059/0.2942, allocations: 465.6 kB / 468 MB, free: 13.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.55e-05/0.2943, allocations: 95.28 kB / 468.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.331e-06/0.2943, allocations: 0 / 468.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.2943, allocations: 2.031 kB / 468.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.2944, allocations: 22.2 kB / 468.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.2944, allocations: 0 / 468.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.2946, allocations: 25.97 kB / 468.1 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-05/0.2946, allocations: 37.03 kB / 468.2 MB, free: 13.67 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.0002025/0.2948, allocations: 271.4 kB / 468.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.887e-05/0.2949, allocations: 25.69 kB / 468.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.248e-05/0.2949, allocations: 15.55 kB / 468.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.2949, allocations: 4.844 kB / 468.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.2949, allocations: 1.375 kB / 468.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.295, allocations: 0 / 468.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002462/0.2952, allocations: 271.7 kB / 468.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.2952, allocations: 4 kB / 468.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.426e-05/0.2953, allocations: 10.11 kB / 468.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.2953, allocations: 1.938 kB / 468.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.092e-05/0.2953, allocations: 15.5 kB / 468.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.2953, allocations: 0.7031 kB / 468.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2953, allocations: 1.375 kB / 468.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008845/0.2962, allocations: 0.6948 MB / 469.5 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.2964, allocations: 132.6 kB / 469.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.692e-05/0.2964, allocations: 27.91 kB / 469.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.2966, allocations: 13.34 kB / 469.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.655e-05/0.2967, allocations: 23.09 kB / 469.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.644e-05/0.2967, allocations: 40.59 kB / 469.7 MB, free: 12.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00012/0.2969, allocations: 144.2 kB / 469.8 MB, free: 12.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2969, allocations: 192 / 469.8 MB, free: 12.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003625/0.2972, allocations: 82.42 kB / 469.9 MB, free: 12.66 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.001478/0.2987, allocations: 1.402 MB / 471.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000969/0.2997, allocations: 0.7497 MB / 472.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2997, allocations: 1.406 kB / 472.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006114/0.3003, allocations: 0.6493 MB / 472.7 MB, free: 11.01 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002786/0.3006, allocations: 36.41 kB / 472.7 MB, free: 10.99 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003504/0.3041, allocations: 2.962 MB / 475.7 MB, free: 9.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001673/0.3043, allocations: 0.7348 MB / 476.4 MB, free: 8.543 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.562e-05/0.3044, allocations: 14.42 kB / 476.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.78e-05/0.3045, allocations: 53.44 kB / 476.5 MB, free: 8.504 MB / 350.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3045, allocations: 0 / 476.5 MB, free: 8.504 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02708/0.3315, allocations: 6.07 MB / 482.6 MB, free: 6.938 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.783/8.115, allocations: 23.39 kB / 482.6 MB, free: 6.918 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)