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.001219/0.001219, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.00121/0.00121, allocations: 177.3 kB / 15.94 MB, free: 228 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.304/1.304, allocations: 223.2 MB / 239.9 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1743/0.1743, allocations: 3.873 MB / 294.8 MB, free: 3.898 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002877/0.0002878, allocations: 8 kB / 356.6 MB, free: 3.453 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09886/0.09917, allocations: 51.18 MB / 407.8 MB, free: 240 kB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.001969/0.1012, allocations: 1.237 MB / 409 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002141/0.1033, allocations: 1.091 MB / 410.1 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.997e-05/0.1034, allocations: 7.938 kB / 410.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001267/0.1036, allocations: 31.8 kB / 410.2 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.956e-05/0.1036, allocations: 23.89 kB / 410.2 MB, free: 13.82 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.0005195/0.1042, allocations: 183.5 kB / 410.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001554/0.1043, allocations: 135.7 kB / 410.5 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.693e-05/0.1044, allocations: 21.53 kB / 410.5 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001648/0.1046, allocations: 103.7 kB / 410.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.709e-05/0.1047, allocations: 71.67 kB / 410.7 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.09e-05/0.1047, allocations: 4 kB / 410.7 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002039/0.1049, allocations: 131.8 kB / 410.8 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.893e-05/0.1049, allocations: 23.92 kB / 410.8 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.296e-05/0.105, allocations: 57.58 kB / 410.9 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002528/0.1053, allocations: 199.9 kB / 411.1 MB, free: 12.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.1053, allocations: 0 / 411.1 MB, free: 12.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1053, allocations: 0 / 411.1 MB, free: 12.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.76e-06/0.1053, allocations: 0 / 411.1 MB, free: 12.91 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.00224/0.1076, allocations: 2.201 MB / 413.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.1076, allocations: 8.031 kB / 413.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.229e-05/0.1077, allocations: 46.56 kB / 413.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005284/0.1082, allocations: 71.73 kB / 413.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002639/0.1085, allocations: 246.5 kB / 413.7 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.76e-05/0.1085, allocations: 8 kB / 413.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.538e-05/0.1085, allocations: 8 kB / 413.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003684/0.1089, allocations: 260.4 kB / 413.9 MB, free: 9.941 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.1089, allocations: 0 / 413.9 MB, free: 9.941 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.937e-05/0.1089, allocations: 7.953 kB / 413.9 MB, free: 9.934 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.109, allocations: 0 / 413.9 MB, free: 9.934 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003439/0.1093, allocations: 211.9 kB / 414.1 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002484/0.1096, allocations: 254.2 kB / 414.4 MB, free: 9.426 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003493/0.1099, allocations: 313.1 kB / 414.7 MB, free: 9.102 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.077e-05/0.1099, allocations: 4.031 kB / 414.7 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005473/0.1105, allocations: 0.5141 MB / 415.2 MB, free: 8.531 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.162e-06/0.1105, allocations: 0 / 415.2 MB, free: 8.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001168/0.1117, allocations: 0.9165 MB / 416.1 MB, free: 7.559 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.156e-05/0.1118, allocations: 160.5 kB / 416.3 MB, free: 7.371 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001792/0.112, allocations: 211.1 kB / 416.5 MB, free: 7.156 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.963e-05/0.112, allocations: 25.7 kB / 416.5 MB, free: 7.125 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.695e-05/0.1121, allocations: 112.7 kB / 416.6 MB, free: 7.012 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.221e-05/0.1121, allocations: 55.36 kB / 416.7 MB, free: 6.957 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.137e-05/0.1121, allocations: 4 kB / 416.7 MB, free: 6.953 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.1122, allocations: 330.8 kB / 417 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002085/0.1125, allocations: 136.2 kB / 417.1 MB, free: 6.484 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002037/0.1127, allocations: 140.4 kB / 417.3 MB, free: 6.348 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002795/0.113, allocations: 236.3 kB / 417.5 MB, free: 6.105 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.113, allocations: 0 / 417.5 MB, free: 6.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005851/0.1136, allocations: 459.2 kB / 418 MB, free: 5.641 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.221e-05/0.1136, allocations: 95.36 kB / 418.1 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.1137, allocations: 0 / 418.1 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.588e-06/0.1137, allocations: 4 kB / 418.1 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.1138, allocations: 19.98 kB / 418.1 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.1138, allocations: 3.953 kB / 418.1 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.1139, allocations: 23.89 kB / 418.1 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.895e-05/0.114, allocations: 4 kB / 418.1 MB, free: 5.48 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.0002161/0.1142, allocations: 259.7 kB / 418.4 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.911e-05/0.1142, allocations: 35.66 kB / 418.4 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.96e-05/0.1143, allocations: 17.39 kB / 418.4 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.1143, allocations: 0 / 418.4 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.1143, allocations: 4.188 kB / 418.4 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.1143, allocations: 3.953 kB / 418.4 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002059/0.1145, allocations: 269.3 kB / 418.7 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.1145, allocations: 0 / 418.7 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.555e-05/0.1146, allocations: 11.98 kB / 418.7 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1146, allocations: 0 / 418.7 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.432e-05/0.1146, allocations: 16 kB / 418.7 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.1146, allocations: 0 / 418.7 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.1146, allocations: 0 / 418.7 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008622/0.1155, allocations: 0.6963 MB / 419.4 MB, free: 4.062 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001252/0.1156, allocations: 132.7 kB / 419.5 MB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.147e-05/0.1157, allocations: 27.98 kB / 419.6 MB, free: 3.887 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001098/0.1158, allocations: 19.98 kB / 419.6 MB, free: 3.867 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.588e-05/0.1159, allocations: 27.92 kB / 419.6 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.317e-05/0.1159, allocations: 8 kB / 419.6 MB, free: 3.832 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001105/0.1161, allocations: 147.2 kB / 419.8 MB, free: 3.688 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1161, allocations: 0 / 419.8 MB, free: 3.688 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003044/0.1164, allocations: 80 kB / 419.8 MB, free: 3.609 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.001496/0.1179, allocations: 1.454 MB / 421.3 MB, free: 2.152 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008315/0.1187, allocations: 0.7485 MB / 422 MB, free: 1.379 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.1187, allocations: 4 kB / 422 MB, free: 1.375 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006022/0.1194, allocations: 0.6431 MB / 422.7 MB, free: 0.707 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001722/0.1195, allocations: 20.14 kB / 422.7 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1452/0.2647, allocations: 0.7724 MB / 423.5 MB, free: 46.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001549/0.2649, allocations: 0.7328 MB / 424.2 MB, free: 46.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.615e-05/0.265, allocations: 14.22 kB / 424.2 MB, free: 46.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.336e-05/0.2651, allocations: 49.72 kB / 424.3 MB, free: 46.17 MB / 350.1 MB Notification: Performance of SimCode: time 7.72e-07/0.2651, allocations: 2.531 kB / 424.3 MB, free: 46.17 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01579/0.2809, allocations: 5.53 MB / 429.8 MB, free: 45.74 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001235/0.281, allocations: 230.1 kB / 430 MB, free: 45.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.77/2.051, allocations: 0 / 430 MB, free: 45.5 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: