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.001364/0.001364, allocations: 115.9 kB / 17.16 MB, free: 5.895 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.001438/0.001438, allocations: 215 kB / 20.13 MB, free: 2.949 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.544/1.544, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.05141/0.05141, allocations: 3.924 MB / 313.5 MB, free: 2.109 MB / 238.1 MB " [Timeout remaining time 180] Using package AdvancedNoise with version 1.1.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.TimeBasedNoise,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AdvancedNoise requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 64.02 kB / 435.2 MB, free: 38.15 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09939/0.1014, allocations: 54.11 MB / 489.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.002415/0.1038, allocations: 1.534 MB / 490.9 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001788/0.1056, allocations: 1.201 MB / 492.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.797e-05/0.1057, allocations: 4.812 kB / 492.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001494/0.1058, allocations: 39.5 kB / 492.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.891e-05/0.1059, allocations: 24.81 kB / 492.2 MB, free: 11.14 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.000699/0.1066, allocations: 234.9 kB / 492.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002679/0.1069, allocations: 253.5 kB / 492.6 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.05e-05/0.1069, allocations: 5.812 kB / 492.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002088/0.1071, allocations: 112.5 kB / 492.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.125e-05/0.1072, allocations: 73.73 kB / 492.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.196e-05/0.1072, allocations: 13.16 kB / 492.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002747/0.1075, allocations: 177.5 kB / 493 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.886e-05/0.1076, allocations: 28.52 kB / 493 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.747e-05/0.1076, allocations: 94.39 kB / 493.1 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003699/0.108, allocations: 277.3 kB / 493.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.108, allocations: 3.984 kB / 493.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.108, allocations: 5.375 kB / 493.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.098e-05/0.108, allocations: 0 / 493.4 MB, free: 10.34 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.002111/0.1101, allocations: 2.271 MB / 495.7 MB, free: 8.781 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.1102, allocations: 8.031 kB / 495.7 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.666e-05/0.1102, allocations: 192 / 495.7 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.428e-05/0.1102, allocations: 42.75 kB / 495.7 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006659/0.1109, allocations: 112.6 kB / 495.8 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000263/0.1112, allocations: 259.9 kB / 496.1 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.357e-05/0.1112, allocations: 4.375 kB / 496.1 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.984e-05/0.1112, allocations: 16.38 kB / 496.1 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003595/0.1116, allocations: 259.1 kB / 496.4 MB, free: 8.035 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.1116, allocations: 3.938 kB / 496.4 MB, free: 8.031 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.344e-05/0.1116, allocations: 4 kB / 496.4 MB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.371e-06/0.1116, allocations: 4 kB / 496.4 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003179/0.1119, allocations: 219.9 kB / 496.6 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002105/0.1121, allocations: 250.3 kB / 496.8 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002631/0.1124, allocations: 221.2 kB / 497.1 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002169/0.1126, allocations: 189.7 kB / 497.2 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.641e-05/0.1126, allocations: 7.938 kB / 497.2 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000399/0.113, allocations: 0.5149 MB / 497.8 MB, free: 6.508 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.213e-06/0.113, allocations: 0 / 497.8 MB, free: 6.508 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0009826/0.114, allocations: 0.7739 MB / 498.5 MB, free: 5.715 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.478e-05/0.1141, allocations: 156.5 kB / 498.7 MB, free: 5.531 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001529/0.1142, allocations: 215.1 kB / 498.9 MB, free: 5.309 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.737e-05/0.1143, allocations: 25.7 kB / 498.9 MB, free: 5.277 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.286e-05/0.1143, allocations: 112.7 kB / 499 MB, free: 5.164 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.995e-05/0.1143, allocations: 55.58 kB / 499.1 MB, free: 5.109 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.842e-05/0.1144, allocations: 49.77 kB / 499.1 MB, free: 5.055 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.429e-05/0.1145, allocations: 338.8 kB / 499.5 MB, free: 4.715 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000193/0.1147, allocations: 136.2 kB / 499.6 MB, free: 4.578 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001817/0.1149, allocations: 140.4 kB / 499.7 MB, free: 4.441 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004283/0.1153, allocations: 466.9 kB / 0.4885 GB, free: 3.961 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1153, allocations: 0 / 0.4885 GB, free: 3.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005287/0.1158, allocations: 463.3 kB / 0.4889 GB, free: 3.492 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.888e-05/0.1159, allocations: 96.92 kB / 0.489 GB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.1159, allocations: 0 / 0.489 GB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.1159, allocations: 4 kB / 0.489 GB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.116, allocations: 19.92 kB / 0.489 GB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.116, allocations: 0 / 0.489 GB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.56e-05/0.1161, allocations: 27.88 kB / 0.4891 GB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.023e-05/0.1162, allocations: 35.89 kB / 0.4891 GB, free: 3.301 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.0001719/0.1163, allocations: 264.2 kB / 0.4893 GB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.748e-05/0.1164, allocations: 27.86 kB / 0.4894 GB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.778e-05/0.1164, allocations: 17.41 kB / 0.4894 GB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.1164, allocations: 0 / 0.4894 GB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.85e-06/0.1164, allocations: 3.984 kB / 0.4894 GB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.1164, allocations: 192 / 0.4894 GB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001569/0.1166, allocations: 269.4 kB / 0.4896 GB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1166, allocations: 3.938 kB / 0.4896 GB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.702e-05/0.1166, allocations: 4 kB / 0.4897 GB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.746e-06/0.1166, allocations: 8 kB / 0.4897 GB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.878e-05/0.1167, allocations: 19.97 kB / 0.4897 GB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.1167, allocations: 0 / 0.4897 GB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1167, allocations: 0 / 0.4897 GB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007461/0.1174, allocations: 0.7056 MB / 0.4904 GB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/0.1175, allocations: 144.8 kB / 0.4905 GB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.65e-05/0.1176, allocations: 23.98 kB / 0.4905 GB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.1177, allocations: 12 kB / 0.4905 GB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.806e-05/0.1178, allocations: 19.97 kB / 0.4906 GB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.261e-05/0.1178, allocations: 43.94 kB / 0.4906 GB, free: 1.625 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.218e-05/0.1179, allocations: 140.7 kB / 0.4907 GB, free: 1.488 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1179, allocations: 0 / 0.4907 GB, free: 1.488 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003364/0.1182, allocations: 79.88 kB / 0.4908 GB, free: 1.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.001384/0.1196, allocations: 1.4 MB / 0.4922 GB, free: 16 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009478/0.1206, allocations: 0.5758 MB / 0.4927 GB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1206, allocations: 4 kB / 0.4927 GB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005369/0.1211, allocations: 406.6 kB / 0.4931 GB, free: 14.99 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002858/0.1214, allocations: 35.86 kB / 0.4932 GB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004153/0.1256, allocations: 2.96 MB / 0.4961 GB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004289/0.126, allocations: 0.7314 MB / 0.4968 GB, free: 11.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.377e-05/0.1261, allocations: 16.53 kB / 0.4968 GB, free: 11.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.1262, allocations: 51.41 kB / 0.4968 GB, free: 11.07 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1262, allocations: 0 / 0.4968 GB, free: 11.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02584/0.152, allocations: 5.989 MB / 0.5027 GB, free: 5.176 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.62/8.772, allocations: 7.516 kB / 0.5027 GB, free: 5.172 MB / 366.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise_fmu --startTime=0 --stopTime=4 --stepSize=0.0016 --timeout=50 --tolerance=1e-06 AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.fmu > AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.525656463985797] Failed to read output from testmodel.py, exit status != 0: 8.901646144979168 8.918412004 8.80696096 Calling exit ...