Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.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: translateModel(AdvancedNoise.Examples.SignalBasedNoise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise") translateModel(AdvancedNoise.Examples.SignalBasedNoise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000848/0.000848, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007149/0.007149, allocations: 172.1 kB / 16.26 MB, free: 6.613 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.569/1.569, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.2044/0.2044, allocations: 3.882 MB / 295.3 MB, free: 3.922 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004074/0.0004074, allocations: 8 kB / 357.2 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1422, allocations: 51.16 MB / 408.4 MB, free: 16 kB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedNoise): time 0.002121/0.1443, allocations: 1.217 MB / 409.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002389/0.1467, allocations: 1.044 MB / 410.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.852e-05/0.1468, allocations: 0 / 410.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001376/0.147, allocations: 3.938 kB / 410.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001857/0.1472, allocations: 19.86 kB / 410.7 MB, free: 13.71 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.0005951/0.1478, allocations: 151.7 kB / 410.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001789/0.148, allocations: 115.7 kB / 411 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.016e-05/0.1481, allocations: 11.98 kB / 411 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001098/0.1482, allocations: 39.78 kB / 411 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.714e-05/0.1483, allocations: 43.77 kB / 411.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.94e-05/0.1483, allocations: 4 kB / 411.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003588/0.1487, allocations: 159.8 kB / 411.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.612e-05/0.1487, allocations: 19.91 kB / 411.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.797e-05/0.1488, allocations: 57.5 kB / 411.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004069/0.1492, allocations: 203.4 kB / 411.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1493, allocations: 4 kB / 411.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1493, allocations: 0 / 411.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1493, allocations: 0 / 411.5 MB, free: 12.91 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006865/0.15, allocations: 407.4 kB / 411.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.15, allocations: 8.031 kB / 411.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004822/0.1505, allocations: 56.77 kB / 412 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003286/0.1509, allocations: 207.3 kB / 412.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.353e-05/0.1509, allocations: 12.31 kB / 412.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.704e-05/0.1509, allocations: 8.125 kB / 412.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002405/0.1512, allocations: 89.56 kB / 412.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.978e-06/0.1512, allocations: 0 / 412.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.1512, allocations: 0 / 412.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.1513, allocations: 0 / 412.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001995/0.1515, allocations: 55.95 kB / 412.3 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007053/0.1522, allocations: 368.6 kB / 412.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002659/0.1525, allocations: 78.55 kB / 412.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001148/0.1526, allocations: 44.77 kB / 412.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.15e-05/0.1526, allocations: 4 kB / 412.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.669e-05/0.1527, allocations: 30.56 kB / 412.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 3.596e-06/0.1527, allocations: 4 kB / 412.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005838/0.1533, allocations: 161.6 kB / 413 MB, free: 11.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.733e-05/0.1533, allocations: 51.41 kB / 413 MB, free: 11.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001854/0.1535, allocations: 142.4 kB / 413.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.769e-05/0.1536, allocations: 29.7 kB / 413.2 MB, free: 10.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.346e-05/0.1536, allocations: 96.12 kB / 413.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.85e-05/0.1537, allocations: 27.56 kB / 413.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.571e-05/0.1538, allocations: 25.7 kB / 413.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.1539, allocations: 322.8 kB / 413.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.1541, allocations: 27.98 kB / 413.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001027/0.1542, allocations: 39.92 kB / 413.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002374/0.1544, allocations: 84.77 kB / 413.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.1544, allocations: 0 / 413.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003577/0.1548, allocations: 137.5 kB / 414 MB, free: 10.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.1548, allocations: 4 kB / 414 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.1549, allocations: 0 / 414 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.1549, allocations: 0 / 414 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001743/0.1551, allocations: 27.97 kB / 414 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.258e-06/0.1551, allocations: 4 kB / 414 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.846e-05/0.1552, allocations: 7.922 kB / 414 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.552e-05/0.1552, allocations: 27.89 kB / 414 MB, free: 10.14 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: 4 (globalSeed.seed,signalBasedNoise.actualGlobalSeed,globalSeed.id_impure,signalBasedNoise.localSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * 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.0001446/0.1554, allocations: 129.8 kB / 414.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.98e-05/0.1555, allocations: 11.81 kB / 414.2 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005911/0.1561, allocations: 206 kB / 414.4 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.962e-05/0.1561, allocations: 4 kB / 414.4 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1561, allocations: 0 / 414.4 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.1562, allocations: 3.938 kB / 414.4 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004247/0.1566, allocations: 225.5 kB / 414.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.1566, allocations: 0 / 414.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.106e-05/0.1567, allocations: 19.98 kB / 414.6 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.1567, allocations: 0 / 414.6 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.773e-05/0.1567, allocations: 7.938 kB / 414.6 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.1568, allocations: 0 / 414.6 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1568, allocations: 0 / 414.6 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004935/0.1573, allocations: 271.2 kB / 414.9 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.1574, allocations: 104.9 kB / 415 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.629e-05/0.1574, allocations: 0 / 415 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001155/0.1575, allocations: 4 kB / 415 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.244e-05/0.1576, allocations: 11.92 kB / 415 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.835e-05/0.1577, allocations: 32.83 kB / 415 MB, free: 9.035 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001192/0.1578, allocations: 108.8 kB / 415.1 MB, free: 8.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1578, allocations: 4 kB / 415.1 MB, free: 8.926 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005011/0.1583, allocations: 51.98 kB / 415.2 MB, free: 8.875 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($cse2[1],$cse2[2],$cse4[1],$cse4[2],signalBasedNoise.localSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 7 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * When equations: 1 * 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.0007059/0.1591, allocations: 242 kB / 415.4 MB, free: 8.672 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003595/0.1594, allocations: 111.8 kB / 415.5 MB, free: 8.562 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.1594, allocations: 0 / 415.5 MB, free: 8.562 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000231/0.1597, allocations: 115.4 kB / 415.7 MB, free: 8.438 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003803/0.1601, allocations: 20.69 kB / 415.7 MB, free: 8.422 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007054/0.1608, allocations: 281.2 kB / 415.9 MB, free: 8.117 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003963/0.1612, allocations: 0.7198 MB / 416.7 MB, free: 7.371 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001303/0.1614, allocations: 24.36 kB / 416.7 MB, free: 7.348 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.73e-05/0.1615, allocations: 19.42 kB / 416.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1615, allocations: 0 / 416.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of Templates: time 0.007316/0.1688, allocations: 2.229 MB / 418.9 MB, free: 5.105 MB / 350.1 MB make -j1 -f AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.makefile Environment - environmentSimulation: (rm -f AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.sim & ./AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise -abortSlowSimulation -alarm=480 -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.pipe 2>&1) Environment - environmentSimulation: