Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.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) 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(Modelica.Blocks.Examples.Noise.UniformNoise,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoise,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_UniformNoise",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.000757/0.000757, allocations: 86.81 kB / 16.31 MB, free: 5.676 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.000882/0.000882, allocations: 186.5 kB / 17.21 MB, free: 5.59 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.295/1.295, allocations: 223.2 MB / 241.2 MB, free: 360 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000265/0.000265, allocations: 8 kB / 300.9 MB, free: 6.371 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1085, allocations: 50.42 MB / 351.3 MB, free: 3.941 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.001791/0.1104, allocations: 1.202 MB / 352.5 MB, free: 2.723 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001019/0.1114, allocations: 0.5623 MB / 353.1 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.338e-05/0.1115, allocations: 0 / 353.1 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.953e-05/0.1116, allocations: 11.94 kB / 353.1 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.076e-05/0.1117, allocations: 7.875 kB / 353.1 MB, free: 2.141 MB / 286.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.0004805/0.1122, allocations: 119.7 kB / 353.2 MB, free: 2.023 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001264/0.1123, allocations: 103.7 kB / 353.3 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.54e-05/0.1124, allocations: 5.125 kB / 353.3 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.854e-05/0.1124, allocations: 43.78 kB / 353.4 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001735/0.1126, allocations: 59.8 kB / 353.4 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.303e-05/0.1126, allocations: 11.94 kB / 353.5 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001822/0.1128, allocations: 91.91 kB / 353.5 MB, free: 1.711 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.316e-05/0.1129, allocations: 23.92 kB / 353.6 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.018e-05/0.1129, allocations: 49.58 kB / 353.6 MB, free: 1.633 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001876/0.1131, allocations: 143.9 kB / 353.8 MB, free: 1.492 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.1131, allocations: 0 / 353.8 MB, free: 1.492 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1132, allocations: 4 kB / 353.8 MB, free: 1.488 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.1132, allocations: 0 / 353.8 MB, free: 1.488 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005951/0.1138, allocations: 434.7 kB / 354.2 MB, free: 1.016 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.1138, allocations: 12.03 kB / 354.2 MB, free: 1.004 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.595e-05/0.1139, allocations: 38.55 kB / 354.2 MB, free: 0.957 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000278/0.1142, allocations: 47.73 kB / 354.3 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000187/0.1144, allocations: 186.9 kB / 354.5 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.426e-05/0.1144, allocations: 7.984 kB / 354.5 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.352e-05/0.1144, allocations: 11.98 kB / 354.5 MB, free: 0.668 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002694/0.1147, allocations: 130.5 kB / 354.6 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/0.1147, allocations: 0 / 354.6 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.128e-05/0.1147, allocations: 0 / 354.6 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.1148, allocations: 7.953 kB / 354.6 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001814/0.1149, allocations: 67.89 kB / 354.7 MB, free: 468 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006693/0.1156, allocations: 452.9 kB / 355.1 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002898/0.1159, allocations: 145.2 kB / 355.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001113/0.116, allocations: 61.69 kB / 355.3 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.073e-05/0.1161, allocations: 0 / 355.3 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002877/0.1164, allocations: 145 kB / 355.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.563e-06/0.1164, allocations: 0 / 355.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004948/0.1169, allocations: 249.7 kB / 355.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.374e-05/0.1169, allocations: 89.09 kB / 355.8 MB, free: 15.22 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001536/0.1171, allocations: 174.9 kB / 356 MB, free: 15.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.066e-05/0.1172, allocations: 53.69 kB / 356 MB, free: 14.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.505e-05/0.1172, allocations: 116.4 kB / 356.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.285e-05/0.1173, allocations: 35.55 kB / 356.2 MB, free: 14.83 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.099e-05/0.1173, allocations: 7.938 kB / 356.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.1174, allocations: 330.8 kB / 356.5 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001891/0.1176, allocations: 100.5 kB / 356.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001928/0.1178, allocations: 137.3 kB / 356.7 MB, free: 14.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001844/0.118, allocations: 108.5 kB / 356.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.118, allocations: 0 / 356.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004355/0.1185, allocations: 293.3 kB / 357.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.1185, allocations: 15.94 kB / 357.1 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.1185, allocations: 0 / 357.1 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.1185, allocations: 0 / 357.1 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001433/0.1187, allocations: 35.92 kB / 357.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.824e-06/0.1187, allocations: 3.984 kB / 357.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.959e-05/0.1188, allocations: 27.81 kB / 357.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.702e-05/0.1188, allocations: 8 kB / 357.2 MB, free: 13.75 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition2,$whenCondition1,$PRE.uniformNoise1.state[1],uniformNoise1.state[1],$PRE.uniformNoise1.state[2],uniformNoise1.state[2],$PRE.uniformNoise1.state[3],uniformNoise1.state[3],$PRE.uniformNoise1.state[4],uniformNoise1.state[4],$PRE.uniformNoise1.r,uniformNoise1.r,$PRE.uniformNoise1.r_raw,uniformNoise1.r_raw,$PRE.uniformNoise2.state[1],uniformNoise2.state[1],$PRE.uniformNoise2.state[2],uniformNoise2.state[2],$PRE.uniformNoise2.state[3],uniformNoise2.state[3],$PRE.uniformNoise2.state[4],uniformNoise2.state[4],$PRE.uniformNoise2.r,uniformNoise2.r,$PRE.uniformNoise2.r_raw,uniformNoise2.r_raw,globalSeed.id_impure,uniformNoise1.localSeed,uniformNoise1.actualGlobalSeed,uniformNoise2.localSeed,uniformNoise2.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * Array equations: 2 * Algorithm blocks: 0 * 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.0001382/0.1189, allocations: 145.8 kB / 357.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.267e-05/0.1189, allocations: 19.8 kB / 357.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.326e-05/0.119, allocations: 17.44 kB / 357.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.119, allocations: 4 kB / 357.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.119, allocations: 4 kB / 357.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.119, allocations: 0 / 357.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001817/0.1192, allocations: 217.5 kB / 357.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.1192, allocations: 0 / 357.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.441e-05/0.1193, allocations: 8 kB / 357.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.1193, allocations: 0 / 357.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.1193, allocations: 0 / 357.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.843e-06/0.1193, allocations: 11.94 kB / 357.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1193, allocations: 0 / 357.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003257/0.1196, allocations: 225.6 kB / 357.9 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.469e-05/0.1197, allocations: 96.91 kB / 358 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.828e-05/0.1197, allocations: 11.94 kB / 358 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.583e-05/0.1198, allocations: 11.98 kB / 358 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.686e-05/0.1199, allocations: 19.94 kB / 358 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.033e-06/0.1199, allocations: 0 / 358 MB, free: 12.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.708e-05/0.12, allocations: 127.5 kB / 358.1 MB, free: 12.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.12, allocations: 0 / 358.1 MB, free: 12.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002692/0.1202, allocations: 51.98 kB / 358.2 MB, free: 12.7 MB / 302.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: 14 ($whenCondition2,uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise2.r,uniformNoise2.r_raw,$whenCondition1,uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise1.r,uniformNoise1.r_raw) * Number of discrete states: 8 (uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001028/0.1213, allocations: 0.916 MB / 359.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004004/0.1217, allocations: 195.8 kB / 359.3 MB, free: 11.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.1217, allocations: 4 kB / 359.3 MB, free: 11.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001371/0.1219, allocations: 67.91 kB / 359.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001729/0.122, allocations: 7.953 kB / 359.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001475/0.1235, allocations: 1.041 MB / 360.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002591/0.1238, allocations: 0.716 MB / 361.1 MB, free: 9.676 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.258e-05/0.1238, allocations: 21.02 kB / 361.1 MB, free: 9.656 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.466e-05/0.1239, allocations: 35.42 kB / 361.2 MB, free: 9.621 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1239, allocations: 0 / 361.2 MB, free: 9.621 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01418/0.1381, allocations: 3.302 MB / 364.5 MB, free: 6.434 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001954/0.1383, allocations: 220.7 kB / 364.7 MB, free: 6.191 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.939/2.077, allocations: 0 / 364.7 MB, free: 6.191 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Noise_UniformNoise_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_Noise_UniformNoise.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise_res.mat does not exist to compare? outputFormat=mat