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.001286/0.001286, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001648/0.001648, allocations: 209.6 kB / 22.24 MB, free: 5.262 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.487/1.487, allocations: 230.6 MB / 256 MB, free: 7.789 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.02852/0.02852, allocations: 3.943 MB / 316.4 MB, free: 15.22 MB / 254.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.002003/0.002003, allocations: 63.91 kB / 439.7 MB, free: 11.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1068, allocations: 54.15 MB / 493.8 MB, free: 5.492 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.003654/0.1104, allocations: 1.504 MB / 495.3 MB, free: 3.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002545/0.113, allocations: 1.141 MB / 496.5 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.601e-05/0.1131, allocations: 7.938 kB / 496.5 MB, free: 2.824 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001671/0.1132, allocations: 43.66 kB / 496.5 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.201e-05/0.1133, allocations: 23.78 kB / 496.6 MB, free: 2.758 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.0008556/0.1142, allocations: 247.2 kB / 496.8 MB, free: 2.516 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003503/0.1145, allocations: 271.4 kB / 497.1 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.277e-05/0.1146, allocations: 13.69 kB / 497.1 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002434/0.1148, allocations: 99.72 kB / 497.2 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001276/0.1149, allocations: 79.55 kB / 497.2 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.385e-05/0.115, allocations: 12 kB / 497.3 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003911/0.1154, allocations: 207.7 kB / 497.5 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.649e-05/0.1154, allocations: 23.92 kB / 497.5 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001039/0.1155, allocations: 71.59 kB / 497.6 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004517/0.116, allocations: 295 kB / 497.8 MB, free: 1.461 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.116, allocations: 0 / 497.8 MB, free: 1.461 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.116, allocations: 0 / 497.8 MB, free: 1.461 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.247e-05/0.116, allocations: 0 / 497.8 MB, free: 1.461 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.002786/0.1188, allocations: 2.156 MB / 0.4883 GB, free: 15.26 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.1188, allocations: 11.97 kB / 0.4883 GB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.753e-05/0.1189, allocations: 42.75 kB / 0.4883 GB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006681/0.1195, allocations: 104.7 kB / 0.4884 GB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003481/0.1199, allocations: 202 kB / 0.4886 GB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.024e-05/0.1199, allocations: 4.375 kB / 0.4886 GB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.376e-05/0.1199, allocations: 12.38 kB / 0.4886 GB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005089/0.1205, allocations: 336.9 kB / 0.489 GB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.1205, allocations: 0 / 0.489 GB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.841e-05/0.1205, allocations: 4 kB / 0.489 GB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.1205, allocations: 7.984 kB / 0.489 GB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000475/0.121, allocations: 307.2 kB / 0.4893 GB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000278/0.1212, allocations: 209.4 kB / 0.4895 GB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004341/0.1217, allocations: 296.6 kB / 0.4898 GB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004119/0.1221, allocations: 273 kB / 0.49 GB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.359e-05/0.1221, allocations: 0 / 0.49 GB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007207/0.1228, allocations: 0.5883 MB / 0.4906 GB, free: 12.67 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 9.82e-07/0.1228, allocations: 0 / 0.4906 GB, free: 12.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=22): time 0.001499/0.1243, allocations: 0.9291 MB / 0.4915 GB, free: 11.7 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/0.1244, allocations: 148.5 kB / 0.4916 GB, free: 11.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000254/0.1247, allocations: 219 kB / 0.4918 GB, free: 11.3 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.199e-05/0.1247, allocations: 25.7 kB / 0.4919 GB, free: 11.27 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.644e-05/0.1248, allocations: 112.6 kB / 0.492 GB, free: 11.15 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.777e-05/0.1249, allocations: 47.59 kB / 0.492 GB, free: 11.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.651e-05/0.125, allocations: 61.7 kB / 0.4921 GB, free: 11.04 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002435/0.1252, allocations: 338.8 kB / 0.4924 GB, free: 10.7 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003223/0.1255, allocations: 219.5 kB / 0.4926 GB, free: 10.47 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003089/0.1258, allocations: 223.8 kB / 0.4928 GB, free: 10.24 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006315/0.1265, allocations: 469.4 kB / 0.4933 GB, free: 9.754 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.1265, allocations: 4 kB / 0.4933 GB, free: 9.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000763/0.1272, allocations: 0.5417 MB / 0.4938 GB, free: 9.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.262e-05/0.1273, allocations: 87.36 kB / 0.4939 GB, free: 9.082 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.1273, allocations: 0 / 0.4939 GB, free: 9.082 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.1274, allocations: 4 kB / 0.4939 GB, free: 9.078 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001269/0.1275, allocations: 15.98 kB / 0.4939 GB, free: 9.062 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.709e-06/0.1275, allocations: 3.984 kB / 0.4939 GB, free: 9.059 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001049/0.1276, allocations: 24.12 kB / 0.4939 GB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.759e-05/0.1277, allocations: 31.95 kB / 0.494 GB, free: 9.004 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.0002799/0.1279, allocations: 243.7 kB / 0.4942 GB, free: 8.746 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.539e-05/0.128, allocations: 31.86 kB / 0.4942 GB, free: 8.715 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.474e-05/0.128, allocations: 25.27 kB / 0.4943 GB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.128, allocations: 0 / 0.4943 GB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.128, allocations: 0 / 0.4943 GB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.128, allocations: 4 kB / 0.4943 GB, free: 8.684 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002692/0.1283, allocations: 212.5 kB / 0.4945 GB, free: 8.434 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1283, allocations: 0 / 0.4945 GB, free: 8.434 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.162e-05/0.1284, allocations: 11.98 kB / 0.4945 GB, free: 8.422 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.1284, allocations: 0 / 0.4945 GB, free: 8.422 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.574e-05/0.1284, allocations: 19.98 kB / 0.4945 GB, free: 8.402 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.1284, allocations: 7.984 kB / 0.4945 GB, free: 8.395 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1284, allocations: 0 / 0.4945 GB, free: 8.395 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001205/0.1296, allocations: 0.7637 MB / 0.4952 GB, free: 7.586 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001599/0.1298, allocations: 63.69 kB / 0.4953 GB, free: 7.523 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.912e-05/0.1299, allocations: 19.98 kB / 0.4953 GB, free: 7.504 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.13, allocations: 15.98 kB / 0.4953 GB, free: 7.488 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.126e-05/0.1301, allocations: 23.91 kB / 0.4954 GB, free: 7.465 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.83e-05/0.1301, allocations: 43.94 kB / 0.4954 GB, free: 7.422 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001701/0.1303, allocations: 152.6 kB / 0.4955 GB, free: 7.273 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1303, allocations: 4 kB / 0.4956 GB, free: 7.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003541/0.1306, allocations: 75.94 kB / 0.4956 GB, free: 7.195 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.001929/0.1326, allocations: 1.474 MB / 0.4971 GB, free: 5.719 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001064/0.1336, allocations: 0.7355 MB / 0.4978 GB, free: 4.934 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1336, allocations: 4 kB / 0.4978 GB, free: 4.93 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006026/0.1342, allocations: 478 kB / 0.4982 GB, free: 4.426 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002516/0.1345, allocations: 24 kB / 0.4983 GB, free: 4.402 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004455/0.139, allocations: 3.411 MB / 0.5016 GB, free: 0.8164 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000136/0.1391, allocations: 119 kB / 0.5017 GB, free: 0.6797 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.182e-05/0.1392, allocations: 20.47 kB / 0.5017 GB, free: 0.6602 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.137e-05/0.1392, allocations: 51.41 kB / 0.5018 GB, free: 0.6133 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1392, allocations: 0 / 0.5018 GB, free: 0.6133 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03918/0.1784, allocations: 6.795 MB / 0.5084 GB, free: 9.922 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.72, allocations: 14.12 kB / 0.5084 GB, free: 9.914 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.560204123146832] Failed to read output from testmodel.py, exit status != 0: 11.830698587931693 12.029744828 11.910672289 Calling exit ...