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.05503/0.05503, allocations: 3.903 MB / 18.87 MB, free: 2.93 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 172.5 kB / 20.49 MB, free: 1.535 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.312/1.312, allocations: 223.3 MB / 245.3 MB, free: 5.344 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000792/0.000792, allocations: 95.06 kB / 297.2 MB, free: 6.594 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003629/0.0003629, allocations: 12 kB / 358.9 MB, free: 8.926 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.201/0.2014, allocations: 51.17 MB / 410 MB, free: 27.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.001178/0.2026, allocations: 1.235 MB / 411.3 MB, free: 26.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001292/0.204, allocations: 1.085 MB / 412.4 MB, free: 25.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.129e-05/0.204, allocations: 0 / 412.4 MB, free: 25.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000109/0.2041, allocations: 27.73 kB / 412.4 MB, free: 25.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.151e-05/0.2042, allocations: 21.44 kB / 412.4 MB, free: 25.27 MB / 298.7 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.000503/0.2047, allocations: 195.5 kB / 412.6 MB, free: 25.08 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001416/0.2049, allocations: 212.6 kB / 412.8 MB, free: 24.87 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.819e-05/0.2049, allocations: 9.547 kB / 412.8 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001244/0.2051, allocations: 108.3 kB / 412.9 MB, free: 24.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.26e-05/0.2052, allocations: 83.64 kB / 413 MB, free: 24.67 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.632e-05/0.2052, allocations: 8.688 kB / 413 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002015/0.2054, allocations: 147.8 kB / 413.1 MB, free: 24.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.112e-05/0.2055, allocations: 21.73 kB / 413.2 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.335e-05/0.2055, allocations: 57.64 kB / 413.2 MB, free: 24.44 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001977/0.2057, allocations: 199.6 kB / 413.4 MB, free: 24.24 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2057, allocations: 0 / 413.4 MB, free: 24.24 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.2057, allocations: 0 / 413.4 MB, free: 24.24 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.678e-06/0.2057, allocations: 1.281 kB / 413.4 MB, free: 24.24 MB / 298.7 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.001643/0.2074, allocations: 2.211 MB / 415.6 MB, free: 21.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.768e-05/0.2074, allocations: 10.12 kB / 415.6 MB, free: 21.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005704/0.208, allocations: 111.7 kB / 415.8 MB, free: 21.85 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002065/0.2082, allocations: 238.7 kB / 416 MB, free: 21.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.087e-05/0.2083, allocations: 8 kB / 416 MB, free: 21.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.643e-05/0.2083, allocations: 12 kB / 416 MB, free: 21.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003352/0.2086, allocations: 259.2 kB / 416.3 MB, free: 21.29 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.2086, allocations: 0 / 416.3 MB, free: 21.29 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.2087, allocations: 8 kB / 416.3 MB, free: 21.28 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.2087, allocations: 3.953 kB / 416.3 MB, free: 21.28 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003236/0.209, allocations: 219.9 kB / 416.5 MB, free: 21.06 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001818/0.2092, allocations: 258.3 kB / 416.7 MB, free: 20.76 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003044/0.2095, allocations: 321.1 kB / 417.1 MB, free: 20.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002745/0.2098, allocations: 301.6 kB / 417.3 MB, free: 20.12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.1e-05/0.2098, allocations: 3.938 kB / 417.3 MB, free: 20.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004007/0.2102, allocations: 0.5194 MB / 417.9 MB, free: 19.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.313e-06/0.2102, allocations: 0 / 417.9 MB, free: 19.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.000945/0.2112, allocations: 0.7582 MB / 418.6 MB, free: 18.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.887e-05/0.2113, allocations: 160.4 kB / 418.8 MB, free: 18.58 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001353/0.2114, allocations: 207.1 kB / 419 MB, free: 18.37 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.2114, allocations: 33.7 kB / 419 MB, free: 18.33 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.818e-05/0.2115, allocations: 112.7 kB / 419.1 MB, free: 18.22 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.344e-05/0.2115, allocations: 47.34 kB / 419.2 MB, free: 18.17 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.176e-05/0.2115, allocations: 4.062 kB / 419.2 MB, free: 18.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.764e-05/0.2116, allocations: 334.8 kB / 419.5 MB, free: 17.83 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002146/0.2118, allocations: 140.2 kB / 419.6 MB, free: 17.69 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001885/0.212, allocations: 144.4 kB / 419.8 MB, free: 17.55 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002339/0.2122, allocations: 238.1 kB / 420 MB, free: 17.31 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2122, allocations: 7.938 kB / 420 MB, free: 17.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005077/0.2128, allocations: 455.8 kB / 420.5 MB, free: 16.84 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.148e-05/0.2128, allocations: 95.36 kB / 420.6 MB, free: 16.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.2128, allocations: 0 / 420.6 MB, free: 16.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.2128, allocations: 4 kB / 420.6 MB, free: 16.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001196/0.213, allocations: 31.97 kB / 420.6 MB, free: 16.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.213, allocations: 7.953 kB / 420.6 MB, free: 16.69 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.897e-05/0.2131, allocations: 23.83 kB / 420.6 MB, free: 16.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.287e-05/0.2131, allocations: 31.95 kB / 420.7 MB, free: 16.64 MB / 298.7 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.0001685/0.2133, allocations: 259.7 kB / 420.9 MB, free: 16.36 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.719e-05/0.2134, allocations: 31.72 kB / 420.9 MB, free: 16.33 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.498e-05/0.2134, allocations: 17.41 kB / 421 MB, free: 16.3 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.2134, allocations: 0 / 421 MB, free: 16.3 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.2134, allocations: 0 / 421 MB, free: 16.3 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.2134, allocations: 11.88 kB / 421 MB, free: 16.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001497/0.2136, allocations: 269.4 kB / 421.2 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.2136, allocations: 3.984 kB / 421.2 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.101e-05/0.2136, allocations: 8 kB / 421.2 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.2137, allocations: 0 / 421.2 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.507e-05/0.2137, allocations: 15.98 kB / 421.3 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.2137, allocations: 4.188 kB / 421.3 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.2137, allocations: 0 / 421.3 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007283/0.2144, allocations: 0.6945 MB / 422 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.428e-05/0.2145, allocations: 132.8 kB / 422.1 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.442e-05/0.2146, allocations: 27.98 kB / 422.1 MB, free: 15.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000112/0.2147, allocations: 19.98 kB / 422.1 MB, free: 15.03 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.917e-05/0.2148, allocations: 19.97 kB / 422.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.72e-05/0.2148, allocations: 40.59 kB / 422.2 MB, free: 14.97 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.558e-05/0.2149, allocations: 143.2 kB / 422.3 MB, free: 14.83 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2149, allocations: 0 / 422.3 MB, free: 14.83 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002739/0.2152, allocations: 76 kB / 422.4 MB, free: 14.75 MB / 298.7 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.0003812/0.2156, allocations: 267.5 kB / 422.7 MB, free: 14.53 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007256/0.2164, allocations: 0.7605 MB / 423.4 MB, free: 13.75 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2164, allocations: 0 / 423.4 MB, free: 13.75 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004742/0.2169, allocations: 0.6471 MB / 424.1 MB, free: 13.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002326/0.2171, allocations: 30.52 kB / 424.1 MB, free: 13.05 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006246/0.2178, allocations: 0.5365 MB / 424.6 MB, free: 12.48 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001354/0.2179, allocations: 0.7317 MB / 425.4 MB, free: 11.72 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.672e-05/0.218, allocations: 20.39 kB / 425.4 MB, free: 11.7 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.245e-05/0.218, allocations: 15.44 kB / 425.4 MB, free: 11.69 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.218, allocations: 0 / 425.4 MB, free: 11.69 MB / 298.7 MB Notification: Performance of Templates: time 0.005549/0.2236, allocations: 3.626 MB / 429 MB, free: 8.09 MB / 298.7 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 -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe 2>&1)