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.06507/0.06507, allocations: 3.904 MB / 18.89 MB, free: 3.113 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.001427/0.001427, allocations: 180.5 kB / 20.51 MB, free: 2.09 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.452/1.452, allocations: 223.2 MB / 245.3 MB, free: 9.898 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.0008078/0.0008075, allocations: 103.3 kB / 297.2 MB, free: 9.754 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003393/0.0003394, allocations: 15.94 kB / 359 MB, free: 11.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2846/0.285, allocations: 51.18 MB / 410.1 MB, free: 31.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.001557/0.2866, allocations: 1.234 MB / 411.4 MB, free: 29.9 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001485/0.2881, allocations: 1.083 MB / 412.5 MB, free: 28.81 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.735e-05/0.2882, allocations: 4 kB / 412.5 MB, free: 28.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001352/0.2884, allocations: 23.78 kB / 412.5 MB, free: 28.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.958e-05/0.2884, allocations: 23.8 kB / 412.5 MB, free: 28.76 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.0008445/0.2893, allocations: 192.6 kB / 412.7 MB, free: 28.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001727/0.2895, allocations: 211.5 kB / 412.9 MB, free: 28.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.723e-05/0.2895, allocations: 15.86 kB / 412.9 MB, free: 28.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001488/0.2897, allocations: 103.6 kB / 413 MB, free: 28.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001096/0.2898, allocations: 83.64 kB / 413.1 MB, free: 28.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.527e-05/0.2899, allocations: 8 kB / 413.1 MB, free: 28.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000255/0.2901, allocations: 143.8 kB / 413.2 MB, free: 28.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.1e-05/0.2902, allocations: 26.08 kB / 413.3 MB, free: 28 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.882e-05/0.2902, allocations: 57.62 kB / 413.3 MB, free: 27.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002239/0.2905, allocations: 197.9 kB / 413.5 MB, free: 27.74 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.2905, allocations: 0 / 413.5 MB, free: 27.74 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.2905, allocations: 0 / 413.5 MB, free: 27.74 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.2905, allocations: 3.938 kB / 413.5 MB, free: 27.74 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.001841/0.2923, allocations: 2.205 MB / 415.7 MB, free: 25.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.2924, allocations: 12.03 kB / 415.7 MB, free: 25.45 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.993e-05/0.2925, allocations: 42.5 kB / 415.8 MB, free: 25.4 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006002/0.2931, allocations: 111.7 kB / 415.9 MB, free: 25.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002452/0.2933, allocations: 242.6 kB / 416.1 MB, free: 25.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.058e-05/0.2933, allocations: 11.98 kB / 416.1 MB, free: 25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.978e-05/0.2934, allocations: 8 kB / 416.1 MB, free: 25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004174/0.2938, allocations: 255.2 kB / 416.4 MB, free: 24.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.2938, allocations: 0 / 416.4 MB, free: 24.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.012e-05/0.2938, allocations: 11.95 kB / 416.4 MB, free: 24.72 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.2939, allocations: 4 kB / 416.4 MB, free: 24.72 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003108/0.2942, allocations: 215.9 kB / 416.6 MB, free: 24.51 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000213/0.2944, allocations: 262.2 kB / 416.9 MB, free: 24.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003009/0.2947, allocations: 321.2 kB / 417.2 MB, free: 23.87 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002556/0.295, allocations: 297.7 kB / 417.5 MB, free: 23.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.338e-06/0.295, allocations: 0 / 417.5 MB, free: 23.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003974/0.2954, allocations: 0.5232 MB / 418 MB, free: 22.99 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.182e-06/0.2954, allocations: 0 / 418 MB, free: 22.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001048/0.2965, allocations: 0.7665 MB / 418.8 MB, free: 22.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.375e-05/0.2966, allocations: 160.5 kB / 418.9 MB, free: 22.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001783/0.2967, allocations: 207.1 kB / 419.1 MB, free: 21.81 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.034e-05/0.2968, allocations: 29.7 kB / 419.2 MB, free: 21.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.091e-05/0.2968, allocations: 112.7 kB / 419.3 MB, free: 21.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.674e-05/0.2969, allocations: 51.34 kB / 419.3 MB, free: 21.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.22e-05/0.2969, allocations: 7.938 kB / 419.3 MB, free: 21.6 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.297, allocations: 330.9 kB / 419.6 MB, free: 21.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001938/0.2972, allocations: 144.2 kB / 419.8 MB, free: 21.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001773/0.2974, allocations: 140.4 kB / 419.9 MB, free: 20.99 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002494/0.2977, allocations: 238.1 kB / 420.2 MB, free: 20.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.2977, allocations: 8 kB / 420.2 MB, free: 20.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005189/0.2982, allocations: 463.7 kB / 420.6 MB, free: 20.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.815e-05/0.2983, allocations: 96.61 kB / 420.7 MB, free: 20.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.2983, allocations: 0 / 420.7 MB, free: 20.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.2983, allocations: 4 kB / 420.7 MB, free: 20.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.2984, allocations: 28.12 kB / 420.7 MB, free: 20.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.2985, allocations: 3.984 kB / 420.8 MB, free: 20.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001591/0.2986, allocations: 31.77 kB / 420.8 MB, free: 20.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/0.2988, allocations: 31.95 kB / 420.8 MB, free: 20.07 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.0001896/0.299, allocations: 255.7 kB / 421.1 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.136e-05/0.299, allocations: 35.7 kB / 421.1 MB, free: 19.76 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.389e-05/0.299, allocations: 17.41 kB / 421.1 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.2991, allocations: 0 / 421.1 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.2991, allocations: 3.953 kB / 421.1 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.2991, allocations: 0 / 421.1 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001774/0.2993, allocations: 269.3 kB / 421.4 MB, free: 19.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.2993, allocations: 0 / 421.4 MB, free: 19.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.457e-05/0.2993, allocations: 11.98 kB / 421.4 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.2993, allocations: 0 / 421.4 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.813e-05/0.2994, allocations: 19.98 kB / 421.4 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.2994, allocations: 0 / 421.4 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.2994, allocations: 7.938 kB / 421.4 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007491/0.3001, allocations: 0.6907 MB / 422.1 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/0.3003, allocations: 132.8 kB / 422.2 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.96e-05/0.3003, allocations: 27.98 kB / 422.3 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.59e-05/0.3004, allocations: 16 kB / 422.3 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.217e-05/0.3005, allocations: 19.97 kB / 422.3 MB, free: 18.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.309e-05/0.3006, allocations: 39.94 kB / 422.3 MB, free: 18.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.281e-05/0.3007, allocations: 143.2 kB / 422.5 MB, free: 18.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3007, allocations: 0 / 422.5 MB, free: 18.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003315/0.301, allocations: 87.98 kB / 422.6 MB, free: 18.18 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.001478/0.3025, allocations: 1.387 MB / 424 MB, free: 16.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007004/0.3032, allocations: 0.7525 MB / 424.7 MB, free: 16.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3032, allocations: 0 / 424.7 MB, free: 16.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006121/0.3039, allocations: 0.651 MB / 425.4 MB, free: 15.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000269/0.3041, allocations: 38.16 kB / 425.4 MB, free: 15.31 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0021/0.3062, allocations: 1.656 MB / 427.1 MB, free: 13.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003348/0.3066, allocations: 0.7317 MB / 427.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.771e-05/0.3066, allocations: 20.53 kB / 427.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.284e-05/0.3067, allocations: 51.41 kB / 427.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3067, allocations: 0 / 427.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01598/0.3227, allocations: 5.553 MB / 433.4 MB, free: 7.355 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002794/0.323, allocations: 234.1 kB / 433.6 MB, free: 7.117 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.927/2.25, allocations: 0 / 433.6 MB, free: 7.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)