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/AdvancedNoise 1.1.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 AdvancedNoise with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/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/AdvancedNoise 1.1.0-master/package.mo): time 0.02684/0.02684, allocations: 3.913 MB / 19.18 MB, free: 2.914 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.0007644/0.0007644, allocations: 174.5 kB / 20.82 MB, free: 1.891 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.273/1.273, allocations: 223.3 MB / 245.6 MB, free: 11.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007161/0.0007161, allocations: 105 kB / 297.6 MB, free: 9.871 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003123/0.0003122, allocations: 8 kB / 359.6 MB, free: 11.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2305/0.2308, allocations: 51.18 MB / 410.7 MB, free: 31.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.001463/0.2324, allocations: 1.26 MB / 412 MB, free: 29.76 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001559/0.2339, allocations: 1.163 MB / 413.2 MB, free: 28.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.446e-05/0.234, allocations: 7.938 kB / 413.2 MB, free: 28.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001199/0.2342, allocations: 21.08 kB / 413.2 MB, free: 28.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.77e-05/0.2342, allocations: 15.88 kB / 413.2 MB, free: 28.55 MB / 302.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.0005323/0.2348, allocations: 204.5 kB / 413.4 MB, free: 28.35 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001542/0.2349, allocations: 223.5 kB / 413.6 MB, free: 28.13 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.051e-05/0.235, allocations: 21.5 kB / 413.6 MB, free: 28.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001314/0.2351, allocations: 99.61 kB / 413.7 MB, free: 28.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.445e-05/0.2352, allocations: 75.55 kB / 413.8 MB, free: 27.94 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.552e-05/0.2353, allocations: 8 kB / 413.8 MB, free: 27.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000203/0.2355, allocations: 159.8 kB / 414 MB, free: 27.78 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4e-05/0.2355, allocations: 27.86 kB / 414 MB, free: 27.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.596e-05/0.2356, allocations: 105.3 kB / 414.1 MB, free: 27.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002642/0.2359, allocations: 273.5 kB / 414.4 MB, free: 27.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2359, allocations: 3.938 kB / 414.4 MB, free: 27.37 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2359, allocations: 1.156 kB / 414.4 MB, free: 27.37 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.2359, allocations: 0 / 414.4 MB, free: 27.37 MB / 302.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.001656/0.2376, allocations: 2.202 MB / 416.6 MB, free: 25.1 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.2376, allocations: 12.03 kB / 416.6 MB, free: 25.09 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.492e-05/0.2377, allocations: 42.73 kB / 416.6 MB, free: 25.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005548/0.2382, allocations: 104.6 kB / 416.7 MB, free: 24.94 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002197/0.2384, allocations: 255.7 kB / 417 MB, free: 24.65 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.11e-05/0.2385, allocations: 12.31 kB / 417 MB, free: 24.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.314e-05/0.2385, allocations: 12.38 kB / 417 MB, free: 24.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003224/0.2388, allocations: 259.4 kB / 417.3 MB, free: 24.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.2388, allocations: 0 / 417.3 MB, free: 24.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.78e-05/0.2389, allocations: 4 kB / 417.3 MB, free: 24.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.2389, allocations: 4 kB / 417.3 MB, free: 24.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003054/0.2392, allocations: 235.8 kB / 417.5 MB, free: 24.12 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00019/0.2394, allocations: 250.2 kB / 417.7 MB, free: 23.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002898/0.2397, allocations: 333.1 kB / 418.1 MB, free: 23.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000255/0.24, allocations: 306 kB / 418.4 MB, free: 23.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.306e-05/0.24, allocations: 7.938 kB / 418.4 MB, free: 23.17 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003828/0.2404, allocations: 0.5248 MB / 418.9 MB, free: 22.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.142e-06/0.2404, allocations: 0 / 418.9 MB, free: 22.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0009129/0.2413, allocations: 0.7777 MB / 419.7 MB, free: 21.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.935e-05/0.2414, allocations: 156.5 kB / 419.8 MB, free: 21.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001428/0.2415, allocations: 211.2 kB / 420 MB, free: 21.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.2415, allocations: 29.7 kB / 420.1 MB, free: 21.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.058e-05/0.2416, allocations: 116.6 kB / 420.2 MB, free: 21.24 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.741e-05/0.2416, allocations: 43.39 kB / 420.2 MB, free: 21.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.822e-05/0.2417, allocations: 33.7 kB / 420.3 MB, free: 21.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.171e-05/0.2417, allocations: 334.8 kB / 420.6 MB, free: 20.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001888/0.2419, allocations: 140.2 kB / 420.7 MB, free: 20.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001764/0.2421, allocations: 152.3 kB / 420.9 MB, free: 20.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004225/0.2425, allocations: 475 kB / 421.3 MB, free: 20.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2426, allocations: 0 / 421.3 MB, free: 20.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004816/0.243, allocations: 471.9 kB / 421.8 MB, free: 19.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.717e-05/0.2431, allocations: 91.38 kB / 421.9 MB, free: 19.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.2431, allocations: 0 / 421.9 MB, free: 19.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.2431, allocations: 0 / 421.9 MB, free: 19.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/0.2433, allocations: 31.91 kB / 421.9 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.2433, allocations: 0 / 421.9 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.937e-05/0.2434, allocations: 27.84 kB / 421.9 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.233e-05/0.2434, allocations: 31.94 kB / 422 MB, free: 19.38 MB / 302.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.000163/0.2436, allocations: 259.7 kB / 422.2 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.504e-05/0.2436, allocations: 27.72 kB / 422.3 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.803e-05/0.2437, allocations: 17.39 kB / 422.3 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-06/0.2437, allocations: 0 / 422.3 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.2437, allocations: 8 kB / 422.3 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.2437, allocations: 0 / 422.3 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001656/0.2439, allocations: 269.4 kB / 422.5 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.2439, allocations: 0 / 422.5 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.47e-05/0.2439, allocations: 15.98 kB / 422.6 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.2439, allocations: 0 / 422.6 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.377e-05/0.244, allocations: 11.98 kB / 422.6 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.244, allocations: 7.875 kB / 422.6 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.244, allocations: 7.984 kB / 422.6 MB, free: 18.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007134/0.2447, allocations: 0.7055 MB / 423.3 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.575e-05/0.2448, allocations: 132.8 kB / 423.4 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.489e-05/0.2449, allocations: 27.92 kB / 423.5 MB, free: 17.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001008/0.245, allocations: 19.98 kB / 423.5 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.782e-05/0.245, allocations: 15.98 kB / 423.5 MB, free: 17.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.476e-05/0.2451, allocations: 39.94 kB / 423.5 MB, free: 17.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.755e-05/0.2452, allocations: 143.2 kB / 423.7 MB, free: 17.56 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2452, allocations: 0 / 423.7 MB, free: 17.56 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002938/0.2455, allocations: 79.98 kB / 423.7 MB, free: 17.48 MB / 302.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.001244/0.2467, allocations: 1.404 MB / 425.1 MB, free: 16.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007221/0.2475, allocations: 0.7641 MB / 425.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2475, allocations: 0 / 425.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004797/0.248, allocations: 0.6548 MB / 426.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002482/0.2482, allocations: 35.86 kB / 426.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002762/0.251, allocations: 3.005 MB / 429.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001396/0.2512, allocations: 0.7355 MB / 430.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.643e-05/0.2512, allocations: 12.55 kB / 430.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.431e-05/0.2513, allocations: 51.41 kB / 430.4 MB, free: 10.65 MB / 302.1 MB Notification: Performance of SimCode: time 3.9e-07/0.2513, allocations: 4 kB / 430.4 MB, free: 10.65 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01364/0.2649, allocations: 5.395 MB / 435.8 MB, free: 5.383 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001868/0.2652, allocations: 263.2 kB / 436.1 MB, free: 5.121 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.729/1.994, allocations: 4 kB / 436.1 MB, free: 5.117 MB / 302.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/linux/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)