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: translateModel(AdvancedNoise.Examples.TimeBasedNoise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise") translateModel(AdvancedNoise.Examples.TimeBasedNoise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.03421/0.03421, allocations: 3.903 MB / 19.95 MB, free: 2.434 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.001078/0.001078, allocations: 178.6 kB / 21.59 MB, free: 1.406 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.319/1.319, allocations: 222.9 MB / 246 MB, free: 10.66 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.001029/0.001029, allocations: 103.5 kB / 297 MB, free: 10.63 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001204, allocations: 51.92 kB / 358.1 MB, free: 13.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2089/0.2102, allocations: 50.18 MB / 408.3 MB, free: 31.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.002161/0.2124, allocations: 1.613 MB / 409.9 MB, free: 30.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001477/0.2139, allocations: 1.172 MB / 411.1 MB, free: 29.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.711e-05/0.2139, allocations: 7.938 kB / 411.1 MB, free: 29.19 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.2141, allocations: 27.67 kB / 411.1 MB, free: 29.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.859e-05/0.2141, allocations: 23.8 kB / 411.1 MB, free: 29.14 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.0005498/0.2147, allocations: 219.3 kB / 411.3 MB, free: 28.92 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001847/0.2149, allocations: 263.4 kB / 411.6 MB, free: 28.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.927e-05/0.215, allocations: 17.55 kB / 411.6 MB, free: 28.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001345/0.2151, allocations: 103.7 kB / 411.7 MB, free: 28.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.765e-05/0.2152, allocations: 79.61 kB / 411.8 MB, free: 28.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.509e-05/0.2152, allocations: 12 kB / 411.8 MB, free: 28.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001965/0.2154, allocations: 171.7 kB / 412 MB, free: 28.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.744e-05/0.2155, allocations: 27.92 kB / 412 MB, free: 28.26 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.576e-05/0.2155, allocations: 83.53 kB / 412.1 MB, free: 28.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002593/0.2158, allocations: 279.3 kB / 412.3 MB, free: 27.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2158, allocations: 4 kB / 412.3 MB, free: 27.9 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2158, allocations: 0 / 412.3 MB, free: 27.9 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.2158, allocations: 4 kB / 412.3 MB, free: 27.89 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.001639/0.2175, allocations: 2.23 MB / 414.6 MB, free: 25.6 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.2175, allocations: 12.03 kB / 414.6 MB, free: 25.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000579/0.2181, allocations: 110.3 kB / 414.7 MB, free: 25.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002197/0.2183, allocations: 247.8 kB / 414.9 MB, free: 25.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.604e-05/0.2184, allocations: 8.375 kB / 414.9 MB, free: 25.19 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.24e-05/0.2184, allocations: 12.38 kB / 415 MB, free: 25.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000314/0.2187, allocations: 265.1 kB / 415.2 MB, free: 24.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.2187, allocations: 0 / 415.2 MB, free: 24.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.608e-05/0.2188, allocations: 4 kB / 415.2 MB, free: 24.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.2188, allocations: 0 / 415.2 MB, free: 24.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003082/0.2191, allocations: 219.8 kB / 415.4 MB, free: 24.69 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001934/0.2193, allocations: 258.2 kB / 415.7 MB, free: 24.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002915/0.2196, allocations: 321.2 kB / 416 MB, free: 24.05 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002475/0.2198, allocations: 301.6 kB / 416.3 MB, free: 23.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.253e-06/0.2199, allocations: 0 / 416.3 MB, free: 23.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003682/0.2202, allocations: 0.5265 MB / 416.8 MB, free: 23.17 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.823e-06/0.2202, allocations: 3.984 kB / 416.8 MB, free: 23.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0008611/0.2211, allocations: 0.7699 MB / 417.6 MB, free: 22.38 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/0.2212, allocations: 156.6 kB / 417.7 MB, free: 22.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001338/0.2213, allocations: 215.1 kB / 418 MB, free: 21.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.469e-05/0.2213, allocations: 25.7 kB / 418 MB, free: 21.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.808e-05/0.2214, allocations: 116.7 kB / 418.1 MB, free: 21.83 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.448e-05/0.2214, allocations: 43.36 kB / 418.1 MB, free: 21.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.47e-05/0.2215, allocations: 57.62 kB / 418.2 MB, free: 21.72 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.816e-05/0.2215, allocations: 330.8 kB / 418.5 MB, free: 21.39 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001799/0.2217, allocations: 136.2 kB / 418.7 MB, free: 21.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001691/0.2219, allocations: 144.4 kB / 418.8 MB, free: 21.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003872/0.2223, allocations: 468.3 kB / 419.3 MB, free: 20.63 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2223, allocations: 0 / 419.3 MB, free: 20.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004626/0.2228, allocations: 456.4 kB / 419.7 MB, free: 20.17 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.749e-05/0.2228, allocations: 95.36 kB / 419.8 MB, free: 20.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.2229, allocations: 0 / 419.8 MB, free: 20.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.2229, allocations: 0 / 419.8 MB, free: 20.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001279/0.223, allocations: 23.98 kB / 419.8 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.223, allocations: 0 / 419.8 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.757e-05/0.2231, allocations: 31.77 kB / 419.8 MB, free: 20.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.095e-05/0.2232, allocations: 31.95 kB / 419.9 MB, free: 19.98 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.0001552/0.2233, allocations: 264.3 kB / 420.1 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.985e-05/0.2234, allocations: 23.81 kB / 420.2 MB, free: 19.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.854e-05/0.2234, allocations: 17.41 kB / 420.2 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.2234, allocations: 4 kB / 420.2 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.2234, allocations: 0 / 420.2 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.2234, allocations: 0 / 420.2 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001669/0.2236, allocations: 273.3 kB / 420.4 MB, free: 19.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.2236, allocations: 4 kB / 420.4 MB, free: 19.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.588e-05/0.2237, allocations: 11.98 kB / 420.5 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.2237, allocations: 0 / 420.5 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.968e-05/0.2237, allocations: 15.98 kB / 420.5 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.2237, allocations: 0 / 420.5 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.2237, allocations: 3.938 kB / 420.5 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006987/0.2244, allocations: 0.7067 MB / 421.2 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.615e-05/0.2245, allocations: 124.9 kB / 421.3 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.511e-05/0.2246, allocations: 23.92 kB / 421.3 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.522e-05/0.2247, allocations: 19.98 kB / 421.4 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.482e-05/0.2248, allocations: 20.17 kB / 421.4 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.637e-05/0.2248, allocations: 43.94 kB / 421.4 MB, free: 18.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.688e-05/0.2249, allocations: 143.2 kB / 421.6 MB, free: 18.17 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2249, allocations: 0 / 421.6 MB, free: 18.17 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003059/0.2253, allocations: 79.98 kB / 421.6 MB, free: 18.09 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.0004223/0.2257, allocations: 271.7 kB / 421.9 MB, free: 17.87 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006957/0.2264, allocations: 0.7563 MB / 422.7 MB, free: 17.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.664e-06/0.2264, allocations: 4 kB / 422.7 MB, free: 17.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004529/0.2269, allocations: 0.6431 MB / 423.3 MB, free: 16.42 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000247/0.2271, allocations: 38.52 kB / 423.3 MB, free: 16.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000695/0.2278, allocations: 0.5554 MB / 423.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000148/0.228, allocations: 0.7313 MB / 424.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.317e-05/0.228, allocations: 12.55 kB / 424.6 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.406e-05/0.2281, allocations: 23.42 kB / 424.7 MB, free: 15.01 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2281, allocations: 0 / 424.7 MB, free: 15.01 MB / 302.1 MB Notification: Performance of Templates: time 0.005974/0.2341, allocations: 3.854 MB / 428.5 MB, free: 11.17 MB / 302.1 MB make -j1 -f AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.makefile (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 & ./AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe 2>&1)