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.001139/0.001139, 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.001226/0.001226, allocations: 195.7 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.344/1.344, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1417/0.1417, allocations: 3.888 MB / 294.3 MB, free: 3.242 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 59.89 kB / 355.6 MB, free: 3.512 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09996/0.1012, allocations: 50.2 MB / 405.8 MB, free: 1.273 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedNoise): time 0.002701/0.1039, allocations: 1.456 MB / 407.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001797/0.1058, allocations: 1.055 MB / 408.3 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.94e-05/0.1058, allocations: 4 kB / 408.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001284/0.106, allocations: 11.88 kB / 408.3 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001698/0.1062, allocations: 27.8 kB / 408.3 MB, free: 14.7 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'. [/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.0006466/0.1068, allocations: 175.4 kB / 408.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001665/0.107, allocations: 119.7 kB / 408.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.1071, allocations: 15.98 kB / 408.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.497e-05/0.1072, allocations: 47.72 kB / 408.7 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.493e-05/0.1073, allocations: 51.77 kB / 408.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.021e-05/0.1073, allocations: 4 kB / 408.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002708/0.1076, allocations: 163.8 kB / 408.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.112e-05/0.1077, allocations: 27.91 kB / 408.9 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.085e-05/0.1077, allocations: 39.73 kB / 409 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003076/0.1081, allocations: 203.5 kB / 409.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.1081, allocations: 0 / 409.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1081, allocations: 0 / 409.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.241e-06/0.1081, allocations: 0 / 409.2 MB, free: 13.86 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005978/0.1087, allocations: 427.3 kB / 409.6 MB, free: 13.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.1088, allocations: 20.02 kB / 409.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.121e-05/0.1088, allocations: 30.75 kB / 409.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000433/0.1093, allocations: 48.78 kB / 409.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002835/0.1095, allocations: 217.7 kB / 409.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.843e-05/0.1096, allocations: 12.38 kB / 409.9 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.657e-05/0.1096, allocations: 7.938 kB / 409.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000203/0.1098, allocations: 77.64 kB / 410 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.1098, allocations: 4 kB / 410 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.339e-05/0.1099, allocations: 4 kB / 410 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.1099, allocations: 3.938 kB / 410 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001762/0.1101, allocations: 59.89 kB / 410 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005809/0.1106, allocations: 352.7 kB / 410.4 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002135/0.1109, allocations: 90.55 kB / 410.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.506e-05/0.111, allocations: 40.84 kB / 410.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.197e-05/0.111, allocations: 0 / 410.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.066e-05/0.111, allocations: 34.56 kB / 410.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.062e-06/0.111, allocations: 3.938 kB / 410.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0004196/0.1115, allocations: 153.6 kB / 410.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.726e-05/0.1115, allocations: 55.41 kB / 410.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001402/0.1117, allocations: 151.9 kB / 410.9 MB, free: 11.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.086e-05/0.1117, allocations: 25.7 kB / 410.9 MB, free: 11.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.355e-05/0.1118, allocations: 96.14 kB / 411 MB, free: 11.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.178e-05/0.1118, allocations: 31.55 kB / 411.1 MB, free: 11.74 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.844e-05/0.1119, allocations: 29.64 kB / 411.1 MB, free: 11.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.112, allocations: 322.8 kB / 411.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.119e-05/0.1121, allocations: 35.98 kB / 411.4 MB, free: 11.35 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.573e-05/0.1122, allocations: 39.97 kB / 411.5 MB, free: 11.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001648/0.1123, allocations: 84.77 kB / 411.6 MB, free: 11.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1124, allocations: 0 / 411.6 MB, free: 11.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002554/0.1126, allocations: 129.5 kB / 411.7 MB, free: 11.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.547e-05/0.1126, allocations: 8 kB / 411.7 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1127, allocations: 0 / 411.7 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.1127, allocations: 0 / 411.7 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.1128, allocations: 31.91 kB / 411.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.403e-06/0.1128, allocations: 3.938 kB / 411.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.888e-05/0.1129, allocations: 4 kB / 411.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.693e-05/0.1129, allocations: 27.95 kB / 411.8 MB, free: 11.02 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: 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.0001025/0.1131, allocations: 119 kB / 411.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.72e-05/0.1131, allocations: 7.906 kB / 411.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.176e-05/0.1132, allocations: 16.7 kB / 411.9 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.1132, allocations: 0 / 411.9 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.1132, allocations: 7.938 kB / 411.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.1132, allocations: 0 / 411.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002423/0.1134, allocations: 217.4 kB / 412.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1134, allocations: 0 / 412.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.227e-05/0.1135, allocations: 23.86 kB / 412.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.1135, allocations: 0 / 412.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.1136, allocations: 0 / 412.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1136, allocations: 320 / 412.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.481e-06/0.1136, allocations: 3.938 kB / 412.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003005/0.1139, allocations: 235.3 kB / 412.4 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.271e-05/0.114, allocations: 96.98 kB / 412.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.099e-05/0.114, allocations: 0 / 412.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.43e-05/0.1141, allocations: 8 kB / 412.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.22e-05/0.1141, allocations: 11.92 kB / 412.5 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.269e-05/0.1142, allocations: 28.83 kB / 412.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.207e-05/0.1143, allocations: 108.8 kB / 412.6 MB, free: 10.06 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1143, allocations: 4 kB / 412.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003587/0.1146, allocations: 51.98 kB / 412.7 MB, free: 10 MB / 350.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.0009364/0.1156, allocations: 0.8732 MB / 413.6 MB, free: 9.148 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002414/0.1158, allocations: 91.88 kB / 413.6 MB, free: 9.059 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1158, allocations: 4 kB / 413.6 MB, free: 9.055 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.902e-05/0.116, allocations: 51.89 kB / 413.7 MB, free: 9.004 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002427/0.1162, allocations: 10.28 kB / 413.7 MB, free: 8.996 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001727/0.1179, allocations: 1.613 MB / 415.3 MB, free: 7.305 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002756/0.1182, allocations: 0.7002 MB / 416 MB, free: 6.578 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.546e-05/0.1183, allocations: 32.56 kB / 416.1 MB, free: 6.547 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.049e-05/0.1184, allocations: 31.42 kB / 416.1 MB, free: 6.516 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1184, allocations: 0 / 416.1 MB, free: 6.516 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02046/0.1389, allocations: 3.564 MB / 419.6 MB, free: 3.004 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.658/7.797, allocations: 15.5 kB / 419.7 MB, free: 2.992 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)