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: "" <> 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001588/0.001588, allocations: 108 kB / 15.61 MB, free: 152 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.001855/0.001855, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.554/1.554, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1991/0.1991, allocations: 3.887 MB / 294.3 MB, free: 3.32 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 59.89 kB / 355.6 MB, free: 3.516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09302/0.09432, allocations: 50.18 MB / 405.8 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.002657/0.09701, allocations: 1.511 MB / 407.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001814/0.09884, allocations: 1.145 MB / 408.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.043e-05/0.09894, allocations: 8 kB / 408.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001228/0.09907, allocations: 35.66 kB / 408.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.641e-05/0.09917, allocations: 31.72 kB / 408.5 MB, free: 14.54 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.0006992/0.09988, allocations: 227.3 kB / 408.7 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002826/0.1002, allocations: 263.5 kB / 409 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.411e-05/0.1002, allocations: 9.562 kB / 409 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001695/0.1004, allocations: 99.67 kB / 409.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.542e-05/0.1005, allocations: 75.61 kB / 409.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.385e-05/0.1005, allocations: 20 kB / 409.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002808/0.1008, allocations: 171.8 kB / 409.3 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.479e-05/0.1009, allocations: 27.86 kB / 409.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.739e-05/0.101, allocations: 91.45 kB / 409.4 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000355/0.1014, allocations: 279.5 kB / 409.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.1014, allocations: 0 / 409.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.1014, allocations: 0 / 409.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.1014, allocations: 0 / 409.7 MB, free: 13.3 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.002122/0.1035, allocations: 2.232 MB / 412 MB, free: 11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.1036, allocations: 15.97 kB / 412 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.819e-05/0.1036, allocations: 50.73 kB / 412 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006428/0.1043, allocations: 98.34 kB / 412.1 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002739/0.1045, allocations: 259.7 kB / 412.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.797e-05/0.1046, allocations: 4.375 kB / 412.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.584e-05/0.1046, allocations: 8.375 kB / 412.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003812/0.105, allocations: 263.4 kB / 412.6 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.677e-06/0.105, allocations: 0 / 412.6 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.876e-05/0.105, allocations: 7.938 kB / 412.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.105, allocations: 0 / 412.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003481/0.1054, allocations: 223.8 kB / 412.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002541/0.1057, allocations: 250.3 kB / 413.1 MB, free: 9.734 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003523/0.106, allocations: 325.3 kB / 413.4 MB, free: 9.398 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003092/0.1063, allocations: 297.7 kB / 413.7 MB, free: 9.102 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.806e-06/0.1064, allocations: 7.938 kB / 413.7 MB, free: 9.094 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004911/0.1068, allocations: 0.5235 MB / 414.2 MB, free: 8.516 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.212e-06/0.1069, allocations: 4 kB / 414.3 MB, free: 8.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001067/0.1079, allocations: 0.7547 MB / 415 MB, free: 7.738 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.511e-05/0.108, allocations: 172.4 kB / 415.2 MB, free: 7.539 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001934/0.1082, allocations: 207.1 kB / 415.4 MB, free: 7.328 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.167e-05/0.1083, allocations: 29.7 kB / 415.4 MB, free: 7.293 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.942e-05/0.1083, allocations: 112.8 kB / 415.5 MB, free: 7.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.513e-05/0.1084, allocations: 55.28 kB / 415.6 MB, free: 7.125 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.929e-05/0.1085, allocations: 57.69 kB / 415.6 MB, free: 7.062 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.1086, allocations: 326.8 kB / 415.9 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002113/0.1088, allocations: 136.2 kB / 416.1 MB, free: 6.598 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002082/0.109, allocations: 144.4 kB / 416.2 MB, free: 6.457 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005012/0.1095, allocations: 464.4 kB / 416.7 MB, free: 5.977 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.1095, allocations: 0 / 416.7 MB, free: 5.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005776/0.1101, allocations: 462.9 kB / 417.1 MB, free: 5.508 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.938e-05/0.1102, allocations: 91.55 kB / 417.2 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.1102, allocations: 4 kB / 417.2 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.1102, allocations: 3.938 kB / 417.2 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.1103, allocations: 15.98 kB / 417.2 MB, free: 5.383 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.1103, allocations: 0 / 417.2 MB, free: 5.383 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.1105, allocations: 27.89 kB / 417.3 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.917e-05/0.1105, allocations: 35.94 kB / 417.3 MB, free: 5.32 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.0002028/0.1107, allocations: 260.8 kB / 417.6 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.949e-05/0.1108, allocations: 27.81 kB / 417.6 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.155e-05/0.1108, allocations: 21.38 kB / 417.6 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.1108, allocations: 0 / 417.6 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.1108, allocations: 0 / 417.6 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.1108, allocations: 7.938 kB / 417.6 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002123/0.1111, allocations: 277.3 kB / 417.9 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.1111, allocations: 0 / 417.9 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.585e-05/0.1111, allocations: 7.984 kB / 417.9 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.1111, allocations: 4 kB / 417.9 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.792e-05/0.1112, allocations: 16 kB / 417.9 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.1112, allocations: 0 / 417.9 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.1112, allocations: 4 kB / 417.9 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008523/0.112, allocations: 0.7014 MB / 418.6 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001231/0.1122, allocations: 128.8 kB / 418.7 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.827e-05/0.1123, allocations: 27.92 kB / 418.8 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.1124, allocations: 12 kB / 418.8 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.176e-05/0.1124, allocations: 27.95 kB / 418.8 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.114e-05/0.1125, allocations: 35.94 kB / 418.8 MB, free: 3.652 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001142/0.1126, allocations: 147.2 kB / 419 MB, free: 3.508 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1126, allocations: 0 / 419 MB, free: 3.508 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003053/0.1129, allocations: 83.98 kB / 419.1 MB, free: 3.426 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.001421/0.1144, allocations: 1.385 MB / 420.5 MB, free: 2.043 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008359/0.1152, allocations: 0.7563 MB / 421.2 MB, free: 1.262 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1152, allocations: 0 / 421.2 MB, free: 1.262 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005838/0.1158, allocations: 0.651 MB / 421.9 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002406/0.1161, allocations: 35.92 kB / 421.9 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1534/0.2694, allocations: 2.924 MB / 424.8 MB, free: 49.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002042/0.2697, allocations: 0.7385 MB / 425.6 MB, free: 48.44 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.107e-05/0.2698, allocations: 14.55 kB / 425.6 MB, free: 48.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.245e-05/0.2699, allocations: 52.41 kB / 425.6 MB, free: 48.43 MB / 350.1 MB Notification: Performance of SimCode: time 1.193e-06/0.2699, allocations: 0 / 425.6 MB, free: 48.43 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02248/0.2924, allocations: 5.888 MB / 431.5 MB, free: 47.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.783/8.075, allocations: 4.875 kB / 431.5 MB, free: 47.77 MB / 350.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/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)