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.0008047/0.0008047, 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.0009061/0.0009061, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.8962/0.8962, allocations: 177.1 MB / 202.8 MB, free: 5.738 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.02078/0.02078, allocations: 3.146 MB / 262.3 MB, free: 10.26 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.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 5.921e-06/5.921e-06, allocations: 0 / 385.7 MB, free: 12.22 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.459e-05/3.051e-05, allocations: 9.234 kB / 385.7 MB, free: 12.21 MB / 362.7 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.002051/0.002082, allocations: 1.513 MB / 387.2 MB, free: 10.69 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001354/0.003436, allocations: 1.141 MB / 388.4 MB, free: 9.539 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.919e-05/0.003515, allocations: 3.938 kB / 388.4 MB, free: 9.535 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001695/0.003685, allocations: 43.59 kB / 388.4 MB, free: 9.492 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 6.741e-05/0.003752, allocations: 27.8 kB / 388.5 MB, free: 9.465 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.0007443/0.004496, allocations: 251 kB / 388.7 MB, free: 9.219 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.000247/0.004743, allocations: 279.4 kB / 389 MB, free: 8.945 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.672e-05/0.00479, allocations: 9.797 kB / 389 MB, free: 8.934 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002411/0.005031, allocations: 135.6 kB / 389.1 MB, free: 8.801 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.345e-05/0.005115, allocations: 67.78 kB / 389.2 MB, free: 8.734 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.755e-05/0.005142, allocations: 12 kB / 389.2 MB, free: 8.723 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002442/0.005386, allocations: 203.6 kB / 389.4 MB, free: 8.523 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 4.389e-05/0.00543, allocations: 27.86 kB / 389.4 MB, free: 8.496 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 6.247e-05/0.005493, allocations: 63.83 kB / 389.5 MB, free: 8.434 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003384/0.005831, allocations: 315.1 kB / 389.8 MB, free: 8.125 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.105e-06/0.005834, allocations: 0 / 389.8 MB, free: 8.125 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.005835, allocations: 0 / 389.8 MB, free: 8.125 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.00584, allocations: 3.938 kB / 389.8 MB, free: 8.121 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001893/0.007734, allocations: 2.152 MB / 392 MB, free: 5.922 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.007775, allocations: 8.031 kB / 392 MB, free: 5.914 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.117e-05/0.007816, allocations: 42.73 kB / 392 MB, free: 5.863 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004957/0.008312, allocations: 108.7 kB / 392.1 MB, free: 5.758 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002618/0.008574, allocations: 193.3 kB / 392.3 MB, free: 5.543 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.308e-05/0.008597, allocations: 4.375 kB / 392.3 MB, free: 5.539 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.841e-05/0.008615, allocations: 12.36 kB / 392.3 MB, free: 5.527 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003635/0.008979, allocations: 349.9 kB / 392.7 MB, free: 5.164 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.008986, allocations: 4.125 kB / 392.7 MB, free: 5.16 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.654e-05/0.009003, allocations: 8.125 kB / 392.7 MB, free: 5.152 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.009007, allocations: 0 / 392.7 MB, free: 5.152 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002598/0.009267, allocations: 303.2 kB / 393 MB, free: 4.844 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001936/0.009461, allocations: 201.4 kB / 393.2 MB, free: 4.602 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002425/0.009703, allocations: 296.5 kB / 393.4 MB, free: 4.281 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002013/0.009905, allocations: 273 kB / 393.7 MB, free: 3.996 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.156e-05/0.009916, allocations: 384 / 393.7 MB, free: 3.996 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003808/0.0103, allocations: 0.5876 MB / 394.3 MB, free: 3.344 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 1.263e-06/0.0103, allocations: 0 / 394.3 MB, free: 3.344 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008446/0.01114, allocations: 0.9329 MB / 395.2 MB, free: 2.367 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.758e-05/0.01121, allocations: 148.5 kB / 395.4 MB, free: 2.191 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001455/0.01136, allocations: 211.2 kB / 395.6 MB, free: 1.977 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.01137, allocations: 29.7 kB / 395.6 MB, free: 1.941 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.255e-05/0.01142, allocations: 116.6 kB / 395.7 MB, free: 1.824 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.743e-05/0.01146, allocations: 55.47 kB / 395.8 MB, free: 1.77 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.204e-05/0.01152, allocations: 53.69 kB / 395.8 MB, free: 1.711 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.309e-05/0.01161, allocations: 330.8 kB / 396.2 MB, free: 1.379 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001864/0.01179, allocations: 231.6 kB / 396.4 MB, free: 1.137 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000159/0.01195, allocations: 219.8 kB / 396.6 MB, free: 0.9102 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003265/0.01228, allocations: 472.4 kB / 397.1 MB, free: 432 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.01228, allocations: 0 / 397.1 MB, free: 432 kB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004154/0.0127, allocations: 0.5417 MB / 397.6 MB, free: 15.85 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.611e-05/0.01275, allocations: 87.36 kB / 397.7 MB, free: 15.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.01276, allocations: 0 / 397.7 MB, free: 15.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.01277, allocations: 4 kB / 397.7 MB, free: 15.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.927e-05/0.01286, allocations: 23.92 kB / 397.7 MB, free: 15.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.01287, allocations: 0 / 397.7 MB, free: 15.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.983e-05/0.01292, allocations: 19.94 kB / 397.7 MB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.18e-05/0.01296, allocations: 35.94 kB / 397.8 MB, free: 15.67 MB / 378.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: 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.0001463/0.01311, allocations: 235.8 kB / 398 MB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.265e-05/0.01314, allocations: 35.8 kB / 398 MB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.703e-05/0.01316, allocations: 17.45 kB / 398.1 MB, free: 15.37 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/0.01317, allocations: 4 kB / 398.1 MB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.01317, allocations: 4 kB / 398.1 MB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.01318, allocations: 192 / 398.1 MB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003997/0.01357, allocations: 208.6 kB / 398.3 MB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.01358, allocations: 7.875 kB / 398.3 MB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.476e-05/0.01361, allocations: 11.98 kB / 398.3 MB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.01362, allocations: 0 / 398.3 MB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.01363, allocations: 8 kB / 398.3 MB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.756e-06/0.01364, allocations: 7.938 kB / 398.3 MB, free: 15.08 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.01364, allocations: 3.938 kB / 398.3 MB, free: 15.07 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006063/0.01424, allocations: 0.7743 MB / 399.1 MB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.475e-05/0.01433, allocations: 59.75 kB / 399.1 MB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.966e-05/0.01437, allocations: 23.98 kB / 399.2 MB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.249e-05/0.01442, allocations: 15.98 kB / 399.2 MB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.618e-05/0.01449, allocations: 19.92 kB / 399.2 MB, free: 14.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.429e-05/0.01453, allocations: 47.88 kB / 399.2 MB, free: 14.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.705e-05/0.01462, allocations: 148.6 kB / 399.4 MB, free: 13.95 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01462, allocations: 0 / 399.4 MB, free: 13.95 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002614/0.01488, allocations: 75.92 kB / 399.5 MB, free: 13.87 MB / 378.7 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.001132/0.01601, allocations: 1.485 MB / 400.9 MB, free: 12.38 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005761/0.01659, allocations: 0.7316 MB / 401.7 MB, free: 11.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.01659, allocations: 0 / 401.7 MB, free: 11.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003105/0.0169, allocations: 474 kB / 402.1 MB, free: 11.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001904/0.01709, allocations: 32.11 kB / 402.2 MB, free: 11.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002885/0.01998, allocations: 3.421 MB / 405.6 MB, free: 7.473 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.611e-05/0.02005, allocations: 114.9 kB / 405.7 MB, free: 7.34 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.759e-05/0.0201, allocations: 12.48 kB / 405.7 MB, free: 7.328 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.336e-05/0.02016, allocations: 52.48 kB / 405.8 MB, free: 7.277 MB / 378.7 MB Notification: Performance of SimCode: time 9.72e-07/0.02016, allocations: 0 / 405.8 MB, free: 7.277 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02206/0.04223, allocations: 6.935 MB / 412.7 MB, free: 440 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.879/6.921, allocations: 9.375 kB / 412.7 MB, free: 436 kB / 378.7 MB " [Timeout remaining time 653] (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 sys.exit(0), Time elapsed: 8.624207435175776] Failed to read output from testmodel.py, exit status != 0: 7.00691994279623 7.016813161 7.008009039 Calling exit ...