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.0009372/0.0009372, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.001219/0.001219, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.593/1.593, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.23/0.23, allocations: 3.884 MB / 295 MB, free: 3.922 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004296/0.0004297, allocations: 8 kB / 356.7 MB, free: 3.492 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1121, allocations: 51.17 MB / 407.9 MB, free: 272 kB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.001633/0.1138, allocations: 1.241 MB / 409.1 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001736/0.1155, allocations: 1.083 MB / 410.2 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.659e-05/0.1156, allocations: 4 kB / 410.2 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000128/0.1157, allocations: 23.73 kB / 410.2 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.964e-05/0.1158, allocations: 23.84 kB / 410.3 MB, free: 13.87 MB / 350.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.000644/0.1165, allocations: 191.5 kB / 410.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000212/0.1167, allocations: 215.5 kB / 410.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.027e-05/0.1168, allocations: 13.55 kB / 410.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000158/0.1169, allocations: 99.61 kB / 410.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001163/0.117, allocations: 79.66 kB / 410.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.407e-05/0.1171, allocations: 8 kB / 410.9 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002563/0.1173, allocations: 147.8 kB / 411 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.192e-05/0.1174, allocations: 23.86 kB / 411 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.258e-05/0.1175, allocations: 53.64 kB / 411.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000266/0.1178, allocations: 199.9 kB / 411.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1178, allocations: 4 kB / 411.3 MB, free: 12.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1178, allocations: 3.938 kB / 411.3 MB, free: 12.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.559e-06/0.1178, allocations: 0 / 411.3 MB, free: 12.85 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.00215/0.1199, allocations: 2.209 MB / 413.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.12, allocations: 8.031 kB / 413.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.803e-05/0.12, allocations: 38.56 kB / 413.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006179/0.1207, allocations: 109.9 kB / 413.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003007/0.121, allocations: 254.5 kB / 413.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.212e-05/0.121, allocations: 4 kB / 413.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.516e-05/0.121, allocations: 11.94 kB / 413.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004108/0.1215, allocations: 260.5 kB / 414.2 MB, free: 9.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.1215, allocations: 0 / 414.2 MB, free: 9.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.252e-05/0.1215, allocations: 11.95 kB / 414.2 MB, free: 9.828 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.1215, allocations: 0 / 414.2 MB, free: 9.828 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000354/0.1219, allocations: 223.8 kB / 414.4 MB, free: 9.609 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002459/0.1221, allocations: 266.2 kB / 414.7 MB, free: 9.297 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003631/0.1225, allocations: 313.1 kB / 415 MB, free: 8.973 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003361/0.1229, allocations: 302 kB / 415.3 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.406e-05/0.1229, allocations: 7.938 kB / 415.3 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005234/0.1234, allocations: 0.5139 MB / 415.8 MB, free: 8.098 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.272e-06/0.1234, allocations: 0 / 415.8 MB, free: 8.098 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001148/0.1246, allocations: 0.7627 MB / 416.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.543e-05/0.1247, allocations: 160.5 kB / 416.7 MB, free: 7.129 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001974/0.1249, allocations: 207.1 kB / 416.9 MB, free: 6.918 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.989e-05/0.1249, allocations: 29.7 kB / 416.9 MB, free: 6.883 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.896e-05/0.125, allocations: 116.8 kB / 417 MB, free: 6.766 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.128e-05/0.1251, allocations: 59.22 kB / 417.1 MB, free: 6.707 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.277e-05/0.1251, allocations: 4 kB / 417.1 MB, free: 6.703 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.1252, allocations: 326.8 kB / 417.4 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002247/0.1254, allocations: 144.2 kB / 417.6 MB, free: 6.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002118/0.1257, allocations: 144.3 kB / 417.7 MB, free: 6.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002896/0.126, allocations: 244.3 kB / 417.9 MB, free: 5.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.126, allocations: 0 / 417.9 MB, free: 5.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006279/0.1266, allocations: 463.3 kB / 418.4 MB, free: 5.371 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.268e-05/0.1267, allocations: 87.38 kB / 418.5 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.1267, allocations: 11.98 kB / 418.5 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.1267, allocations: 0 / 418.5 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.1269, allocations: 19.98 kB / 418.5 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.1269, allocations: 3.953 kB / 418.5 MB, free: 5.238 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.795e-05/0.127, allocations: 23.84 kB / 418.5 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.588e-05/0.1271, allocations: 35.94 kB / 418.6 MB, free: 5.18 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 ($whenCondition1,$whenCondition2,timeBasedNoise1.state[1],timeBasedNoise1.state[2],timeBasedNoise1.state[3],timeBasedNoise1.state[4],timeBasedNoise1.buffer[1],timeBasedNoise1.buffer[2],timeBasedNoise1.bufferStartTime,timeBasedNoise1.r,$whenCondition3,$whenCondition4,timeBasedNoise.state[1],timeBasedNoise.state[2],timeBasedNoise.state[3],timeBasedNoise.state[4],timeBasedNoise.buffer[1],timeBasedNoise.buffer[2],timeBasedNoise.bufferStartTime,timeBasedNoise.r,globalSeed.id_impure,timeBasedNoise.localSeed,timeBasedNoise.actualGlobalSeed,timeBasedNoise1.localSeed,timeBasedNoise1.actualGlobalSeed,globalSeed.seed) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002225/0.1273, allocations: 256.5 kB / 418.8 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.25e-05/0.1274, allocations: 31.72 kB / 418.9 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.528e-05/0.1274, allocations: 17.39 kB / 418.9 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.1274, allocations: 0 / 418.9 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1274, allocations: 0 / 418.9 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.1274, allocations: 3.953 kB / 418.9 MB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002209/0.1276, allocations: 269.3 kB / 419.1 MB, free: 4.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1277, allocations: 0 / 419.1 MB, free: 4.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.26e-05/0.1277, allocations: 11.98 kB / 419.2 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.1277, allocations: 4.188 kB / 419.2 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.053e-05/0.1278, allocations: 19.98 kB / 419.2 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1278, allocations: 7.875 kB / 419.2 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1278, allocations: 0 / 419.2 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009136/0.1287, allocations: 0.6945 MB / 419.9 MB, free: 3.766 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001412/0.1289, allocations: 144.7 kB / 420 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.328e-05/0.1289, allocations: 19.98 kB / 420 MB, free: 3.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.129, allocations: 16 kB / 420.1 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.026e-05/0.1291, allocations: 19.97 kB / 420.1 MB, free: 3.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.114e-05/0.1292, allocations: 39.94 kB / 420.1 MB, free: 3.512 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000132/0.1293, allocations: 143.2 kB / 420.3 MB, free: 3.371 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1293, allocations: 4 kB / 420.3 MB, free: 3.367 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003559/0.1297, allocations: 87.94 kB / 420.3 MB, free: 3.281 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001683/0.1314, allocations: 1.384 MB / 421.7 MB, free: 1.898 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009797/0.1324, allocations: 0.7524 MB / 422.5 MB, free: 1.121 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.1324, allocations: 0 / 422.5 MB, free: 1.121 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006497/0.1331, allocations: 0.6588 MB / 423.1 MB, free: 448 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002442/0.1333, allocations: 22.53 kB / 423.2 MB, free: 428 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1865/0.3198, allocations: 1.659 MB / 424.8 MB, free: 47.17 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001827/0.32, allocations: 0.7247 MB / 425.5 MB, free: 46.47 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.83e-05/0.3201, allocations: 16.3 kB / 425.6 MB, free: 46.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.954e-05/0.3202, allocations: 53.23 kB / 425.6 MB, free: 46.46 MB / 350.1 MB Notification: Performance of SimCode: time 1.863e-06/0.3202, allocations: 0 / 425.6 MB, free: 46.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01747/0.3377, allocations: 5.551 MB / 431.2 MB, free: 46.02 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001723/0.3379, allocations: 234.9 kB / 431.4 MB, free: 45.78 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.85/2.188, allocations: 0 / 431.4 MB, free: 45.78 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/linux/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) Environment - environmentSimulation: