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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001319/0.001319, allocations: 116.9 kB / 18.49 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001503/0.001503, allocations: 212.7 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 230.4 MB / 254.7 MB, free: 15 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ImpureGenerator,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001882/0.001882, allocations: 67.91 kB / 373.7 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1181, allocations: 53.38 MB / 427.1 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.002935/0.1211, allocations: 1.346 MB / 428.4 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009145/0.122, allocations: 358.8 kB / 428.8 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.519e-05/0.122, allocations: 0 / 428.8 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.752e-05/0.122, allocations: 0 / 428.8 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.372e-05/0.1221, allocations: 3.938 kB / 428.8 MB, free: 2.879 MB / 350.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.00064/0.1228, allocations: 87.72 kB / 428.9 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.652e-05/0.1228, allocations: 11.94 kB / 428.9 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.51e-05/0.1229, allocations: 11.97 kB / 428.9 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.106e-05/0.1229, allocations: 15.94 kB / 428.9 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.404e-05/0.123, allocations: 0 / 428.9 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.484e-05/0.123, allocations: 4 kB / 428.9 MB, free: 2.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002412/0.1232, allocations: 91.89 kB / 429 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.867e-05/0.1232, allocations: 3.938 kB / 429 MB, free: 2.656 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.04e-05/0.1233, allocations: 11.92 kB / 429 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002165/0.1235, allocations: 83.7 kB / 429.1 MB, free: 2.562 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.1235, allocations: 7.984 kB / 429.1 MB, free: 2.555 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1235, allocations: 0 / 429.1 MB, free: 2.555 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.529e-06/0.1235, allocations: 0 / 429.1 MB, free: 2.555 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0005249/0.124, allocations: 347.3 kB / 429.4 MB, free: 2.164 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.1241, allocations: 8.031 kB / 429.4 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.529e-05/0.1241, allocations: 4.188 kB / 429.4 MB, free: 2.152 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.208e-05/0.1242, allocations: 38.73 kB / 429.5 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.128e-05/0.1242, allocations: 4.938 kB / 429.5 MB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001475/0.1243, allocations: 172.3 kB / 429.7 MB, free: 1.895 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.041e-05/0.1243, allocations: 384 / 429.7 MB, free: 1.895 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.175e-05/0.1244, allocations: 4.375 kB / 429.7 MB, free: 1.891 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001061/0.1245, allocations: 45.94 kB / 429.7 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.1245, allocations: 4 kB / 429.7 MB, free: 1.836 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.825e-06/0.1245, allocations: 0 / 429.7 MB, free: 1.836 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.369e-06/0.1245, allocations: 3.938 kB / 429.7 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.749e-05/0.1245, allocations: 11.98 kB / 429.7 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003719/0.1249, allocations: 248.9 kB / 430 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.687e-05/0.125, allocations: 38.5 kB / 430 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.435e-05/0.125, allocations: 12.86 kB / 430 MB, free: 1.465 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.197e-06/0.125, allocations: 8 kB / 430 MB, free: 1.457 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001684/0.1252, allocations: 59.42 kB / 430.1 MB, free: 1.387 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.323e-06/0.1252, allocations: 0 / 430.1 MB, free: 1.387 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003746/0.1256, allocations: 105.5 kB / 430.2 MB, free: 1.277 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.493e-05/0.1256, allocations: 51.41 kB / 430.2 MB, free: 1.215 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.715e-05/0.1257, allocations: 105.8 kB / 430.3 MB, free: 1.102 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.1257, allocations: 25.7 kB / 430.4 MB, free: 1.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.869e-05/0.1258, allocations: 88.12 kB / 430.4 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.045e-05/0.1258, allocations: 15.91 kB / 430.5 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.071e-05/0.1258, allocations: 21.72 kB / 430.5 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.126, allocations: 322.8 kB / 430.8 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.171e-05/0.126, allocations: 8 kB / 430.8 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.527e-05/0.1261, allocations: 34.55 kB / 430.8 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.952e-05/0.1261, allocations: 47.2 kB / 430.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.02e-07/0.1261, allocations: 0 / 430.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001262/0.1263, allocations: 81.58 kB / 431 MB, free: 432 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.1263, allocations: 4 kB / 431 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.1263, allocations: 3.984 kB / 431 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.664e-05/0.1263, allocations: 4 kB / 431 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.407e-05/0.1264, allocations: 8 kB / 431 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.732e-06/0.1264, allocations: 4 kB / 431 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.248e-05/0.1264, allocations: 4.062 kB / 431 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.47e-06/0.1264, allocations: 4 kB / 431 MB, free: 400 kB / 350.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: 4 ($whenCondition1,globalSeed.id_impure,globalSeed.seed,impureRandom.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.331e-05/0.1265, allocations: 121.7 kB / 431.1 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.637e-05/0.1265, allocations: 8 kB / 431.1 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.298e-05/0.1266, allocations: 4.375 kB / 431.1 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.1266, allocations: 0 / 431.1 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.1266, allocations: 0 / 431.1 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.1266, allocations: 0 / 431.1 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003871/0.127, allocations: 348.1 kB / 431.5 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.127, allocations: 3.938 kB / 431.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.89e-05/0.127, allocations: 8.047 kB / 431.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.127, allocations: 3.984 kB / 431.5 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.991e-06/0.127, allocations: 0 / 431.5 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.154e-06/0.127, allocations: 11.92 kB / 431.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.127, allocations: 3.938 kB / 431.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001594/0.1272, allocations: 169.3 kB / 431.7 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.546e-05/0.1272, allocations: 81.06 kB / 431.7 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.806e-05/0.1272, allocations: 4 kB / 431.7 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.825e-05/0.1273, allocations: 0 / 431.7 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.151e-05/0.1273, allocations: 15.92 kB / 431.8 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.198e-05/0.1273, allocations: 0 / 431.8 MB, free: 15.51 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.241e-05/0.1274, allocations: 83.41 kB / 431.8 MB, free: 15.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1274, allocations: 4 kB / 431.8 MB, free: 15.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003394/0.1277, allocations: 31.92 kB / 431.9 MB, free: 15.39 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008964/0.1286, allocations: 0.7834 MB / 432.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001253/0.1287, allocations: 39.91 kB / 432.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1287, allocations: 0 / 432.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.14e-05/0.1288, allocations: 24.17 kB / 432.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002301/0.129, allocations: 15.88 kB / 432.7 MB, free: 14.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001343/0.1303, allocations: 1.306 MB / 434 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003307/0.1307, allocations: 0.6884 MB / 434.7 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.316e-05/0.1307, allocations: 4 kB / 434.7 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.818e-05/0.1308, allocations: 19.36 kB / 434.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1308, allocations: 4 kB / 434.8 MB, free: 12.37 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01899/0.1498, allocations: 2.097 MB / 436.9 MB, free: 10.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.741/8.891, allocations: 8 kB / 436.9 MB, free: 10.37 MB / 366.1 MB " [Timeout remaining time 651] (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/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 --stepSize=0.000384541 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.63819196401164] Failed to read output from testmodel.py, exit status != 0: ['time', 'impureRandom_y'] 9.020841786987148 9.368346368 9.240692041 Calling exit ...