Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.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.SignalBasedNoise,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_SignalBasedNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.SignalBasedNoise,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_SignalBasedNoise",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.005502/0.005502, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.001315/0.001315, allocations: 195.2 kB / 16.67 MB, free: 5.969 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.457/1.457, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02761/0.02761, allocations: 3.907 MB / 294.4 MB, free: 11.03 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001873/0.001873, allocations: 61.23 kB / 406.4 MB, free: 28.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09404/0.09593, allocations: 50.19 MB / 456.6 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedNoise): time 0.00278/0.09876, allocations: 1.478 MB / 458.1 MB, free: 9.027 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002055/0.1008, allocations: 1.048 MB / 459.1 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.113e-05/0.1009, allocations: 3.938 kB / 459.1 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001332/0.1011, allocations: 7.875 kB / 459.1 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001742/0.1013, allocations: 35.78 kB / 459.2 MB, free: 7.926 MB / 334.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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/Generators/QuickXorshift64star/package.mo:6:13-93:19:writable] Warning: Pure function 'AdvancedNoise.Examples.SignalBasedNoise.signalBasedNoise.generator.initialState' contains a call to impure function 'AdvancedNoise.Examples.SignalBasedNoise.signalBasedNoise.generator.random'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/Sources/SignalBasedNoise.mo:250:3-261:19:writable] Warning: Pure function 'AdvancedNoise.Examples.SignalBasedNoise.signalBasedNoise.initialState' contains a call to impure function 'AdvancedNoise.Examples.SignalBasedNoise.signalBasedNoise.convertRealToIntegers'. Notification: Performance of NFTyping.typeClassSections: time 0.0006209/0.1019, allocations: 175.4 kB / 459.3 MB, free: 7.754 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002053/0.1021, allocations: 119.7 kB / 459.5 MB, free: 7.637 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.341e-05/0.1022, allocations: 12 kB / 459.5 MB, free: 7.625 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000104/0.1023, allocations: 51.77 kB / 459.5 MB, free: 7.574 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.352e-05/0.1024, allocations: 47.77 kB / 459.6 MB, free: 7.527 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.226e-05/0.1025, allocations: 4 kB / 459.6 MB, free: 7.523 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003209/0.1028, allocations: 167.8 kB / 459.7 MB, free: 7.359 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.892e-05/0.1029, allocations: 19.97 kB / 459.8 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.169e-05/0.1029, allocations: 43.69 kB / 459.8 MB, free: 7.297 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003927/0.1033, allocations: 207.5 kB / 460 MB, free: 7.094 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.1033, allocations: 0 / 460 MB, free: 7.094 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1033, allocations: 0 / 460 MB, free: 7.094 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.1034, allocations: 0 / 460 MB, free: 7.094 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.00064/0.104, allocations: 430.5 kB / 460.4 MB, free: 6.625 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.1041, allocations: 12.03 kB / 460.4 MB, free: 6.613 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.842e-05/0.1041, allocations: 34.75 kB / 460.5 MB, free: 6.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004291/0.1045, allocations: 60.75 kB / 460.5 MB, free: 6.512 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002948/0.1049, allocations: 207.2 kB / 460.7 MB, free: 6.273 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.023e-05/0.1049, allocations: 8.375 kB / 460.7 MB, free: 6.266 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.802e-05/0.1049, allocations: 7.938 kB / 460.7 MB, free: 6.258 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002007/0.1051, allocations: 81.58 kB / 460.8 MB, free: 6.172 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.1051, allocations: 7.922 kB / 460.8 MB, free: 6.164 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.267e-05/0.1052, allocations: 0 / 460.8 MB, free: 6.164 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.1052, allocations: 0 / 460.8 MB, free: 6.164 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001552/0.1053, allocations: 59.97 kB / 460.9 MB, free: 6.105 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005951/0.1059, allocations: 356.7 kB / 461.2 MB, free: 5.707 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002148/0.1062, allocations: 86.56 kB / 461.3 MB, free: 5.613 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.396e-05/0.1063, allocations: 44.77 kB / 461.4 MB, free: 5.566 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.448e-05/0.1063, allocations: 8 kB / 461.4 MB, free: 5.559 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.182e-05/0.1063, allocations: 30.56 kB / 461.4 MB, free: 5.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.1063, allocations: 0 / 461.4 MB, free: 5.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0004285/0.1068, allocations: 145.5 kB / 461.6 MB, free: 5.371 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.294e-05/0.1068, allocations: 55.55 kB / 461.6 MB, free: 5.305 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001606/0.107, allocations: 150.3 kB / 461.8 MB, free: 5.141 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.09e-05/0.107, allocations: 33.64 kB / 461.8 MB, free: 5.102 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.099e-05/0.1071, allocations: 104.1 kB / 461.9 MB, free: 4.996 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.902e-05/0.1071, allocations: 23.75 kB / 461.9 MB, free: 4.973 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.017e-05/0.1072, allocations: 37.69 kB / 461.9 MB, free: 4.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.1074, allocations: 314.8 kB / 462.3 MB, free: 4.613 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.583e-05/0.1075, allocations: 39.97 kB / 462.3 MB, free: 4.574 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.447e-05/0.1076, allocations: 39.86 kB / 462.3 MB, free: 4.535 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001822/0.1078, allocations: 84.83 kB / 462.4 MB, free: 4.449 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1078, allocations: 0 / 462.4 MB, free: 4.449 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002754/0.1081, allocations: 133.5 kB / 462.5 MB, free: 4.312 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.1081, allocations: 8 kB / 462.6 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.1081, allocations: 0 / 462.6 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.1081, allocations: 0 / 462.6 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.1082, allocations: 23.92 kB / 462.6 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.1083, allocations: 3.938 kB / 462.6 MB, free: 4.277 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.011e-05/0.1083, allocations: 11.89 kB / 462.6 MB, free: 4.266 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.899e-05/0.1084, allocations: 34.95 kB / 462.6 MB, free: 4.234 MB / 334.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: 4 (globalSeed.seed,signalBasedNoise.actualGlobalSeed,globalSeed.id_impure,signalBasedNoise.localSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * 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.0001125/0.1085, allocations: 122.3 kB / 462.7 MB, free: 4.105 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.768e-05/0.1086, allocations: 11.89 kB / 462.8 MB, free: 4.094 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.951e-05/0.1086, allocations: 12.72 kB / 462.8 MB, free: 4.078 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.1086, allocations: 0 / 462.8 MB, free: 4.078 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.1086, allocations: 3.938 kB / 462.8 MB, free: 4.074 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.1086, allocations: 4 kB / 462.8 MB, free: 4.07 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002481/0.1089, allocations: 205.5 kB / 463 MB, free: 3.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1089, allocations: 4 kB / 463 MB, free: 3.816 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.619e-05/0.109, allocations: 19.98 kB / 463 MB, free: 3.797 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.109, allocations: 0 / 463 MB, free: 3.797 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.109, allocations: 3.984 kB / 463 MB, free: 3.793 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.109, allocations: 4 kB / 463 MB, free: 3.789 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.109, allocations: 4.25 kB / 463 MB, free: 3.785 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000326/0.1094, allocations: 219.4 kB / 463.2 MB, free: 3.555 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.767e-05/0.1095, allocations: 105 kB / 463.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.073e-05/0.1095, allocations: 0 / 463.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.15e-05/0.1096, allocations: 0 / 463.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.823e-05/0.1096, allocations: 15.92 kB / 463.3 MB, free: 3.418 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.71e-05/0.1097, allocations: 31.83 kB / 463.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001041/0.1098, allocations: 111.2 kB / 463.5 MB, free: 3.277 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1098, allocations: 3.938 kB / 463.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003721/0.1102, allocations: 55.86 kB / 463.5 MB, free: 3.219 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (signalBasedNoise.localSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001155/0.1114, allocations: 0.8708 MB / 464.4 MB, free: 2.363 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002624/0.1116, allocations: 91.97 kB / 464.5 MB, free: 2.273 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.1116, allocations: 0 / 464.5 MB, free: 2.273 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001038/0.1118, allocations: 43.91 kB / 464.5 MB, free: 2.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002499/0.112, allocations: 15.94 kB / 464.6 MB, free: 2.215 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001934/0.114, allocations: 1.625 MB / 466.2 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004324/0.1144, allocations: 0.6962 MB / 466.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.557e-05/0.1145, allocations: 36.56 kB / 466.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.333e-05/0.1146, allocations: 35.41 kB / 467 MB, free: 15.71 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1146, allocations: 0 / 467 MB, free: 15.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02609/0.1407, allocations: 3.603 MB / 470.6 MB, free: 12.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.026/8.167, allocations: 23.41 kB / 470.6 MB, free: 12.17 MB / 350.1 MB (rm -f AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.sim & python3 -m fmpy simulate --output-file AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise_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_SignalBasedNoise.fmu > AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.pipe 2>&1)