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.001111/0.001111, allocations: 108 kB / 15.6 MB, free: 132 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.001161/0.001161, allocations: 191.4 kB / 16.53 MB, free: 6.391 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.339/1.339, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1665/0.1665, allocations: 3.888 MB / 294.3 MB, free: 3.289 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00216/0.00216, allocations: 59.91 kB / 355.6 MB, free: 3.504 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1325, allocations: 50.19 MB / 405.8 MB, free: 1.273 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.004052/0.1366, allocations: 1.513 MB / 407.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00308/0.1397, allocations: 1.157 MB / 408.4 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001066/0.1398, allocations: 0 / 408.4 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001738/0.14, allocations: 35.67 kB / 408.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001157/0.1402, allocations: 23.73 kB / 408.5 MB, free: 14.52 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.001077/0.1412, allocations: 239.3 kB / 408.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004124/0.1417, allocations: 259.5 kB / 409 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.865e-05/0.1418, allocations: 17.53 kB / 409 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002491/0.142, allocations: 99.61 kB / 409.1 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001604/0.1422, allocations: 75.67 kB / 409.2 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.643e-05/0.1423, allocations: 12 kB / 409.2 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004494/0.1427, allocations: 167.8 kB / 409.3 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.166e-05/0.1428, allocations: 23.88 kB / 409.4 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001536/0.143, allocations: 99.44 kB / 409.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005559/0.1435, allocations: 275.5 kB / 409.7 MB, free: 13.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1435, allocations: 0 / 409.7 MB, free: 13.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.1436, allocations: 8 kB / 409.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.752e-06/0.1436, allocations: 0 / 409.7 MB, free: 13.27 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.003792/0.1474, allocations: 2.232 MB / 412 MB, free: 10.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.1474, allocations: 12.03 kB / 412 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.525e-05/0.1475, allocations: 34.75 kB / 412 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001057/0.1486, allocations: 108.5 kB / 412.1 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004193/0.149, allocations: 259.7 kB / 412.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.47e-05/0.1491, allocations: 4.375 kB / 412.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.681e-05/0.1491, allocations: 16.38 kB / 412.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006637/0.1498, allocations: 259.4 kB / 412.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.1498, allocations: 0 / 412.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.226e-05/0.1499, allocations: 7.938 kB / 412.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.1499, allocations: 0 / 412.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006435/0.1506, allocations: 223.9 kB / 412.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003811/0.151, allocations: 246.3 kB / 413.1 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006606/0.1516, allocations: 333.3 kB / 413.4 MB, free: 9.371 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00058/0.1522, allocations: 293.6 kB / 413.7 MB, free: 9.078 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.301e-05/0.1523, allocations: 12 kB / 413.7 MB, free: 9.066 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000867/0.1531, allocations: 0.5196 MB / 414.3 MB, free: 8.492 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 2.315e-06/0.1532, allocations: 0 / 414.3 MB, free: 8.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001955/0.1551, allocations: 0.7629 MB / 415 MB, free: 7.711 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001307/0.1553, allocations: 160.4 kB / 415.2 MB, free: 7.523 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003215/0.1556, allocations: 211.1 kB / 415.4 MB, free: 7.309 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.685e-05/0.1556, allocations: 33.7 kB / 415.4 MB, free: 7.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.207e-05/0.1558, allocations: 108.7 kB / 415.5 MB, free: 7.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.492e-05/0.1558, allocations: 47.3 kB / 415.6 MB, free: 7.113 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000143/0.156, allocations: 57.69 kB / 415.6 MB, free: 7.051 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.1562, allocations: 330.8 kB / 415.9 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003938/0.1566, allocations: 140.2 kB / 416.1 MB, free: 6.578 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00039/0.157, allocations: 140.4 kB / 416.2 MB, free: 6.441 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009517/0.1579, allocations: 464.4 kB / 416.7 MB, free: 5.961 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.158, allocations: 4 kB / 416.7 MB, free: 5.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.00103/0.159, allocations: 458.9 kB / 417.1 MB, free: 5.492 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001141/0.1591, allocations: 95.36 kB / 417.2 MB, free: 5.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.1592, allocations: 4 kB / 417.2 MB, free: 5.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.1592, allocations: 0 / 417.2 MB, free: 5.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001872/0.1594, allocations: 19.98 kB / 417.2 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.1594, allocations: 4 kB / 417.2 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001751/0.1596, allocations: 15.89 kB / 417.3 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.606e-05/0.1597, allocations: 31.95 kB / 417.3 MB, free: 5.312 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.0003537/0.1601, allocations: 269 kB / 417.6 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.009e-05/0.1602, allocations: 31.81 kB / 417.6 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.355e-05/0.1602, allocations: 17.34 kB / 417.6 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/0.1602, allocations: 3.984 kB / 417.6 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.249e-06/0.1603, allocations: 3.938 kB / 417.6 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.1603, allocations: 3.984 kB / 417.6 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003552/0.1606, allocations: 273.3 kB / 417.9 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.1607, allocations: 3.984 kB / 417.9 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.095e-05/0.1608, allocations: 8 kB / 417.9 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.1608, allocations: 0 / 417.9 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.253e-05/0.1608, allocations: 11.98 kB / 417.9 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.1608, allocations: 4 kB / 417.9 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1609, allocations: 4 kB / 417.9 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001629/0.1625, allocations: 0.7013 MB / 418.6 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002331/0.1627, allocations: 132.8 kB / 418.7 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001153/0.1629, allocations: 27.92 kB / 418.8 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001903/0.1631, allocations: 23.98 kB / 418.8 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.1632, allocations: 19.97 kB / 418.8 MB, free: 3.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.285e-05/0.1633, allocations: 35.95 kB / 418.9 MB, free: 3.629 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002189/0.1636, allocations: 143.2 kB / 419 MB, free: 3.488 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1636, allocations: 0 / 419 MB, free: 3.488 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005872/0.1642, allocations: 80 kB / 419.1 MB, free: 3.41 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.002647/0.1668, allocations: 1.388 MB / 420.5 MB, free: 2.023 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001622/0.1685, allocations: 0.7524 MB / 421.2 MB, free: 1.246 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.1685, allocations: 0 / 421.2 MB, free: 1.246 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001111/0.1696, allocations: 0.6588 MB / 421.9 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004166/0.17, allocations: 27.94 kB / 421.9 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1494/0.3195, allocations: 2.923 MB / 424.8 MB, free: 49.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001576/0.3197, allocations: 0.7362 MB / 425.6 MB, free: 48.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.191e-05/0.3198, allocations: 15.8 kB / 425.6 MB, free: 48.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.875e-05/0.3199, allocations: 52.48 kB / 425.6 MB, free: 48.4 MB / 350.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3199, allocations: 2.906 kB / 425.6 MB, free: 48.4 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0289/0.3488, allocations: 5.884 MB / 431.5 MB, free: 47.74 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.586/7.935, allocations: 11.91 kB / 431.5 MB, free: 47.74 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 & python3 -m fmpy simulate --output-file AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.fmu > AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe 2>&1)