Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001456/0.001456, allocations: 109.1 kB / 21.18 MB, free: 0.7656 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.001608/0.001608, allocations: 213.7 kB / 24.5 MB, free: 4.148 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.346/1.346, allocations: 230.5 MB / 258.1 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2227/0.2227, allocations: 46.93 MB / 361.5 MB, free: 4.16 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002333/0.002333, allocations: 75.88 kB / 0.4974 GB, free: 7.234 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2825, allocations: 66.07 MB / 0.5619 GB, free: 4.246 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001633/0.2841, allocations: 0.5087 MB / 0.5624 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003402/0.2875, allocations: 2.404 MB / 0.5648 GB, free: 1.312 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.392e-05/0.2875, allocations: 0 / 0.5648 GB, free: 1.312 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.516e-05/0.2875, allocations: 0 / 0.5648 GB, free: 1.312 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.609e-06/0.2875, allocations: 0 / 0.5648 GB, free: 1.312 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001534/0.2891, allocations: 0.5842 MB / 0.5654 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.851e-05/0.2891, allocations: 0 / 0.5654 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.262e-05/0.2891, allocations: 0 / 0.5654 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.559e-05/0.2892, allocations: 15.92 kB / 0.5654 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.417e-05/0.2892, allocations: 0 / 0.5654 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.48e-06/0.2892, allocations: 0 / 0.5654 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00128/0.2905, allocations: 0.8032 MB / 0.5662 GB, free: 15.91 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.492e-06/0.2905, allocations: 0 / 0.5662 GB, free: 15.91 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.665e-05/0.2905, allocations: 0 / 0.5662 GB, free: 15.91 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006901/0.2912, allocations: 469.2 kB / 0.5666 GB, free: 15.45 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.2912, allocations: 0 / 0.5666 GB, free: 15.45 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2912, allocations: 0 / 0.5666 GB, free: 15.45 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.958e-06/0.2912, allocations: 4 kB / 0.5666 GB, free: 15.45 MB / 414.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.000448/0.2916, allocations: 359.1 kB / 0.567 GB, free: 15.06 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.2917, allocations: 12.02 kB / 0.567 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.576e-05/0.2917, allocations: 4.938 kB / 0.567 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.241e-05/0.2918, allocations: 102.5 kB / 0.5671 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.2918, allocations: 4.375 kB / 0.5671 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.039e-05/0.2918, allocations: 384 / 0.5671 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.86e-05/0.2919, allocations: 37.95 kB / 0.5671 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.2919, allocations: 3.938 kB / 0.5671 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.612e-06/0.2919, allocations: 0 / 0.5671 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.2919, allocations: 0 / 0.5671 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.56e-05/0.2919, allocations: 4 kB / 0.5671 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001286/0.292, allocations: 120.8 kB / 0.5672 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.214e-05/0.2921, allocations: 18.58 kB / 0.5672 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.507e-05/0.2921, allocations: 8.953 kB / 0.5673 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.202e-06/0.2921, allocations: 0 / 0.5673 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.25e-05/0.2922, allocations: 60.2 kB / 0.5673 GB, free: 14.59 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 7.92e-07/0.2922, allocations: 0 / 0.5673 GB, free: 14.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001542/0.2923, allocations: 71.33 kB / 0.5674 GB, free: 14.51 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.855e-05/0.2924, allocations: 77.11 kB / 0.5675 GB, free: 14.42 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.141e-05/0.2924, allocations: 97.94 kB / 0.5675 GB, free: 14.31 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.459e-05/0.2924, allocations: 29.7 kB / 0.5676 GB, free: 14.28 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.077e-05/0.2925, allocations: 80.14 kB / 0.5677 GB, free: 14.2 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.411e-05/0.2925, allocations: 4 kB / 0.5677 GB, free: 14.19 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.7e-05/0.2925, allocations: 13.66 kB / 0.5677 GB, free: 14.17 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.2926, allocations: 318.8 kB / 0.568 GB, free: 13.85 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.995e-06/0.2926, allocations: 0 / 0.568 GB, free: 13.85 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.424e-06/0.2927, allocations: 3.984 kB / 0.568 GB, free: 13.85 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.592e-05/0.2927, allocations: 68.27 kB / 0.568 GB, free: 13.77 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.2927, allocations: 0 / 0.568 GB, free: 13.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.855e-05/0.2928, allocations: 59.41 kB / 0.5681 GB, free: 13.7 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.067e-05/0.2928, allocations: 37.64 kB / 0.5681 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.2928, allocations: 3.984 kB / 0.5681 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.2928, allocations: 3.984 kB / 0.5681 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.525e-06/0.2928, allocations: 4 kB / 0.5681 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.2928, allocations: 3.984 kB / 0.5682 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.374e-05/0.2929, allocations: 0 / 0.5682 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.628e-06/0.2929, allocations: 4.031 kB / 0.5682 GB, free: 13.63 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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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 8.279e-05/0.2929, allocations: 135.5 kB / 0.5683 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.137e-06/0.293, allocations: 3.938 kB / 0.5683 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.697e-06/0.293, allocations: 3 kB / 0.5683 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.093e-06/0.293, allocations: 0 / 0.5683 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.293, allocations: 0 / 0.5683 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-06/0.293, allocations: 3.938 kB / 0.5683 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.661e-05/0.2931, allocations: 124.7 kB / 0.5684 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.2931, allocations: 4 kB / 0.5684 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.2931, allocations: 4 kB / 0.5684 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.2931, allocations: 3.938 kB / 0.5684 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.1e-06/0.2931, allocations: 3.938 kB / 0.5684 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.2931, allocations: 0 / 0.5684 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.2931, allocations: 4 kB / 0.5684 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001026/0.2932, allocations: 90.83 kB / 0.5685 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.123e-06/0.2932, allocations: 8 kB / 0.5685 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.211e-05/0.2932, allocations: 3.938 kB / 0.5685 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.258e-06/0.2932, allocations: 4.031 kB / 0.5685 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.168e-05/0.2932, allocations: 0 / 0.5685 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.265e-06/0.2932, allocations: 0 / 0.5685 GB, free: 13.16 MB / 414.1 MB Notification: Performance of sorting global known variables: time 2.868e-05/0.2933, allocations: 79.28 kB / 0.5686 GB, free: 13.08 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2933, allocations: 0 / 0.5686 GB, free: 13.08 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004641/0.2937, allocations: 159.4 kB / 0.5688 GB, free: 12.93 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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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.0007121/0.2944, allocations: 354.3 kB / 0.5691 GB, free: 12.57 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001004/0.2945, allocations: 63.34 kB / 0.5692 GB, free: 12.5 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2945, allocations: 0 / 0.5692 GB, free: 12.5 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.478e-05/0.2946, allocations: 55.41 kB / 0.5692 GB, free: 12.43 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001088/0.2947, allocations: 0 / 0.5692 GB, free: 12.43 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001772/0.2949, allocations: 118.8 kB / 0.5693 GB, free: 12.29 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002795/0.2951, allocations: 0.6729 MB / 0.57 GB, free: 11.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.529e-05/0.2951, allocations: 11.44 kB / 0.57 GB, free: 11.57 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2952, allocations: 0 / 0.57 GB, free: 11.57 MB / 414.1 MB Notification: Performance of Templates: time 0.00578/0.3009, allocations: 3.378 MB / 0.5733 GB, free: 8.191 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.717739890096709]