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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 105.5 kB / 16.45 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.474/1.474, allocations: 230.6 MB / 252.8 MB, free: 8.949 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise master/package.mo): time 0.061/0.061, allocations: 3.923 MB / 312.8 MB, free: 0.4922 MB / 238.1 MB " [Timeout remaining time 180] Using package AdvancedNoise with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 67.89 kB / 434.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09768/0.09966, allocations: 54.1 MB / 488.6 MB, free: 8.434 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.003042/0.1027, allocations: 1.543 MB / 490.2 MB, free: 6.883 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002274/0.105, allocations: 1.199 MB / 491.4 MB, free: 5.676 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.381e-05/0.1051, allocations: 7.938 kB / 491.4 MB, free: 5.668 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001634/0.1052, allocations: 39.66 kB / 491.4 MB, free: 5.629 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.134e-05/0.1053, allocations: 23.8 kB / 491.5 MB, free: 5.605 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.0007575/0.106, allocations: 235.3 kB / 491.7 MB, free: 5.375 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003025/0.1063, allocations: 243.5 kB / 491.9 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.913e-05/0.1064, allocations: 9.547 kB / 491.9 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002229/0.1066, allocations: 111.6 kB / 492 MB, free: 5.016 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001082/0.1067, allocations: 75.67 kB / 492.1 MB, free: 4.941 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.355e-05/0.1068, allocations: 12 kB / 492.1 MB, free: 4.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003006/0.1071, allocations: 179.7 kB / 492.3 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.518e-05/0.1071, allocations: 31.84 kB / 492.3 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.93e-05/0.1072, allocations: 87.53 kB / 492.4 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004099/0.1076, allocations: 291.2 kB / 492.7 MB, free: 4.352 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.1076, allocations: 0 / 492.7 MB, free: 4.352 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1076, allocations: 4 kB / 492.7 MB, free: 4.348 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.075e-05/0.1076, allocations: 0 / 492.7 MB, free: 4.348 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.002689/0.1103, allocations: 2.266 MB / 495 MB, free: 2.016 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.1104, allocations: 15.98 kB / 495 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.807e-05/0.1104, allocations: 38.75 kB / 495 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007051/0.1111, allocations: 108.7 kB / 495.1 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003317/0.1115, allocations: 259.9 kB / 495.4 MB, free: 1.555 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.372e-05/0.1115, allocations: 8.359 kB / 495.4 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.931e-05/0.1115, allocations: 12.38 kB / 495.4 MB, free: 1.535 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000498/0.112, allocations: 255.4 kB / 495.7 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.112, allocations: 4 kB / 495.7 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.967e-05/0.112, allocations: 4 kB / 495.7 MB, free: 1.266 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.1121, allocations: 4 kB / 495.7 MB, free: 1.262 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004169/0.1125, allocations: 219.8 kB / 495.9 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003102/0.1128, allocations: 254.3 kB / 496.1 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003708/0.1131, allocations: 217.1 kB / 496.3 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003164/0.1135, allocations: 201.9 kB / 496.5 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.212e-05/0.1135, allocations: 0 / 496.5 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007069/0.1142, allocations: 0.5188 MB / 497.1 MB, free: 15.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 1.242e-06/0.1142, allocations: 0 / 497.1 MB, free: 15.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=22): time 0.00132/0.1155, allocations: 0.7661 MB / 497.8 MB, free: 14.95 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001556/0.1157, allocations: 164.5 kB / 498 MB, free: 14.76 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002537/0.1159, allocations: 207.1 kB / 498.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.007e-05/0.1159, allocations: 29.7 kB / 498.2 MB, free: 14.51 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.726e-05/0.116, allocations: 108.7 kB / 498.3 MB, free: 14.4 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.699e-05/0.1161, allocations: 55.64 kB / 498.4 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.1162, allocations: 57.69 kB / 498.4 MB, free: 14.28 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.1164, allocations: 326.8 kB / 498.8 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002748/0.1166, allocations: 140.2 kB / 498.9 MB, free: 13.81 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002637/0.1169, allocations: 144.3 kB / 499 MB, free: 13.67 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00064/0.1175, allocations: 457.3 kB / 499.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.1175, allocations: 4 kB / 499.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007395/0.1183, allocations: 467.4 kB / 499.9 MB, free: 12.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.694e-05/0.1184, allocations: 95.36 kB / 0.4883 GB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.1184, allocations: 0 / 0.4883 GB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.1184, allocations: 0 / 0.4883 GB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000143/0.1185, allocations: 19.92 kB / 0.4883 GB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.1186, allocations: 0 / 0.4883 GB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000112/0.1187, allocations: 31.77 kB / 0.4884 GB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.902e-05/0.1187, allocations: 39.95 kB / 0.4884 GB, free: 12.53 MB / 366.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.0002859/0.119, allocations: 252.3 kB / 0.4886 GB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.015e-05/0.1191, allocations: 27.91 kB / 0.4887 GB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.527e-05/0.1191, allocations: 13.41 kB / 0.4887 GB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.117e-06/0.1191, allocations: 3.984 kB / 0.4887 GB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1191, allocations: 0 / 0.4887 GB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.1191, allocations: 0 / 0.4887 GB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002896/0.1194, allocations: 277.4 kB / 0.489 GB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1194, allocations: 4 kB / 0.489 GB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.2e-05/0.1195, allocations: 8 kB / 0.489 GB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.1195, allocations: 3.938 kB / 0.489 GB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.548e-05/0.1195, allocations: 15.98 kB / 0.489 GB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1195, allocations: 0 / 0.489 GB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.1195, allocations: 4.188 kB / 0.489 GB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/0.1207, allocations: 0.7025 MB / 0.4897 GB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001803/0.1208, allocations: 140.8 kB / 0.4898 GB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.539e-05/0.1209, allocations: 27.92 kB / 0.4898 GB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.121, allocations: 8 kB / 0.4898 GB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/0.1211, allocations: 31.95 kB / 0.4899 GB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.526e-05/0.1212, allocations: 35.94 kB / 0.4899 GB, free: 10.86 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001734/0.1214, allocations: 148.6 kB / 0.49 GB, free: 10.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1214, allocations: 0 / 0.49 GB, free: 10.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003995/0.1218, allocations: 79.94 kB / 0.4901 GB, free: 10.64 MB / 366.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.002261/0.1241, allocations: 1.399 MB / 0.4915 GB, free: 9.242 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001137/0.1252, allocations: 0.5727 MB / 0.492 GB, free: 8.645 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.1252, allocations: 0 / 0.492 GB, free: 8.645 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006299/0.1258, allocations: 398.6 kB / 0.4924 GB, free: 8.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003431/0.1262, allocations: 39.23 kB / 0.4925 GB, free: 8.195 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004368/0.1305, allocations: 2.969 MB / 0.4954 GB, free: 5.121 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003828/0.1309, allocations: 0.7275 MB / 0.4961 GB, free: 4.367 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.74e-05/0.131, allocations: 16.55 kB / 0.4961 GB, free: 4.352 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.828e-05/0.1311, allocations: 55.41 kB / 0.4961 GB, free: 4.301 MB / 366.1 MB Notification: Performance of SimCode: time 8.21e-07/0.1311, allocations: 0 / 0.4961 GB, free: 4.301 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03271/0.1638, allocations: 5.952 MB / 0.502 GB, free: 14.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.105/8.269, allocations: 16.66 kB / 0.502 GB, free: 14.42 MB / 382.1 MB " [Timeout remaining time 652] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.894135918933898] Failed to read output from testmodel.py, exit status != 0: 8.339646571082994 8.354157336 8.243625735 Calling exit ...