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.004679/0.004679, allocations: 98.19 kB / 15.73 MB, free: 6.012 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.001278/0.001278, allocations: 197.3 kB / 16.67 MB, free: 5.949 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.492/1.492, 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.2044/0.2044, allocations: 3.883 MB / 294.4 MB, free: 3.254 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 63.91 kB / 406.4 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2726/0.2746, allocations: 50.18 MB / 456.6 MB, free: 20.49 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.002054/0.2767, allocations: 1.522 MB / 458.1 MB, free: 19.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001536/0.2782, allocations: 1.146 MB / 459.3 MB, free: 18.65 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.351e-05/0.2783, allocations: 3.938 kB / 459.3 MB, free: 18.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001334/0.2785, allocations: 37.62 kB / 459.3 MB, free: 18.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.473e-05/0.2785, allocations: 22.05 kB / 459.3 MB, free: 18.61 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.0006083/0.2791, allocations: 231.2 kB / 459.6 MB, free: 18.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002225/0.2794, allocations: 265.5 kB / 459.8 MB, free: 18.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.305e-05/0.2794, allocations: 18.27 kB / 459.8 MB, free: 18.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001482/0.2796, allocations: 102.9 kB / 459.9 MB, free: 18.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.85e-05/0.2797, allocations: 74.39 kB / 460 MB, free: 18.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3e-05/0.2797, allocations: 12.06 kB / 460 MB, free: 18.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002356/0.2799, allocations: 175.2 kB / 460.2 MB, free: 18.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.265e-05/0.28, allocations: 29.06 kB / 460.2 MB, free: 18.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.472e-05/0.2801, allocations: 82.72 kB / 460.3 MB, free: 18.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003162/0.2804, allocations: 289.9 kB / 460.6 MB, free: 18.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2804, allocations: 0 / 460.6 MB, free: 18.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2804, allocations: 0 / 460.6 MB, free: 18.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.2804, allocations: 0 / 460.6 MB, free: 18.05 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.001957/0.2824, allocations: 2.272 MB / 462.9 MB, free: 16.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.2824, allocations: 10.12 kB / 462.9 MB, free: 16.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.177e-05/0.2825, allocations: 43.3 kB / 462.9 MB, free: 16.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000711/0.2832, allocations: 105.1 kB / 463 MB, free: 16.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003276/0.2835, allocations: 256.2 kB / 463.3 MB, free: 16.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.725e-05/0.2836, allocations: 10.38 kB / 463.3 MB, free: 16.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.433e-05/0.2836, allocations: 9.656 kB / 463.3 MB, free: 16.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004294/0.2841, allocations: 259.8 kB / 463.5 MB, free: 16.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.2841, allocations: 5.266 kB / 463.5 MB, free: 16.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.926e-05/0.2841, allocations: 4.812 kB / 463.5 MB, free: 16.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.2841, allocations: 0 / 463.5 MB, free: 16.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003952/0.2845, allocations: 220.9 kB / 463.8 MB, free: 16.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002651/0.2848, allocations: 255.7 kB / 464 MB, free: 16.22 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003666/0.2852, allocations: 323.2 kB / 464.3 MB, free: 16.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003274/0.2855, allocations: 298.5 kB / 464.6 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.478e-05/0.2855, allocations: 5.375 kB / 464.6 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00056/0.2861, allocations: 0.5217 MB / 465.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.613e-06/0.2861, allocations: 3.938 kB / 465.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001219/0.2873, allocations: 0.7623 MB / 465.9 MB, free: 15.31 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.964e-05/0.2874, allocations: 165.6 kB / 466.1 MB, free: 15.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002071/0.2876, allocations: 216.8 kB / 466.3 MB, free: 15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.2877, allocations: 28.42 kB / 466.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.898e-05/0.2877, allocations: 116 kB / 466.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.173e-05/0.2878, allocations: 46.02 kB / 466.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.176e-05/0.2879, allocations: 54.45 kB / 466.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.385e-05/0.2879, allocations: 330.3 kB / 466.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002464/0.2882, allocations: 147.7 kB / 467 MB, free: 14.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002139/0.2884, allocations: 138.6 kB / 467.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004903/0.2889, allocations: 465 kB / 467.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.2889, allocations: 0 / 467.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006199/0.2895, allocations: 464.7 kB / 468 MB, free: 13.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.537e-05/0.2896, allocations: 95.97 kB / 468.1 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.2896, allocations: 1.344 kB / 468.1 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.357e-05/0.2897, allocations: 4.609 kB / 468.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000143/0.2898, allocations: 18.5 kB / 468.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.2898, allocations: 0.9062 kB / 468.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.2899, allocations: 17.58 kB / 468.2 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.068e-05/0.29, allocations: 40.77 kB / 468.2 MB, free: 13.87 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.0002141/0.2902, allocations: 255.1 kB / 468.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.329e-05/0.2903, allocations: 37.17 kB / 468.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.196e-05/0.2903, allocations: 15.8 kB / 468.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.2904, allocations: 1.281 kB / 468.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.2904, allocations: 2.328 kB / 468.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.2904, allocations: 0 / 468.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002353/0.2906, allocations: 275.3 kB / 468.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.2906, allocations: 0 / 468.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.109e-05/0.2907, allocations: 10.17 kB / 468.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.576e-06/0.2907, allocations: 2.438 kB / 468.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.244e-05/0.2907, allocations: 18.78 kB / 468.8 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.255e-06/0.2907, allocations: 4.969 kB / 468.8 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.2907, allocations: 5.25 kB / 468.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001006/0.2918, allocations: 0.6912 MB / 469.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001351/0.2919, allocations: 137.4 kB / 469.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.186e-05/0.292, allocations: 26.5 kB / 469.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.2921, allocations: 13.66 kB / 469.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.403e-05/0.2922, allocations: 26.62 kB / 469.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.14e-05/0.2923, allocations: 41.48 kB / 469.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001417/0.2924, allocations: 144.2 kB / 469.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2924, allocations: 0 / 469.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003979/0.2929, allocations: 77.72 kB / 470 MB, free: 12.86 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.001821/0.2947, allocations: 1.391 MB / 471.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001058/0.2958, allocations: 0.7573 MB / 472.1 MB, free: 11.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.2958, allocations: 0 / 472.1 MB, free: 11.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005845/0.2964, allocations: 0.6535 MB / 472.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002629/0.2966, allocations: 32.95 kB / 472.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003753/0.3004, allocations: 2.965 MB / 475.8 MB, free: 9.449 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002776/0.3007, allocations: 0.7355 MB / 476.5 MB, free: 8.742 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001028/0.3008, allocations: 13.73 kB / 476.5 MB, free: 8.742 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.3009, allocations: 52 kB / 476.6 MB, free: 8.703 MB / 350.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3009, allocations: 1.25 kB / 476.6 MB, free: 8.703 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0301/0.331, allocations: 5.942 MB / 482.5 MB, free: 7.145 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.337/8.668, allocations: 16.34 kB / 482.5 MB, free: 7.133 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)