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.00158/0.00158, allocations: 108 kB / 15.63 MB, free: 112 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.001935/0.001935, allocations: 192.3 kB / 16.55 MB, free: 6.656 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.373/1.373, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1603/0.1603, allocations: 3.89 MB / 294.3 MB, free: 3.238 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002072/0.002072, allocations: 63.91 kB / 355.6 MB, free: 3.434 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1201, allocations: 50.19 MB / 405.8 MB, free: 1.207 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.002624/0.1228, allocations: 1.513 MB / 407.3 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001895/0.1247, allocations: 1.153 MB / 408.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.698e-05/0.1248, allocations: 4 kB / 408.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001417/0.1249, allocations: 31.66 kB / 408.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.305e-05/0.125, allocations: 35.78 kB / 408.5 MB, free: 14.45 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.0007049/0.1258, allocations: 223.3 kB / 408.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002597/0.126, allocations: 263.5 kB / 409 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.373e-05/0.1261, allocations: 13.53 kB / 409 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000152/0.1262, allocations: 103.6 kB / 409.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001017/0.1264, allocations: 71.67 kB / 409.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.375e-05/0.1264, allocations: 16 kB / 409.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002793/0.1267, allocations: 175.7 kB / 409.4 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.712e-05/0.1267, allocations: 31.86 kB / 409.4 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.856e-05/0.1268, allocations: 87.52 kB / 409.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003402/0.1272, allocations: 279.5 kB / 409.8 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1272, allocations: 0 / 409.8 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1272, allocations: 0 / 409.8 MB, free: 13.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.1272, allocations: 0 / 409.8 MB, free: 13.21 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.002293/0.1295, allocations: 2.24 MB / 412 MB, free: 10.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.1296, allocations: 8.031 kB / 412 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.844e-05/0.1296, allocations: 38.75 kB / 412.1 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006372/0.1303, allocations: 108.6 kB / 412.2 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002893/0.1306, allocations: 255.7 kB / 412.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.116e-05/0.1306, allocations: 8.375 kB / 412.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.489e-05/0.1306, allocations: 8.375 kB / 412.4 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003907/0.131, allocations: 263.4 kB / 412.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.1311, allocations: 4 kB / 412.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.729e-05/0.1311, allocations: 4 kB / 412.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.1311, allocations: 0 / 412.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003629/0.1315, allocations: 223.8 kB / 412.9 MB, free: 9.941 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002697/0.1317, allocations: 258.2 kB / 413.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003956/0.1321, allocations: 325.3 kB / 413.5 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003314/0.1325, allocations: 301.6 kB / 413.8 MB, free: 9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.177e-05/0.1325, allocations: 0 / 413.8 MB, free: 9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005254/0.133, allocations: 0.5198 MB / 414.3 MB, free: 8.426 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.162e-06/0.133, allocations: 0 / 414.3 MB, free: 8.426 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001137/0.1342, allocations: 0.7661 MB / 415.1 MB, free: 7.641 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.592e-05/0.1343, allocations: 156.5 kB / 415.2 MB, free: 7.457 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001929/0.1345, allocations: 207.1 kB / 415.4 MB, free: 7.246 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.259e-05/0.1345, allocations: 29.7 kB / 415.5 MB, free: 7.211 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.921e-05/0.1346, allocations: 112.7 kB / 415.6 MB, free: 7.098 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.701e-05/0.1347, allocations: 55.34 kB / 415.6 MB, free: 7.043 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.302e-05/0.1347, allocations: 57.62 kB / 415.7 MB, free: 6.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.1349, allocations: 334.8 kB / 416 MB, free: 6.645 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000221/0.1351, allocations: 132.2 kB / 416.1 MB, free: 6.512 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002298/0.1353, allocations: 144.4 kB / 416.3 MB, free: 6.371 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000547/0.1359, allocations: 468.4 kB / 416.7 MB, free: 5.887 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.1359, allocations: 4 kB / 416.7 MB, free: 5.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005974/0.1365, allocations: 458.9 kB / 417.2 MB, free: 5.418 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.124e-05/0.1366, allocations: 91.38 kB / 417.3 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.1366, allocations: 3.984 kB / 417.3 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.1366, allocations: 0 / 417.3 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001217/0.1367, allocations: 19.98 kB / 417.3 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.099e-06/0.1367, allocations: 0 / 417.3 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.588e-05/0.1368, allocations: 23.91 kB / 417.3 MB, free: 5.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.123e-05/0.1369, allocations: 35.94 kB / 417.3 MB, free: 5.234 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.0002061/0.1371, allocations: 261.1 kB / 417.6 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.092e-05/0.1372, allocations: 23.81 kB / 417.6 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.322e-05/0.1372, allocations: 25.27 kB / 417.7 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.1373, allocations: 0 / 417.7 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.1373, allocations: 4 kB / 417.7 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.1373, allocations: 0 / 417.7 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000234/0.1375, allocations: 277.2 kB / 417.9 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1375, allocations: 4 kB / 417.9 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.28e-05/0.1376, allocations: 11.98 kB / 417.9 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.1376, allocations: 0 / 417.9 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.076e-05/0.1376, allocations: 19.98 kB / 418 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.1377, allocations: 0 / 418 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1377, allocations: 0 / 418 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008977/0.1386, allocations: 0.6975 MB / 418.7 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/0.1387, allocations: 124.8 kB / 418.8 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.025e-05/0.1388, allocations: 27.97 kB / 418.8 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.1389, allocations: 19.97 kB / 418.8 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.013e-05/0.139, allocations: 23.92 kB / 418.9 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.497e-05/0.139, allocations: 44.58 kB / 418.9 MB, free: 3.562 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001397/0.1392, allocations: 143.2 kB / 419 MB, free: 3.422 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1392, allocations: 0 / 419 MB, free: 3.422 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000338/0.1395, allocations: 83.98 kB / 419.1 MB, free: 3.34 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.001825/0.1414, allocations: 1.388 MB / 420.5 MB, free: 1.953 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000908/0.1423, allocations: 0.764 MB / 421.3 MB, free: 1.164 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1423, allocations: 0 / 421.3 MB, free: 1.164 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006198/0.1429, allocations: 0.6471 MB / 421.9 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002512/0.1432, allocations: 31.88 kB / 421.9 MB, free: 472 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1454/0.2886, allocations: 2.943 MB / 424.9 MB, free: 49.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000131/0.2888, allocations: 0.7276 MB / 425.6 MB, free: 48.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.218e-05/0.2888, allocations: 19.56 kB / 425.6 MB, free: 48.39 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.476e-05/0.2889, allocations: 53.72 kB / 425.7 MB, free: 48.38 MB / 350.1 MB Notification: Performance of SimCode: time 2.966e-06/0.2889, allocations: 0 / 425.7 MB, free: 48.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02115/0.3101, allocations: 5.89 MB / 431.6 MB, free: 47.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.135/6.445, allocations: 3.75 kB / 431.6 MB, free: 47.71 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)