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.001283/0.001283, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001649/0.001649, allocations: 192.7 kB / 16.13 MB, free: 6.707 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.371/1.371, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1772/0.1772, allocations: 3.884 MB / 293.8 MB, free: 3.27 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 67.89 kB / 354.9 MB, free: 4.004 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0963/0.09746, allocations: 50.18 MB / 405.1 MB, free: 1.777 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.002685/0.1002, allocations: 1.601 MB / 406.7 MB, free: 164 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001934/0.1021, allocations: 1.196 MB / 407.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.696e-05/0.1022, allocations: 0 / 407.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001586/0.1024, allocations: 23.8 kB / 407.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.861e-05/0.1025, allocations: 19.8 kB / 407.9 MB, free: 14.91 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.0006638/0.1032, allocations: 203.6 kB / 408.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002347/0.1034, allocations: 227.5 kB / 408.3 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.271e-05/0.1035, allocations: 17.53 kB / 408.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001622/0.1036, allocations: 91.61 kB / 408.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001093/0.1038, allocations: 79.61 kB / 408.5 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.094e-05/0.1038, allocations: 8 kB / 408.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000262/0.1041, allocations: 159.8 kB / 408.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.727e-05/0.1041, allocations: 27.8 kB / 408.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.24e-05/0.1042, allocations: 79.58 kB / 408.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003184/0.1046, allocations: 275.5 kB / 409.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1046, allocations: 4 kB / 409.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.91e-07/0.1046, allocations: 0 / 409.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.1046, allocations: 0 / 409.1 MB, free: 13.77 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.002236/0.1068, allocations: 2.224 MB / 411.3 MB, free: 11.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.688e-05/0.1069, allocations: 12.03 kB / 411.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.448e-05/0.107, allocations: 42.73 kB / 411.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006832/0.1077, allocations: 110.9 kB / 411.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003121/0.108, allocations: 255.8 kB / 411.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.108, allocations: 8.375 kB / 411.7 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.13e-05/0.1081, allocations: 12.38 kB / 411.7 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004067/0.1085, allocations: 259.3 kB / 412 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.1085, allocations: 3.938 kB / 412 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.026e-05/0.1085, allocations: 11.98 kB / 412 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.1085, allocations: 0 / 412 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003626/0.1089, allocations: 219.9 kB / 412.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002439/0.1092, allocations: 254.3 kB / 412.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003633/0.1095, allocations: 321.2 kB / 412.8 MB, free: 9.867 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003377/0.1099, allocations: 301.7 kB / 413.1 MB, free: 9.566 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.253e-05/0.1099, allocations: 3.984 kB / 413.1 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004985/0.1104, allocations: 0.5225 MB / 413.6 MB, free: 8.984 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.283e-06/0.1104, allocations: 3.938 kB / 413.6 MB, free: 8.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001105/0.1115, allocations: 0.7583 MB / 414.3 MB, free: 8.203 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.555e-05/0.1116, allocations: 160.5 kB / 414.5 MB, free: 8.016 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001881/0.1118, allocations: 211 kB / 414.7 MB, free: 7.801 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.289e-05/0.1118, allocations: 29.7 kB / 414.7 MB, free: 7.766 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.54e-05/0.1119, allocations: 112.7 kB / 414.8 MB, free: 7.652 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.917e-05/0.112, allocations: 55.28 kB / 414.9 MB, free: 7.598 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.65e-05/0.1121, allocations: 53.69 kB / 414.9 MB, free: 7.539 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.1122, allocations: 334.9 kB / 415.3 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002218/0.1124, allocations: 132.2 kB / 415.4 MB, free: 7.074 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002231/0.1126, allocations: 144.4 kB / 415.5 MB, free: 6.934 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005135/0.1132, allocations: 472.3 kB / 416 MB, free: 6.445 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1132, allocations: 0 / 416 MB, free: 6.445 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005997/0.1138, allocations: 459 kB / 416.5 MB, free: 5.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.576e-05/0.1139, allocations: 95.38 kB / 416.5 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.1139, allocations: 0 / 416.5 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.979e-06/0.1139, allocations: 0 / 416.5 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001212/0.114, allocations: 23.97 kB / 416.6 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.114, allocations: 0 / 416.6 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.622e-05/0.1141, allocations: 19.91 kB / 416.6 MB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.807e-05/0.1142, allocations: 35.88 kB / 416.6 MB, free: 5.797 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.0002154/0.1144, allocations: 268.3 kB / 416.9 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.946e-05/0.1145, allocations: 23.81 kB / 416.9 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.063e-05/0.1145, allocations: 17.39 kB / 416.9 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.1145, allocations: 0 / 416.9 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.1145, allocations: 0 / 416.9 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.1145, allocations: 4.188 kB / 416.9 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002139/0.1147, allocations: 273.2 kB / 417.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1148, allocations: 3.938 kB / 417.2 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.915e-05/0.1148, allocations: 11.98 kB / 417.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.1148, allocations: 0 / 417.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.153e-05/0.1149, allocations: 20 kB / 417.2 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.1149, allocations: 0 / 417.2 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.1149, allocations: 3.984 kB / 417.2 MB, free: 5.105 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008965/0.1158, allocations: 0.7025 MB / 417.9 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001179/0.1159, allocations: 124.8 kB / 418.1 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.401e-05/0.116, allocations: 27.92 kB / 418.1 MB, free: 4.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.1161, allocations: 19.98 kB / 418.1 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.654e-05/0.1162, allocations: 19.98 kB / 418.1 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.612e-05/0.1162, allocations: 40.59 kB / 418.2 MB, free: 4.125 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001121/0.1164, allocations: 143.2 kB / 418.3 MB, free: 3.984 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1164, allocations: 0 / 418.3 MB, free: 3.984 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003106/0.1167, allocations: 75.98 kB / 418.4 MB, free: 3.91 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.001524/0.1182, allocations: 1.398 MB / 419.8 MB, free: 2.516 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008805/0.1191, allocations: 0.7563 MB / 420.5 MB, free: 1.734 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1191, allocations: 4 kB / 420.5 MB, free: 1.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005957/0.1197, allocations: 0.651 MB / 421.2 MB, free: 1.055 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002602/0.12, allocations: 28.12 kB / 421.2 MB, free: 1.027 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1528/0.2728, allocations: 2.972 MB / 424.2 MB, free: 49.33 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001677/0.273, allocations: 0.7329 MB / 424.9 MB, free: 48.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.428e-05/0.2731, allocations: 10.72 kB / 424.9 MB, free: 48.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.303e-05/0.2732, allocations: 50.19 kB / 425 MB, free: 48.63 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2732, allocations: 0 / 425 MB, free: 48.63 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01386/0.287, allocations: 5.541 MB / 430.5 MB, free: 48.07 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001511/0.2872, allocations: 250.8 kB / 430.8 MB, free: 47.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.808/2.096, allocations: 0 / 430.8 MB, free: 47.82 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)