Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ImpureGenerator,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ImpureGenerator,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008596/0.0008597, allocations: 100.3 kB / 17 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008697/0.00087, allocations: 192.9 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 227.4 MB / 246 MB, free: 11.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002541/0.0002542, allocations: 8 kB / 306.8 MB, free: 1.438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1129, allocations: 51.49 MB / 358.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.001399/0.1144, allocations: 1.069 MB / 359.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006586/0.115, allocations: 344.7 kB / 359.7 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.766e-05/0.1151, allocations: 8 kB / 359.7 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.463e-05/0.1151, allocations: 3.938 kB / 359.7 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.471e-05/0.1152, allocations: 7.875 kB / 359.7 MB, free: 12.52 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.0003709/0.1155, allocations: 63.86 kB / 359.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.074e-05/0.1156, allocations: 19.92 kB / 359.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.984e-05/0.1156, allocations: 0 / 359.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.16e-05/0.1157, allocations: 7.984 kB / 359.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.253e-05/0.1158, allocations: 11.94 kB / 359.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.358e-06/0.1158, allocations: 0 / 359.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000156/0.1159, allocations: 71.92 kB / 359.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.509e-05/0.116, allocations: 11.92 kB / 359.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.123e-05/0.116, allocations: 25.7 kB / 359.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001179/0.1161, allocations: 63.89 kB / 360 MB, free: 12.24 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1161, allocations: 0 / 360 MB, free: 12.24 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1161, allocations: 0 / 360 MB, free: 12.24 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.559e-06/0.1162, allocations: 0 / 360 MB, free: 12.24 MB / 302.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.0003367/0.1165, allocations: 346 kB / 360.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.1165, allocations: 8.031 kB / 360.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.154e-05/0.1166, allocations: 34.83 kB / 360.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.428e-05/0.1166, allocations: 7.984 kB / 360.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.984e-05/0.1167, allocations: 170.9 kB / 360.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.294e-05/0.1168, allocations: 4 kB / 360.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.052e-05/0.1168, allocations: 3.953 kB / 360.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.721e-05/0.1169, allocations: 41.62 kB / 360.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.1169, allocations: 0 / 360.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.634e-06/0.1169, allocations: 0 / 360.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.233e-06/0.1169, allocations: 8 kB / 360.6 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.934e-05/0.1169, allocations: 0 / 360.6 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003672/0.1173, allocations: 260.9 kB / 360.9 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.312e-05/0.1174, allocations: 22.52 kB / 360.9 MB, free: 11.19 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.658e-05/0.1174, allocations: 16.91 kB / 360.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.536e-06/0.1174, allocations: 4 kB / 360.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001075/0.1175, allocations: 47.41 kB / 361 MB, free: 11.11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.563e-06/0.1175, allocations: 4 kB / 361 MB, free: 11.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001676/0.1177, allocations: 57.62 kB / 361 MB, free: 11.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.46e-05/0.1178, allocations: 51.41 kB / 361.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.252e-05/0.1178, allocations: 105.8 kB / 361.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.672e-05/0.1179, allocations: 29.7 kB / 361.2 MB, free: 10.83 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.905e-05/0.1179, allocations: 84.05 kB / 361.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.778e-06/0.118, allocations: 7.844 kB / 361.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.456e-06/0.118, allocations: 4 kB / 361.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.1181, allocations: 326.8 kB / 361.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.174e-05/0.1181, allocations: 8 kB / 361.6 MB, free: 10.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.221e-05/0.1182, allocations: 25.64 kB / 361.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.697e-05/0.1182, allocations: 8 kB / 361.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1182, allocations: 4 kB / 361.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.36e-05/0.1183, allocations: 57.62 kB / 361.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.1183, allocations: 4 kB / 361.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.1183, allocations: 0 / 361.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.1184, allocations: 0 / 361.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.829e-05/0.1184, allocations: 12.03 kB / 361.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.1184, allocations: 0 / 361.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.636e-05/0.1185, allocations: 0 / 361.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.1185, allocations: 4 kB / 361.7 MB, free: 10.27 MB / 302.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.396e-05/0.1186, allocations: 118.9 kB / 361.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.267e-05/0.1186, allocations: 7.906 kB / 361.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.248e-05/0.1186, allocations: 3.906 kB / 361.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-06/0.1186, allocations: 240 / 361.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.1186, allocations: 0 / 361.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.1187, allocations: 15.92 kB / 361.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002699/0.1189, allocations: 282.6 kB / 362.1 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.1189, allocations: 0 / 362.1 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.432e-05/0.119, allocations: 4 kB / 362.2 MB, free: 9.777 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.119, allocations: 0 / 362.2 MB, free: 9.777 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.512e-06/0.119, allocations: 0 / 362.2 MB, free: 9.777 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.119, allocations: 0 / 362.2 MB, free: 9.777 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.119, allocations: 0 / 362.2 MB, free: 9.777 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000117/0.1191, allocations: 155.4 kB / 362.3 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.404e-05/0.1192, allocations: 77.48 kB / 362.4 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.36e-05/0.1192, allocations: 3.984 kB / 362.4 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.491e-05/0.1193, allocations: 8 kB / 362.4 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.076e-05/0.1193, allocations: 0 / 362.4 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.205e-05/0.1193, allocations: 0 / 362.4 MB, free: 9.504 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.11e-05/0.1193, allocations: 83.28 kB / 362.5 MB, free: 9.422 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.583e-06/0.1194, allocations: 4 kB / 362.5 MB, free: 9.418 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002833/0.1196, allocations: 31.92 kB / 362.5 MB, free: 9.387 MB / 302.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.000749/0.1204, allocations: 0.78 MB / 363.3 MB, free: 8.602 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 8.544e-05/0.1205, allocations: 19.98 kB / 363.3 MB, free: 8.582 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.1205, allocations: 0 / 363.3 MB, free: 8.582 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.43e-05/0.1205, allocations: 8 kB / 363.3 MB, free: 8.574 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002026/0.1207, allocations: 3.984 kB / 363.3 MB, free: 8.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006276/0.1214, allocations: 383.5 kB / 363.7 MB, free: 8.145 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002536/0.1216, allocations: 0.681 MB / 364.4 MB, free: 7.438 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.185e-05/0.1217, allocations: 11.92 kB / 364.4 MB, free: 7.426 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.633e-05/0.1217, allocations: 7.438 kB / 364.4 MB, free: 7.418 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1217, allocations: 0 / 364.4 MB, free: 7.418 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01464/0.1364, allocations: 1.689 MB / 366.1 MB, free: 5.852 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002355/0.1367, allocations: 221.6 kB / 366.3 MB, free: 5.609 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.895/2.031, allocations: 3.938 kB / 366.3 MB, free: 5.605 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat does not exist to compare? outputFormat=mat