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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001085/0.001088, allocations: 108 kB / 15.6 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 195 kB / 16.53 MB, free: 6.672 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.324/1.324, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1551/0.1551, allocations: 3.887 MB / 294.3 MB, free: 3.258 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 67.89 kB / 355.5 MB, free: 3.602 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09851/0.09979, allocations: 50.18 MB / 405.6 MB, free: 1.387 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.002715/0.1025, allocations: 1.526 MB / 407.2 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00223/0.1048, allocations: 1.149 MB / 408.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.679e-05/0.1049, allocations: 3.938 kB / 408.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000161/0.1051, allocations: 31.67 kB / 408.4 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.934e-05/0.1052, allocations: 27.72 kB / 408.4 MB, free: 14.62 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.000838/0.1061, allocations: 235.3 kB / 408.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002837/0.1063, allocations: 259.5 kB / 408.9 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.564e-05/0.1064, allocations: 9.562 kB / 408.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001684/0.1066, allocations: 99.67 kB / 409 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000111/0.1067, allocations: 79.61 kB / 409.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.529e-05/0.1068, allocations: 12 kB / 409.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000306/0.1071, allocations: 171.8 kB / 409.2 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.485e-05/0.1071, allocations: 27.86 kB / 409.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001061/0.1073, allocations: 91.52 kB / 409.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003833/0.1076, allocations: 275.3 kB / 409.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1077, allocations: 7.938 kB / 409.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1077, allocations: 0 / 409.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.1077, allocations: 3.938 kB / 409.6 MB, free: 13.38 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.002275/0.11, allocations: 2.235 MB / 411.9 MB, free: 11.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.11, allocations: 8.031 kB / 411.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007234/0.1107, allocations: 104.5 kB / 412 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000298/0.1111, allocations: 263.7 kB / 412.2 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.285e-05/0.1111, allocations: 4.375 kB / 412.2 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.852e-05/0.1111, allocations: 8.375 kB / 412.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004207/0.1115, allocations: 259.6 kB / 412.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.1116, allocations: 0 / 412.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.174e-05/0.1116, allocations: 4 kB / 412.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.1116, allocations: 3.938 kB / 412.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003655/0.112, allocations: 227.8 kB / 412.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002545/0.1122, allocations: 246.3 kB / 413 MB, free: 9.871 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003773/0.1126, allocations: 325.3 kB / 413.3 MB, free: 9.535 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003333/0.113, allocations: 301.7 kB / 413.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.532e-05/0.113, allocations: 4 kB / 413.6 MB, free: 9.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005298/0.1135, allocations: 0.516 MB / 414.1 MB, free: 8.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.102e-06/0.1135, allocations: 0 / 414.1 MB, free: 8.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001154/0.1147, allocations: 0.766 MB / 414.9 MB, free: 7.875 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.544e-05/0.1148, allocations: 164.4 kB / 415 MB, free: 7.684 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001914/0.115, allocations: 215 kB / 415.2 MB, free: 7.465 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.259e-05/0.115, allocations: 29.7 kB / 415.3 MB, free: 7.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.026e-05/0.1151, allocations: 108.7 kB / 415.4 MB, free: 7.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.05e-05/0.1152, allocations: 51.3 kB / 415.4 MB, free: 7.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.769e-05/0.1153, allocations: 53.67 kB / 415.5 MB, free: 7.211 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.1154, allocations: 334.9 kB / 415.8 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002284/0.1156, allocations: 140.2 kB / 415.9 MB, free: 6.734 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002178/0.1158, allocations: 144.4 kB / 416.1 MB, free: 6.594 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005284/0.1164, allocations: 460.4 kB / 416.5 MB, free: 6.117 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.1164, allocations: 0 / 416.5 MB, free: 6.117 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006217/0.117, allocations: 462.9 kB / 417 MB, free: 5.648 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.227e-05/0.1171, allocations: 91.36 kB / 417.1 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.1171, allocations: 8 kB / 417.1 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.1171, allocations: 0 / 417.1 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001397/0.1173, allocations: 19.98 kB / 417.1 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.1173, allocations: 192 / 417.1 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.1174, allocations: 23.89 kB / 417.1 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.428e-05/0.1175, allocations: 35.89 kB / 417.2 MB, free: 5.461 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.0002433/0.1177, allocations: 272.1 kB / 417.4 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.365e-05/0.1178, allocations: 27.81 kB / 417.4 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.008e-05/0.1179, allocations: 17.39 kB / 417.5 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.1179, allocations: 0 / 417.5 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1179, allocations: 0 / 417.5 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.1179, allocations: 0 / 417.5 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002441/0.1181, allocations: 277.3 kB / 417.7 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1181, allocations: 3.938 kB / 417.7 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.204e-05/0.1182, allocations: 7.984 kB / 417.7 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.1182, allocations: 4 kB / 417.7 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.396e-05/0.1183, allocations: 12 kB / 417.8 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.1183, allocations: 4 kB / 417.8 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1183, allocations: 0 / 417.8 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009343/0.1192, allocations: 0.696 MB / 418.5 MB, free: 4.043 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00014/0.1194, allocations: 132.8 kB / 418.6 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.568e-05/0.1194, allocations: 27.92 kB / 418.6 MB, free: 3.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/0.1196, allocations: 12 kB / 418.6 MB, free: 3.855 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/0.1197, allocations: 27.97 kB / 418.7 MB, free: 3.828 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.091e-05/0.1197, allocations: 39.92 kB / 418.7 MB, free: 3.789 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000136/0.1199, allocations: 143.2 kB / 418.8 MB, free: 3.648 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1199, allocations: 0 / 418.8 MB, free: 3.648 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003706/0.1203, allocations: 76 kB / 418.9 MB, free: 3.574 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.0005468/0.1208, allocations: 266.9 kB / 419.2 MB, free: 3.348 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009431/0.1218, allocations: 0.7601 MB / 419.9 MB, free: 2.562 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.1218, allocations: 0 / 419.9 MB, free: 2.562 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006315/0.1224, allocations: 0.6471 MB / 420.6 MB, free: 1.891 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002617/0.1227, allocations: 24 kB / 420.6 MB, free: 1.867 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008095/0.1235, allocations: 0.5203 MB / 421.1 MB, free: 1.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003057/0.1238, allocations: 0.7349 MB / 421.9 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.999e-05/0.1239, allocations: 12.55 kB / 421.9 MB, free: 0.543 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.583e-05/0.1239, allocations: 15.44 kB / 421.9 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.124, allocations: 0 / 421.9 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of Templates: time 0.1673/0.2912, allocations: 3.945 MB / 425.8 MB, free: 49.6 MB / 350.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 -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe 2>&1)