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.02538/0.02538, allocations: 3.909 MB / 18.86 MB, free: 2.801 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.000836/0.000836, allocations: 182.4 kB / 20.49 MB, free: 1.777 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.296/1.296, allocations: 223.2 MB / 245.2 MB, free: 10.06 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.0008676/0.0008676, allocations: 92.59 kB / 297.1 MB, free: 10.53 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002805/0.0002806, allocations: 8 kB / 358.8 MB, free: 12.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2336/0.2339, allocations: 51.17 MB / 410 MB, free: 31.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.00147/0.2355, allocations: 1.238 MB / 411.3 MB, free: 30.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001447/0.2369, allocations: 1.081 MB / 412.3 MB, free: 28.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.739e-05/0.237, allocations: 5.938 kB / 412.3 MB, free: 28.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001608/0.2372, allocations: 31.83 kB / 412.4 MB, free: 28.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.092e-05/0.2373, allocations: 23.91 kB / 412.4 MB, free: 28.9 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.0005732/0.2378, allocations: 187.5 kB / 412.6 MB, free: 28.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000148/0.238, allocations: 132.3 kB / 412.7 MB, free: 28.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.897e-05/0.2381, allocations: 15.23 kB / 412.7 MB, free: 28.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001705/0.2383, allocations: 107.6 kB / 412.8 MB, free: 28.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.894e-05/0.2384, allocations: 71.67 kB / 412.9 MB, free: 28.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.313e-05/0.2384, allocations: 4 kB / 412.9 MB, free: 28.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001885/0.2386, allocations: 132.3 kB / 413 MB, free: 28.26 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.316e-05/0.2386, allocations: 27.86 kB / 413.1 MB, free: 28.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.769e-05/0.2387, allocations: 54.33 kB / 413.1 MB, free: 28.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002125/0.2389, allocations: 200.1 kB / 413.3 MB, free: 27.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.2389, allocations: 0 / 413.3 MB, free: 27.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2389, allocations: 0 / 413.3 MB, free: 27.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.239, allocations: 0 / 413.3 MB, free: 27.98 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.001794/0.2407, allocations: 2.204 MB / 415.5 MB, free: 25.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.2408, allocations: 8.031 kB / 415.5 MB, free: 25.71 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.905e-05/0.2408, allocations: 46.55 kB / 415.6 MB, free: 25.65 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000536/0.2414, allocations: 67.7 kB / 415.6 MB, free: 25.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002623/0.2417, allocations: 246.6 kB / 415.9 MB, free: 25.3 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.11e-05/0.2417, allocations: 14.84 kB / 415.9 MB, free: 25.29 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.508e-05/0.2417, allocations: 8 kB / 415.9 MB, free: 25.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000329/0.2421, allocations: 251.2 kB / 416.1 MB, free: 25.03 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.2421, allocations: 4 kB / 416.1 MB, free: 25.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.992e-05/0.2421, allocations: 7.953 kB / 416.2 MB, free: 25.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.2421, allocations: 3.938 kB / 416.2 MB, free: 25.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002917/0.2424, allocations: 207.9 kB / 416.4 MB, free: 24.81 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001954/0.2426, allocations: 250.2 kB / 416.6 MB, free: 24.51 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002916/0.2429, allocations: 325.3 kB / 416.9 MB, free: 24.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.13e-05/0.2429, allocations: 0 / 416.9 MB, free: 24.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004614/0.2434, allocations: 0.5114 MB / 417.4 MB, free: 23.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.633e-06/0.2434, allocations: 0 / 417.4 MB, free: 23.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0009907/0.2444, allocations: 0.9167 MB / 418.4 MB, free: 22.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.376e-05/0.2445, allocations: 160.5 kB / 418.5 MB, free: 22.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001623/0.2447, allocations: 219 kB / 418.7 MB, free: 22.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.809e-05/0.2447, allocations: 25.7 kB / 418.7 MB, free: 22.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.825e-05/0.2447, allocations: 112.7 kB / 418.9 MB, free: 22.08 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.782e-05/0.2448, allocations: 47.34 kB / 418.9 MB, free: 22.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.505e-05/0.2448, allocations: 8 kB / 418.9 MB, free: 22.03 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.305e-05/0.2449, allocations: 330.8 kB / 419.2 MB, free: 21.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001836/0.2451, allocations: 136.2 kB / 419.4 MB, free: 21.56 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.2452, allocations: 144.4 kB / 419.5 MB, free: 21.42 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002453/0.2455, allocations: 234.1 kB / 419.7 MB, free: 21.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2455, allocations: 0 / 419.7 MB, free: 21.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004983/0.246, allocations: 455.8 kB / 420.2 MB, free: 20.72 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.313e-05/0.2461, allocations: 95.36 kB / 420.3 MB, free: 20.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.2461, allocations: 3.938 kB / 420.3 MB, free: 20.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.2461, allocations: 0 / 420.3 MB, free: 20.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.2463, allocations: 27.98 kB / 420.3 MB, free: 20.58 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.2463, allocations: 3.953 kB / 420.3 MB, free: 20.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.676e-05/0.2464, allocations: 23.84 kB / 420.3 MB, free: 20.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.127e-05/0.2464, allocations: 11.98 kB / 420.3 MB, free: 20.54 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 ($whenCondition1,$whenCondition2,timeBasedNoise1.state[1],timeBasedNoise1.state[2],timeBasedNoise1.state[3],timeBasedNoise1.state[4],timeBasedNoise1.buffer[1],timeBasedNoise1.buffer[2],timeBasedNoise1.bufferStartTime,timeBasedNoise1.r,$whenCondition3,$whenCondition4,timeBasedNoise.state[1],timeBasedNoise.state[2],timeBasedNoise.state[3],timeBasedNoise.state[4],timeBasedNoise.buffer[1],timeBasedNoise.buffer[2],timeBasedNoise.bufferStartTime,timeBasedNoise.r,globalSeed.id_impure,timeBasedNoise.localSeed,timeBasedNoise.actualGlobalSeed,timeBasedNoise1.localSeed,timeBasedNoise1.actualGlobalSeed,globalSeed.seed) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001893/0.2466, allocations: 251.8 kB / 420.6 MB, free: 20.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.65e-05/0.2466, allocations: 27.72 kB / 420.6 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.953e-05/0.2467, allocations: 17.39 kB / 420.6 MB, free: 20.22 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.2467, allocations: 0 / 420.6 MB, free: 20.22 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.2467, allocations: 4 kB / 420.6 MB, free: 20.22 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.2467, allocations: 7.953 kB / 420.6 MB, free: 20.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000157/0.2469, allocations: 269.3 kB / 420.9 MB, free: 19.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.2469, allocations: 0 / 420.9 MB, free: 19.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.262e-05/0.2469, allocations: 8 kB / 420.9 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.247, allocations: 0 / 420.9 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.743e-05/0.247, allocations: 19.98 kB / 420.9 MB, free: 19.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.247, allocations: 3.938 kB / 420.9 MB, free: 19.87 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.247, allocations: 0 / 420.9 MB, free: 19.87 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007276/0.2477, allocations: 0.6885 MB / 421.6 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/0.2478, allocations: 128.8 kB / 421.8 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.847e-05/0.2479, allocations: 24.17 kB / 421.8 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00011/0.248, allocations: 23.98 kB / 421.8 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.067e-05/0.2481, allocations: 27.86 kB / 421.8 MB, free: 18.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.429e-05/0.2481, allocations: 15.98 kB / 421.8 MB, free: 18.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.133e-05/0.2482, allocations: 143.2 kB / 422 MB, free: 18.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2483, allocations: 0 / 422 MB, free: 18.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003251/0.2486, allocations: 79.98 kB / 422.1 MB, free: 18.69 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001301/0.2499, allocations: 1.461 MB / 423.5 MB, free: 17.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007109/0.2506, allocations: 0.7485 MB / 424.3 MB, free: 16.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.2506, allocations: 0 / 424.3 MB, free: 16.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004647/0.2511, allocations: 0.6432 MB / 424.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002023/0.2513, allocations: 32 kB / 424.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008695/0.2522, allocations: 0.7678 MB / 425.7 MB, free: 14.94 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001535/0.2524, allocations: 0.7316 MB / 426.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.133e-05/0.2524, allocations: 20.39 kB / 426.5 MB, free: 14.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.401e-05/0.2525, allocations: 51.42 kB / 426.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2525, allocations: 3.938 kB / 426.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02068/0.2732, allocations: 5.528 MB / 432 MB, free: 8.715 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001873/0.2734, allocations: 233.6 kB / 432.3 MB, free: 8.473 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.73/2.004, allocations: 0 / 432.3 MB, free: 8.473 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)