Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.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.ImpureGenerator,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ImpureGenerator,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_ImpureGenerator",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.0009263/0.0009263, allocations: 93.97 kB / 16.3 MB, free: 5.992 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.0008494/0.0008496, allocations: 181.5 kB / 17.2 MB, free: 5.906 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.507/1.507, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002786/0.0002786, allocations: 5.656 kB / 300.8 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1048, allocations: 50.43 MB / 351.2 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.001828/0.1067, allocations: 1.067 MB / 352.3 MB, free: 10.59 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007193/0.1074, allocations: 341.2 kB / 352.6 MB, free: 10.25 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.95e-05/0.1075, allocations: 0 / 352.6 MB, free: 10.25 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.73e-05/0.1075, allocations: 0 / 352.6 MB, free: 10.25 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.374e-05/0.1075, allocations: 4 kB / 352.6 MB, free: 10.25 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.0004493/0.108, allocations: 71.72 kB / 352.7 MB, free: 10.18 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 5.412e-05/0.1081, allocations: 11.98 kB / 352.7 MB, free: 10.17 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.078e-05/0.1081, allocations: 7.938 kB / 352.7 MB, free: 10.16 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.936e-05/0.1082, allocations: 8 kB / 352.7 MB, free: 10.15 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.097e-05/0.1082, allocations: 7.922 kB / 352.7 MB, free: 10.14 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.608e-06/0.1082, allocations: 0 / 352.7 MB, free: 10.14 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001474/0.1084, allocations: 59.94 kB / 352.8 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.702e-05/0.1084, allocations: 0 / 352.8 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.902e-05/0.1084, allocations: 33.64 kB / 352.8 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001423/0.1086, allocations: 67.77 kB / 352.9 MB, free: 9.98 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.1086, allocations: 0 / 352.9 MB, free: 9.98 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1086, allocations: 0 / 352.9 MB, free: 9.98 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.676e-06/0.1086, allocations: 4 kB / 352.9 MB, free: 9.977 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0004201/0.109, allocations: 339.3 kB / 353.2 MB, free: 9.598 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.1091, allocations: 8.031 kB / 353.2 MB, free: 9.59 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.382e-05/0.1092, allocations: 34.56 kB / 353.3 MB, free: 9.547 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.548e-05/0.1092, allocations: 3.953 kB / 353.3 MB, free: 9.543 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001326/0.1093, allocations: 167 kB / 353.4 MB, free: 9.34 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.1094, allocations: 4 kB / 353.4 MB, free: 9.336 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.112e-05/0.1094, allocations: 0 / 353.4 MB, free: 9.336 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.81e-05/0.1095, allocations: 41.62 kB / 353.5 MB, free: 9.289 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.1095, allocations: 4 kB / 353.5 MB, free: 9.285 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.857e-06/0.1095, allocations: 0 / 353.5 MB, free: 9.285 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.1095, allocations: 7.953 kB / 353.5 MB, free: 9.277 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.967e-05/0.1095, allocations: 3.938 kB / 353.5 MB, free: 9.273 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004311/0.11, allocations: 252.9 kB / 353.7 MB, free: 8.977 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.566e-05/0.1101, allocations: 22.58 kB / 353.8 MB, free: 8.945 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.09e-05/0.1101, allocations: 4.062 kB / 353.8 MB, free: 8.941 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001358/0.1102, allocations: 59.33 kB / 353.8 MB, free: 8.871 MB / 286.1 MB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.1102, allocations: 0 / 353.8 MB, free: 8.871 MB / 286.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001818/0.1104, allocations: 61.62 kB / 353.9 MB, free: 8.805 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.861e-05/0.1105, allocations: 51.41 kB / 353.9 MB, free: 8.742 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/0.1106, allocations: 109.8 kB / 354 MB, free: 8.625 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.1106, allocations: 25.7 kB / 354.1 MB, free: 8.594 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.1107, allocations: 80.14 kB / 354.1 MB, free: 8.512 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.577e-05/0.1108, allocations: 15.84 kB / 354.2 MB, free: 8.496 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.701e-06/0.1108, allocations: 4 kB / 354.2 MB, free: 8.492 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002168/0.111, allocations: 310.8 kB / 354.5 MB, free: 8.18 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.765e-05/0.111, allocations: 15.92 kB / 354.5 MB, free: 8.164 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.189e-05/0.1111, allocations: 13.72 kB / 354.5 MB, free: 8.145 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.852e-05/0.1111, allocations: 8 kB / 354.5 MB, free: 8.137 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1111, allocations: 0 / 354.5 MB, free: 8.137 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.517e-05/0.1112, allocations: 69.53 kB / 354.6 MB, free: 8.062 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.1112, allocations: 4 kB / 354.6 MB, free: 8.059 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.1112, allocations: 3.938 kB / 354.6 MB, free: 8.055 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.1113, allocations: 3.953 kB / 354.6 MB, free: 8.051 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.311e-05/0.1114, allocations: 11.98 kB / 354.6 MB, free: 8.039 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.1114, allocations: 0 / 354.6 MB, free: 8.039 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.941e-05/0.1114, allocations: 3.938 kB / 354.6 MB, free: 8.035 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.019e-05/0.1114, allocations: 4 kB / 354.6 MB, free: 8.031 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,impureRandom.y,globalSeed.seed,globalSeed.id_impure) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * 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 9.659e-05/0.1115, allocations: 109.8 kB / 354.7 MB, free: 7.914 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.394e-06/0.1115, allocations: 8.031 kB / 354.7 MB, free: 7.906 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.239e-05/0.1116, allocations: 3.906 kB / 354.7 MB, free: 7.895 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.1116, allocations: 7.938 kB / 354.7 MB, free: 7.887 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.1116, allocations: 384 / 354.7 MB, free: 7.887 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.1116, allocations: 0 / 354.7 MB, free: 7.887 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002751/0.1119, allocations: 286.6 kB / 355 MB, free: 7.551 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.1119, allocations: 4 kB / 355 MB, free: 7.547 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.355e-05/0.1119, allocations: 4 kB / 355 MB, free: 7.543 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.1119, allocations: 0 / 355 MB, free: 7.543 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-06/0.1119, allocations: 7.953 kB / 355 MB, free: 7.535 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.1119, allocations: 0 / 355 MB, free: 7.535 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.112, allocations: 3.984 kB / 355 MB, free: 7.531 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001117/0.1121, allocations: 143.5 kB / 355.2 MB, free: 7.375 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.457e-05/0.1122, allocations: 77.11 kB / 355.2 MB, free: 7.281 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.146e-05/0.1122, allocations: 0 / 355.2 MB, free: 7.281 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.418e-05/0.1122, allocations: 7.953 kB / 355.3 MB, free: 7.273 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.869e-05/0.1123, allocations: 7.938 kB / 355.3 MB, free: 7.266 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.245e-05/0.1123, allocations: 4 kB / 355.3 MB, free: 7.262 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.386e-05/0.1123, allocations: 83.27 kB / 355.3 MB, free: 7.18 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1123, allocations: 0 / 355.3 MB, free: 7.18 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002624/0.1126, allocations: 24 kB / 355.4 MB, free: 7.156 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,impureRandom.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007053/0.1133, allocations: 0.7795 MB / 356.1 MB, free: 6.383 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000101/0.1134, allocations: 23.92 kB / 356.2 MB, free: 6.359 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1134, allocations: 3.938 kB / 356.2 MB, free: 6.355 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 1.976e-05/0.1135, allocations: 8 kB / 356.2 MB, free: 6.348 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001277/0.1136, allocations: 12.02 kB / 356.2 MB, free: 6.336 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006411/0.1142, allocations: 478 kB / 356.7 MB, free: 5.816 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004023/0.1147, allocations: 0.6848 MB / 357.3 MB, free: 5.105 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.856e-05/0.1147, allocations: 15.92 kB / 357.4 MB, free: 5.09 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.271e-05/0.1147, allocations: 11.44 kB / 357.4 MB, free: 5.078 MB / 286.1 MB Notification: Performance of SimCode: time 7.11e-07/0.1147, allocations: 0 / 357.4 MB, free: 5.078 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0143/0.1291, allocations: 1.643 MB / 359 MB, free: 3.543 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002026/0.1293, allocations: 215.2 kB / 359.2 MB, free: 3.305 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.898/2.027, allocations: 4.062 kB / 359.2 MB, free: 3.301 MB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Noise_ImpureGenerator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_Noise_ImpureGenerator.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat does not exist to compare? outputFormat=mat