Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.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.00204/0.00204, allocations: 105.5 kB / 19.74 MB, free: 2.453 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.002284/0.002284, allocations: 216 kB / 22.92 MB, free: 5.191 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.305/1.305, allocations: 230.2 MB / 256.2 MB, free: 8.648 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2054/0.2054, allocations: 46.9 MB / 359.3 MB, free: 5.004 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) 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(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002109/0.002109, allocations: 83.86 kB / 0.494 GB, free: 9.141 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.2831, allocations: 65.97 MB / 0.5584 GB, free: 5.262 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001359/0.2845, allocations: 0.4931 MB / 0.5589 GB, free: 4.766 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003257/0.2877, allocations: 2.408 MB / 0.5612 GB, free: 2.336 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.236e-05/0.2878, allocations: 3.938 kB / 0.5612 GB, free: 2.332 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.598e-06/0.2878, allocations: 0 / 0.5612 GB, free: 2.332 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.779e-06/0.2878, allocations: 0 / 0.5612 GB, free: 2.332 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Math.mo:1098:5-1194:31:writable] Warning: Pure function 'ModelicaTest.Math.Random.truncatedDistributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001334/0.2891, allocations: 0.5642 MB / 0.5618 GB, free: 1.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.169e-05/0.2891, allocations: 0 / 0.5618 GB, free: 1.77 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.179e-05/0.2892, allocations: 12 kB / 0.5618 GB, free: 1.758 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.425e-05/0.2892, allocations: 3.938 kB / 0.5618 GB, free: 1.754 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.634e-05/0.2892, allocations: 3.984 kB / 0.5618 GB, free: 1.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.46e-06/0.2892, allocations: 0 / 0.5618 GB, free: 1.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001227/0.2904, allocations: 0.7369 MB / 0.5625 GB, free: 1.012 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.216e-06/0.2904, allocations: 3.984 kB / 0.5625 GB, free: 1.008 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.882e-05/0.2905, allocations: 0 / 0.5625 GB, free: 1.008 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006251/0.2911, allocations: 456.7 kB / 0.563 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.2911, allocations: 3.984 kB / 0.563 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2911, allocations: 0 / 0.563 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.2911, allocations: 0 / 0.563 GB, free: 0.5586 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004464/0.2916, allocations: 440.2 kB / 0.5634 GB, free: 76 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.2916, allocations: 12.03 kB / 0.5634 GB, free: 64 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.974e-05/0.2916, allocations: 34.7 kB / 0.5634 GB, free: 20 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.223e-05/0.2917, allocations: 8.922 kB / 0.5634 GB, free: 12 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001444/0.2918, allocations: 164.3 kB / 0.5636 GB, free: 15.81 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.131e-05/0.2918, allocations: 4.312 kB / 0.5636 GB, free: 15.81 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.198e-05/0.2918, allocations: 8.375 kB / 0.5636 GB, free: 15.8 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.044e-05/0.2919, allocations: 33.83 kB / 0.5636 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.141e-06/0.2919, allocations: 0 / 0.5636 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.164e-06/0.2919, allocations: 0 / 0.5636 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.236e-06/0.2919, allocations: 0 / 0.5636 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.657e-05/0.292, allocations: 0 / 0.5636 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002733/0.2922, allocations: 236.9 kB / 0.5639 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.239e-05/0.2923, allocations: 22.55 kB / 0.5639 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.805e-05/0.2923, allocations: 20.91 kB / 0.5639 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.118e-06/0.2923, allocations: 0 / 0.5639 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.076e-05/0.2924, allocations: 60.27 kB / 0.564 GB, free: 15.35 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 2.875e-06/0.2924, allocations: 4 kB / 0.564 GB, free: 15.35 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001762/0.2925, allocations: 79.27 kB / 0.5641 GB, free: 15.26 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.257e-05/0.2926, allocations: 77.11 kB / 0.5641 GB, free: 15.16 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.427e-05/0.2926, allocations: 89.86 kB / 0.5642 GB, free: 15.07 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.269e-05/0.2927, allocations: 25.7 kB / 0.5642 GB, free: 15.04 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.893e-05/0.2927, allocations: 80.14 kB / 0.5643 GB, free: 14.95 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.546e-05/0.2927, allocations: 3.953 kB / 0.5643 GB, free: 14.95 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.595e-05/0.2927, allocations: 13.72 kB / 0.5643 GB, free: 14.93 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.2929, allocations: 319 kB / 0.5646 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.152e-05/0.2929, allocations: 4 kB / 0.5646 GB, free: 14.61 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.554e-06/0.2929, allocations: 3.984 kB / 0.5646 GB, free: 14.6 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.147e-05/0.2929, allocations: 68.27 kB / 0.5647 GB, free: 14.52 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.293, allocations: 3.938 kB / 0.5647 GB, free: 14.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.586e-05/0.293, allocations: 63.34 kB / 0.5648 GB, free: 14.44 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.206e-05/0.2931, allocations: 37.69 kB / 0.5648 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.466e-06/0.2931, allocations: 0 / 0.5648 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.2931, allocations: 4.094 kB / 0.5648 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.071e-05/0.2931, allocations: 0 / 0.5648 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.947e-06/0.2931, allocations: 0 / 0.5648 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.6e-05/0.2931, allocations: 0 / 0.5648 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.234e-06/0.2931, allocations: 3.984 kB / 0.5648 GB, free: 14.39 MB / 414.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: 2 ($outputAlias_result,result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * 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.316e-05/0.2932, allocations: 143.5 kB / 0.565 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.073e-05/0.2932, allocations: 0 / 0.565 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.468e-06/0.2932, allocations: 3.125 kB / 0.565 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.2932, allocations: 7.938 kB / 0.565 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.2932, allocations: 3.984 kB / 0.565 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.2932, allocations: 4 kB / 0.565 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000251/0.2935, allocations: 300.2 kB / 0.5653 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.2935, allocations: 0 / 0.5653 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.266e-06/0.2935, allocations: 4 kB / 0.5653 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.2935, allocations: 0 / 0.5653 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.221e-06/0.2935, allocations: 0 / 0.5653 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.2935, allocations: 0 / 0.5653 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2935, allocations: 0 / 0.5653 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001305/0.2936, allocations: 177.2 kB / 0.5654 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.865e-05/0.2937, allocations: 77.11 kB / 0.5655 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.022e-05/0.2937, allocations: 0 / 0.5655 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.608e-05/0.2937, allocations: 0 / 0.5655 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.811e-05/0.2937, allocations: 7.984 kB / 0.5655 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-06/0.2937, allocations: 0 / 0.5655 GB, free: 13.56 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.627e-05/0.2938, allocations: 79.31 kB / 0.5656 GB, free: 13.48 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2938, allocations: 0 / 0.5656 GB, free: 13.48 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004386/0.2942, allocations: 167.4 kB / 0.5657 GB, free: 13.32 MB / 414.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 (result,$outputAlias_result) * Number of discrete states: 1 ($outputAlias_result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.001107/0.2953, allocations: 0.9615 MB / 0.5667 GB, free: 12.33 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001041/0.2954, allocations: 63.39 kB / 0.5667 GB, free: 12.25 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2954, allocations: 0 / 0.5667 GB, free: 12.25 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.467e-05/0.2955, allocations: 63.34 kB / 0.5668 GB, free: 12.18 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001771/0.2957, allocations: 6.5 kB / 0.5668 GB, free: 12.18 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009631/0.2966, allocations: 1.211 MB / 0.568 GB, free: 10.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002953/0.2969, allocations: 0.6729 MB / 0.5686 GB, free: 10.18 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.035e-06/0.2969, allocations: 0 / 0.5686 GB, free: 10.18 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.729e-05/0.2969, allocations: 11.5 kB / 0.5687 GB, free: 10.17 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2969, allocations: 3.938 kB / 0.5687 GB, free: 10.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02475/0.3217, allocations: 4.62 MB / 0.5732 GB, free: 5.609 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.999/7.32, allocations: 3.859 kB / 0.5732 GB, free: 5.605 MB / 414.1 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.833897746997536]