Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.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.0007874/0.0007874, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008075/0.0008075, allocations: 170.3 kB / 22.46 MB, free: 2.102 MB / 18.57 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 0.8825/0.8825, allocations: 177.1 MB / 202.8 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] 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.01475/0.01475, allocations: 3.15 MB / 262.3 MB, free: 10.28 MB / 250.7 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.VaryingDistribution,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_VaryingDistribution",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.VaryingDistribution,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_VaryingDistribution",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.163e-06/1.163e-06, allocations: 0 / 385.7 MB, free: 12.24 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.221e-05/1.338e-05, allocations: 6.219 kB / 385.7 MB, free: 12.23 MB / 362.7 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.001844/0.001858, allocations: 1.523 MB / 387.3 MB, free: 10.7 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001423/0.00328, allocations: 1.106 MB / 388.4 MB, free: 9.586 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.874e-05/0.003359, allocations: 3.938 kB / 388.4 MB, free: 9.582 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001318/0.003491, allocations: 23.8 kB / 388.4 MB, free: 9.559 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 9.716e-05/0.003588, allocations: 19.8 kB / 388.4 MB, free: 9.539 MB / 362.7 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.0006783/0.004266, allocations: 267 kB / 388.7 MB, free: 9.277 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001778/0.004444, allocations: 163.6 kB / 388.8 MB, free: 9.117 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.141e-05/0.004536, allocations: 21.27 kB / 388.9 MB, free: 9.094 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/0.004656, allocations: 75.81 kB / 388.9 MB, free: 9.02 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.033e-05/0.004736, allocations: 43.88 kB / 389 MB, free: 8.977 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.373e-05/0.00476, allocations: 12 kB / 389 MB, free: 8.965 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003462/0.005106, allocations: 275.4 kB / 389.2 MB, free: 8.695 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 4.692e-05/0.005153, allocations: 27.91 kB / 389.3 MB, free: 8.668 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 5.735e-05/0.00521, allocations: 31.92 kB / 389.3 MB, free: 8.637 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003702/0.005581, allocations: 335.1 kB / 389.6 MB, free: 8.309 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.593e-06/0.005582, allocations: 3.938 kB / 389.6 MB, free: 8.305 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.005583, allocations: 4 kB / 389.6 MB, free: 8.301 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.848e-06/0.005587, allocations: 0 / 389.6 MB, free: 8.301 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.001106/0.006693, allocations: 1.247 MB / 390.9 MB, free: 7.016 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.006729, allocations: 8.031 kB / 390.9 MB, free: 7.008 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.509e-05/0.006764, allocations: 38.75 kB / 390.9 MB, free: 6.961 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002429/0.007007, allocations: 52.77 kB / 391 MB, free: 6.91 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001962/0.007203, allocations: 158.2 kB / 391.1 MB, free: 6.727 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/0.007223, allocations: 8.375 kB / 391.1 MB, free: 6.719 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.238e-05/0.007246, allocations: 12.38 kB / 391.2 MB, free: 6.707 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002537/0.007499, allocations: 199.8 kB / 391.4 MB, free: 6.5 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.007507, allocations: 192 / 391.4 MB, free: 6.5 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.00752, allocations: 12.06 kB / 391.4 MB, free: 6.488 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.007524, allocations: 0 / 391.4 MB, free: 6.488 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002068/0.007731, allocations: 181.6 kB / 391.5 MB, free: 6.305 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000398/0.008129, allocations: 311.8 kB / 391.8 MB, free: 5.957 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000226/0.008355, allocations: 192.2 kB / 392 MB, free: 5.754 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001462/0.008501, allocations: 166.5 kB / 392.2 MB, free: 5.582 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.362e-05/0.008515, allocations: 0 / 392.2 MB, free: 5.582 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002505/0.008765, allocations: 334.1 kB / 392.5 MB, free: 5.219 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.082e-06/0.008767, allocations: 4 kB / 392.5 MB, free: 5.215 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0006037/0.00937, allocations: 0.5492 MB / 393.1 MB, free: 4.641 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.103e-05/0.009411, allocations: 89.11 kB / 393.2 MB, free: 4.535 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.009521, allocations: 167.9 kB / 393.3 MB, free: 4.359 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.009535, allocations: 25.7 kB / 393.4 MB, free: 4.328 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.783e-05/0.009583, allocations: 96.47 kB / 393.4 MB, free: 4.227 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.935e-05/0.009612, allocations: 43.67 kB / 393.5 MB, free: 4.184 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.009e-05/0.009663, allocations: 41.7 kB / 393.5 MB, free: 4.137 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.343e-05/0.009746, allocations: 330.8 kB / 393.9 MB, free: 3.805 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001359/0.009882, allocations: 133.6 kB / 394 MB, free: 3.668 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001334/0.01002, allocations: 145.6 kB / 394.1 MB, free: 3.52 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002522/0.01027, allocations: 283.3 kB / 394.4 MB, free: 3.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.01027, allocations: 0 / 394.4 MB, free: 3.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003264/0.0106, allocations: 352.8 kB / 394.7 MB, free: 2.867 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.364e-05/0.01063, allocations: 49.67 kB / 394.8 MB, free: 2.812 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.01063, allocations: 0 / 394.8 MB, free: 2.812 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.749e-06/0.01064, allocations: 0 / 394.8 MB, free: 2.812 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.29e-05/0.01073, allocations: 23.98 kB / 394.8 MB, free: 2.789 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.399e-06/0.01073, allocations: 0 / 394.8 MB, free: 2.789 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.095e-05/0.01078, allocations: 23.81 kB / 394.8 MB, free: 2.766 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.367e-05/0.01082, allocations: 23.97 kB / 394.9 MB, free: 2.742 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 (globalSeed.seed,discreteNoise.actualGlobalSeed,discreteNoise.localSeed,globalSeed.id_impure,discreteNoise.r,discreteNoise.bufferStartTime,discreteNoise.buffer[2],discreteNoise.buffer[1],discreteNoise.state[4],discreteNoise.state[3],discreteNoise.state[2],discreteNoise.state[1],$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 1 * 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.0001108/0.01093, allocations: 183.4 kB / 395 MB, free: 2.547 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.502e-05/0.01096, allocations: 15.89 kB / 395.1 MB, free: 2.531 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.953e-05/0.01099, allocations: 13.47 kB / 395.1 MB, free: 2.512 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.01099, allocations: 3.984 kB / 395.1 MB, free: 2.508 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.011, allocations: 0 / 395.1 MB, free: 2.508 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.011, allocations: 0 / 395.1 MB, free: 2.508 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001082/0.01111, allocations: 176.8 kB / 395.3 MB, free: 2.293 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.01111, allocations: 3.938 kB / 395.3 MB, free: 2.289 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.381e-05/0.01116, allocations: 23.97 kB / 395.3 MB, free: 2.266 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.01117, allocations: 0 / 395.3 MB, free: 2.266 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.01118, allocations: 7.984 kB / 395.3 MB, free: 2.258 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.01118, allocations: 0 / 395.3 MB, free: 2.258 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.01118, allocations: 0 / 395.3 MB, free: 2.258 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006411/0.01182, allocations: 0.6696 MB / 396 MB, free: 1.551 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.633e-05/0.01184, allocations: 19.86 kB / 396 MB, free: 1.531 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.509e-05/0.01187, allocations: 12.06 kB / 396 MB, free: 1.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.948e-05/0.01191, allocations: 15.98 kB / 396 MB, free: 1.504 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.786e-05/0.01196, allocations: 11.98 kB / 396 MB, free: 1.492 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.653e-05/0.01199, allocations: 23.97 kB / 396 MB, free: 1.469 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.114e-05/0.01205, allocations: 124.2 kB / 396.2 MB, free: 1.348 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01205, allocations: 0 / 396.2 MB, free: 1.348 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002347/0.01229, allocations: 87.86 kB / 396.2 MB, free: 1.262 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (continuousMean.mu) * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,discreteNoise.state[1],discreteNoise.state[2],discreteNoise.state[3],discreteNoise.state[4],discreteNoise.buffer[1],discreteNoise.buffer[2],discreteNoise.bufferStartTime,discreteNoise.r) * Number of discrete states: 10 (discreteNoise.buffer[2],discreteNoise.buffer[1],discreteNoise.r,discreteNoise.bufferStartTime,discreteNoise.state[4],discreteNoise.state[3],discreteNoise.state[2],discreteNoise.state[1],$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * 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.001095/0.01338, allocations: 1.386 MB / 397.6 MB, free: 15.88 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000418/0.0138, allocations: 430.6 kB / 398.1 MB, free: 15.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.0138, allocations: 0 / 398.1 MB, free: 15.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002068/0.01401, allocations: 260.9 kB / 398.3 MB, free: 15.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001411/0.01415, allocations: 23.31 kB / 398.3 MB, free: 15.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001985/0.01613, allocations: 2.485 MB / 400.8 MB, free: 12.54 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.034e-05/0.01619, allocations: 105.2 kB / 400.9 MB, free: 12.41 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 3.637e-05/0.01623, allocations: 12.48 kB / 400.9 MB, free: 12.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.521e-05/0.01627, allocations: 32.48 kB / 401 MB, free: 12.37 MB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.01628, allocations: 0 / 401 MB, free: 12.37 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02204/0.03832, allocations: 5.746 MB / 406.7 MB, free: 6.707 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.956/6.995, allocations: 7.438 kB / 406.7 MB, free: 6.703 MB / 378.7 MB " [Timeout remaining time 653] (rm -f AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AdvancedNoise_AdvancedNoise_Examples_VaryingDistribution_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 AdvancedNoise_AdvancedNoise_Examples_VaryingDistribution.fmu > AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.77134685497731] Failed to read output from testmodel.py, exit status != 0: 7.0777484234422445 7.08701583 7.07981339 Calling exit ...