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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo", uses=false) Using package AdvancedNoise with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005761/0.005761, allocations: 97.22 kB / 15.73 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 195.2 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.05278/0.05278, allocations: 3.905 MB / 294.4 MB, free: 11 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 68.2 kB / 406.4 MB, free: 28.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08194/0.0839, allocations: 50.17 MB / 456.6 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.002594/0.0865, allocations: 1.528 MB / 458.1 MB, free: 8.957 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002052/0.08855, allocations: 1.153 MB / 459.3 MB, free: 7.797 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.491e-05/0.08862, allocations: 0 / 459.3 MB, free: 7.797 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001411/0.08876, allocations: 39.59 kB / 459.3 MB, free: 7.758 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.14e-05/0.08883, allocations: 23.73 kB / 459.3 MB, free: 7.734 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.0007275/0.08956, allocations: 243.3 kB / 459.6 MB, free: 7.496 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000303/0.08986, allocations: 255.5 kB / 459.8 MB, free: 7.246 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.056e-05/0.0899, allocations: 5.562 kB / 459.8 MB, free: 7.242 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001945/0.09009, allocations: 107.6 kB / 459.9 MB, free: 7.137 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001111/0.0902, allocations: 71.62 kB / 460 MB, free: 7.066 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.287e-05/0.09024, allocations: 12 kB / 460 MB, free: 7.055 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003201/0.09056, allocations: 171.8 kB / 460.2 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.121e-05/0.09061, allocations: 23.88 kB / 460.2 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.824e-05/0.09071, allocations: 87.58 kB / 460.3 MB, free: 6.777 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000406/0.09111, allocations: 287.2 kB / 460.6 MB, free: 6.496 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.09112, allocations: 0 / 460.6 MB, free: 6.496 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.09112, allocations: 0 / 460.6 MB, free: 6.496 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.09112, allocations: 3.938 kB / 460.6 MB, free: 6.492 MB / 334.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.002744/0.09387, allocations: 2.27 MB / 462.8 MB, free: 4.156 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.09391, allocations: 8.031 kB / 462.9 MB, free: 4.148 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.517e-05/0.09396, allocations: 38.75 kB / 462.9 MB, free: 4.102 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006588/0.09462, allocations: 110.1 kB / 463 MB, free: 3.996 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003469/0.09497, allocations: 263.8 kB / 463.3 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.306e-05/0.09499, allocations: 4.375 kB / 463.3 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.562e-05/0.09502, allocations: 8.375 kB / 463.3 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004494/0.09546, allocations: 265.9 kB / 463.5 MB, free: 3.418 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.09547, allocations: 7.938 kB / 463.5 MB, free: 3.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.765e-05/0.09549, allocations: 4 kB / 463.5 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.0955, allocations: 0 / 463.5 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004048/0.0959, allocations: 215.9 kB / 463.8 MB, free: 3.195 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003092/0.09621, allocations: 250.4 kB / 464 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003604/0.09657, allocations: 221.2 kB / 464.2 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003094/0.09688, allocations: 189.7 kB / 464.4 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.007e-06/0.09689, allocations: 0 / 464.4 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006326/0.09752, allocations: 0.5246 MB / 464.9 MB, free: 1.895 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.293e-06/0.09752, allocations: 4 kB / 464.9 MB, free: 1.891 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.001324/0.09885, allocations: 0.7661 MB / 465.7 MB, free: 1.105 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001237/0.09897, allocations: 164.5 kB / 465.9 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002427/0.09921, allocations: 222.9 kB / 466.1 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.723e-05/0.09924, allocations: 29.7 kB / 466.1 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.964e-05/0.09933, allocations: 112.7 kB / 466.2 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.18e-05/0.09939, allocations: 47.62 kB / 466.3 MB, free: 500 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.09949, allocations: 57.75 kB / 466.3 MB, free: 436 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.09965, allocations: 326.8 kB / 466.6 MB, free: 100 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002736/0.09993, allocations: 140.2 kB / 466.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002891/0.1002, allocations: 144.4 kB / 466.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006445/0.1009, allocations: 460.4 kB / 467.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1009, allocations: 0 / 467.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007309/0.1016, allocations: 467.1 kB / 467.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000105/0.1017, allocations: 95.36 kB / 467.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.1017, allocations: 0 / 467.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.1017, allocations: 0 / 467.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001402/0.1019, allocations: 19.98 kB / 467.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.742e-06/0.1019, allocations: 0 / 467.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/0.102, allocations: 27.88 kB / 468 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.038e-05/0.1021, allocations: 31.95 kB / 468 MB, free: 14.68 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.0002897/0.1023, allocations: 272.1 kB / 468.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.491e-05/0.1024, allocations: 27.86 kB / 468.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.919e-05/0.1024, allocations: 17.39 kB / 468.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.1024, allocations: 0 / 468.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.1024, allocations: 4 kB / 468.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.1025, allocations: 0 / 468.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002829/0.1027, allocations: 269.4 kB / 468.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.1027, allocations: 0 / 468.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.007e-05/0.1028, allocations: 19.92 kB / 468.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.1028, allocations: 0 / 468.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.933e-05/0.1028, allocations: 16 kB / 468.6 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1028, allocations: 0 / 468.6 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1028, allocations: 0 / 468.6 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001071/0.1039, allocations: 0.7046 MB / 469.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000148/0.1041, allocations: 136.9 kB / 469.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.683e-05/0.1041, allocations: 27.92 kB / 469.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.1042, allocations: 12 kB / 469.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.023e-05/0.1043, allocations: 23.97 kB / 469.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.702e-05/0.1044, allocations: 39.88 kB / 469.5 MB, free: 13.01 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001461/0.1045, allocations: 143.2 kB / 469.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1045, allocations: 0 / 469.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003629/0.1049, allocations: 80.11 kB / 469.8 MB, free: 12.79 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.001918/0.1068, allocations: 1.4 MB / 471.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009136/0.1077, allocations: 0.5689 MB / 471.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.1077, allocations: 3.938 kB / 471.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005511/0.1083, allocations: 406.6 kB / 472.1 MB, free: 10.37 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000258/0.1085, allocations: 35.92 kB / 472.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004025/0.1126, allocations: 2.97 MB / 475.1 MB, free: 7.262 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003927/0.113, allocations: 0.7311 MB / 475.9 MB, free: 6.504 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.209e-05/0.113, allocations: 12.55 kB / 475.9 MB, free: 6.492 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.411e-05/0.1131, allocations: 55.41 kB / 475.9 MB, free: 6.438 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1131, allocations: 4 kB / 475.9 MB, free: 6.434 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02973/0.1428, allocations: 5.945 MB / 481.9 MB, free: 0.582 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.099/8.242, allocations: 0 / 481.9 MB, free: 0.582 MB / 350.1 MB (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 --timeout=50 --tolerance=1e-06 AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.fmu > AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe 2>&1)