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.001218/0.001218, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001375/0.001375, allocations: 191.9 kB / 16.25 MB, free: 6.633 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.228/1.228, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1534/0.1534, allocations: 3.89 MB / 294 MB, free: 3.219 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001086/0.001086, allocations: 59.91 kB / 355.1 MB, free: 3.871 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07814/0.07924, allocations: 50.18 MB / 405.2 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.002526/0.0818, allocations: 1.599 MB / 406.8 MB, free: 36 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001836/0.08366, allocations: 1.161 MB / 408 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.0838, allocations: 3.938 kB / 408 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001397/0.08394, allocations: 23.8 kB / 408 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.332e-05/0.08406, allocations: 23.84 kB / 408.1 MB, free: 14.82 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.0006895/0.08476, allocations: 199.5 kB / 408.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002569/0.08503, allocations: 271.5 kB / 408.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.152e-05/0.08508, allocations: 17.55 kB / 408.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001607/0.08525, allocations: 95.67 kB / 408.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.094e-05/0.08535, allocations: 83.55 kB / 408.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.993e-05/0.08538, allocations: 12 kB / 408.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002551/0.08564, allocations: 175.8 kB / 408.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.054e-05/0.08569, allocations: 23.86 kB / 408.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.802e-05/0.08579, allocations: 91.52 kB / 409 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003381/0.08613, allocations: 279.5 kB / 409.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.08614, allocations: 0 / 409.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.08615, allocations: 0 / 409.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.08616, allocations: 0 / 409.3 MB, free: 13.59 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.002075/0.08824, allocations: 2.24 MB / 411.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.08829, allocations: 11.97 kB / 411.5 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.766e-05/0.08834, allocations: 42.73 kB / 411.6 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006231/0.08897, allocations: 100.6 kB / 411.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002591/0.08924, allocations: 255.7 kB / 411.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.957e-05/0.08927, allocations: 12.38 kB / 411.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.615e-05/0.0893, allocations: 8.375 kB / 411.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003687/0.08967, allocations: 258 kB / 412.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.08969, allocations: 0 / 412.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.811e-05/0.08971, allocations: 7.938 kB / 412.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.08972, allocations: 0 / 412.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000336/0.09006, allocations: 223.8 kB / 412.4 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002321/0.09031, allocations: 262.3 kB / 412.7 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003375/0.09065, allocations: 321.3 kB / 413 MB, free: 9.688 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002976/0.09096, allocations: 297.7 kB / 413.3 MB, free: 9.391 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.197e-05/0.09098, allocations: 7.922 kB / 413.3 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004581/0.09145, allocations: 0.5185 MB / 413.8 MB, free: 8.809 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.212e-06/0.09146, allocations: 0 / 413.8 MB, free: 8.809 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001034/0.0925, allocations: 0.7623 MB / 414.6 MB, free: 8.027 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.541e-05/0.09258, allocations: 160.5 kB / 414.7 MB, free: 7.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001747/0.09277, allocations: 219 kB / 414.9 MB, free: 7.617 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.007e-05/0.09279, allocations: 25.7 kB / 415 MB, free: 7.586 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.455e-05/0.09285, allocations: 112.7 kB / 415.1 MB, free: 7.473 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.18e-05/0.0929, allocations: 47.3 kB / 415.1 MB, free: 7.426 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.018e-05/0.09299, allocations: 53.69 kB / 415.2 MB, free: 7.367 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.59e-05/0.09309, allocations: 334.8 kB / 415.5 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002043/0.0933, allocations: 136.2 kB / 415.6 MB, free: 6.895 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001947/0.0935, allocations: 140.4 kB / 415.8 MB, free: 6.758 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004781/0.09399, allocations: 464.4 kB / 416.2 MB, free: 6.277 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.094, allocations: 0 / 416.2 MB, free: 6.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005587/0.09456, allocations: 467.1 kB / 416.7 MB, free: 5.805 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.836e-05/0.09464, allocations: 95.38 kB / 416.8 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.09465, allocations: 0 / 416.8 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.09467, allocations: 4 kB / 416.8 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/0.0948, allocations: 23.97 kB / 416.8 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.09481, allocations: 0 / 416.8 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.62e-05/0.09492, allocations: 15.91 kB / 416.8 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.152e-05/0.09497, allocations: 35.94 kB / 416.8 MB, free: 5.621 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.0002044/0.09519, allocations: 256.3 kB / 417.1 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.736e-05/0.09524, allocations: 23.81 kB / 417.1 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.212e-05/0.09528, allocations: 25.33 kB / 417.1 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.09529, allocations: 4 kB / 417.1 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.09529, allocations: 0 / 417.1 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.0953, allocations: 7.922 kB / 417.2 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001994/0.09551, allocations: 277.5 kB / 417.4 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.09552, allocations: 4 kB / 417.4 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.537e-05/0.09558, allocations: 11.92 kB / 417.4 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.09559, allocations: 4 kB / 417.4 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.767e-05/0.09562, allocations: 11.98 kB / 417.5 MB, free: 4.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.09563, allocations: 0 / 417.5 MB, free: 4.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.09563, allocations: 3.984 kB / 417.5 MB, free: 4.926 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008172/0.09646, allocations: 0.6975 MB / 418.2 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.09658, allocations: 132.8 kB / 418.3 MB, free: 4.047 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.414e-05/0.09665, allocations: 27.92 kB / 418.3 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.09676, allocations: 11.98 kB / 418.3 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.805e-05/0.09684, allocations: 27.92 kB / 418.4 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.392e-05/0.0969, allocations: 39.94 kB / 418.4 MB, free: 3.941 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001067/0.09701, allocations: 143.2 kB / 418.5 MB, free: 3.801 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.09702, allocations: 0 / 418.5 MB, free: 3.801 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003726/0.09739, allocations: 79.98 kB / 418.6 MB, free: 3.723 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.001416/0.09882, allocations: 1.382 MB / 420 MB, free: 2.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008238/0.09965, allocations: 0.7602 MB / 420.8 MB, free: 1.555 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.09966, allocations: 0 / 420.8 MB, free: 1.555 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005873/0.1003, allocations: 0.647 MB / 421.4 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002338/0.1005, allocations: 38.77 kB / 421.4 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1334/0.2339, allocations: 2.97 MB / 424.4 MB, free: 49.26 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001079/0.234, allocations: 0.7328 MB / 425.1 MB, free: 48.56 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.242e-05/0.2341, allocations: 12.12 kB / 425.2 MB, free: 48.56 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.23e-05/0.2342, allocations: 57.05 kB / 425.2 MB, free: 48.55 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2342, allocations: 0 / 425.2 MB, free: 48.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01292/0.2471, allocations: 5.718 MB / 430.9 MB, free: 48 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000154/0.2473, allocations: 253.5 kB / 431.2 MB, free: 47.74 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.714/1.961, allocations: 0 / 431.2 MB, free: 47.74 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)