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.001732/0.001732, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.002222/0.002222, allocations: 210.5 kB / 24.48 MB, free: 3.934 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.473/1.473, allocations: 230.5 MB / 258.1 MB, free: 7.789 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.2348/0.2348, allocations: 46.95 MB / 361.6 MB, free: 3.914 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.002392/0.002392, allocations: 79.86 kB / 0.4974 GB, free: 7.047 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3223, allocations: 66.09 MB / 0.5619 GB, free: 3.969 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001674/0.324, allocations: 0.501 MB / 0.5624 GB, free: 3.469 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00347/0.3274, allocations: 2.241 MB / 0.5646 GB, free: 1.207 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.344e-05/0.3275, allocations: 4 kB / 0.5646 GB, free: 1.203 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.723e-05/0.3275, allocations: 3.938 kB / 0.5646 GB, free: 1.199 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.422e-06/0.3275, allocations: 3.938 kB / 0.5646 GB, free: 1.195 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.001576/0.3291, allocations: 0.5757 MB / 0.5652 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.04e-05/0.3291, allocations: 0 / 0.5652 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.821e-05/0.3291, allocations: 3.984 kB / 0.5652 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.631e-05/0.3292, allocations: 4 kB / 0.5652 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.713e-05/0.3292, allocations: 0 / 0.5652 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.172e-06/0.3292, allocations: 0 / 0.5652 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001183/0.3304, allocations: 0.6784 MB / 0.5658 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.636e-06/0.3304, allocations: 4 kB / 0.5658 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.03e-05/0.3304, allocations: 3.984 kB / 0.5658 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006588/0.331, allocations: 437.3 kB / 0.5663 GB, free: 15.5 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.331, allocations: 4 kB / 0.5663 GB, free: 15.5 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3311, allocations: 0 / 0.5663 GB, free: 15.5 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.3311, allocations: 7.938 kB / 0.5663 GB, free: 15.49 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.0004845/0.3315, allocations: 367 kB / 0.5666 GB, free: 15.1 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.3316, allocations: 12.03 kB / 0.5666 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.231e-05/0.3316, allocations: 0.9375 kB / 0.5666 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.954e-05/0.3317, allocations: 102.5 kB / 0.5667 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.3317, allocations: 384 / 0.5667 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.577e-06/0.3317, allocations: 4.375 kB / 0.5667 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001084/0.3318, allocations: 55.72 kB / 0.5668 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.3318, allocations: 3.984 kB / 0.5668 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.287e-06/0.3318, allocations: 4 kB / 0.5668 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.656e-06/0.3318, allocations: 4 kB / 0.5668 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.945e-05/0.3319, allocations: 25.7 kB / 0.5668 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001115/0.332, allocations: 101.3 kB / 0.5669 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.692e-05/0.332, allocations: 44.22 kB / 0.567 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.095e-05/0.3321, allocations: 34.66 kB / 0.567 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.895e-06/0.3321, allocations: 0 / 0.567 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.203e-05/0.3321, allocations: 60.25 kB / 0.567 GB, free: 14.54 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.3321, allocations: 0 / 0.567 GB, free: 14.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002052/0.3323, allocations: 126.7 kB / 0.5672 GB, free: 14.39 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.928e-05/0.3324, allocations: 81.11 kB / 0.5672 GB, free: 14.3 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.073e-05/0.3325, allocations: 97.94 kB / 0.5673 GB, free: 14.19 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.925e-05/0.3325, allocations: 29.69 kB / 0.5674 GB, free: 14.16 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.777e-05/0.3325, allocations: 84.14 kB / 0.5674 GB, free: 14.07 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.682e-05/0.3325, allocations: 0 / 0.5674 GB, free: 14.07 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.16e-05/0.3326, allocations: 13.72 kB / 0.5675 GB, free: 14.05 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.3327, allocations: 314.8 kB / 0.5678 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.411e-05/0.3328, allocations: 29.64 kB / 0.5678 GB, free: 13.7 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.188e-05/0.3328, allocations: 33.64 kB / 0.5678 GB, free: 13.66 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.403e-05/0.3328, allocations: 60.27 kB / 0.5679 GB, free: 13.59 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.3328, allocations: 0 / 0.5679 GB, free: 13.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001029/0.3329, allocations: 101.1 kB / 0.568 GB, free: 13.47 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.411e-05/0.333, allocations: 31.89 kB / 0.568 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.333, allocations: 0 / 0.568 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.333, allocations: 3.938 kB / 0.568 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.92e-07/0.333, allocations: 0 / 0.568 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.333, allocations: 0 / 0.568 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.594e-05/0.333, allocations: 4 kB / 0.568 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.333, allocations: 0 / 0.568 GB, free: 13.43 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 9.143e-05/0.3331, allocations: 135.5 kB / 0.5681 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.187e-06/0.3331, allocations: 4.031 kB / 0.5681 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.033e-05/0.3331, allocations: 10.94 kB / 0.5682 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.3331, allocations: 0 / 0.5682 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.3331, allocations: 0 / 0.5682 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.3331, allocations: 0 / 0.5682 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.742e-05/0.3332, allocations: 97.33 kB / 0.5682 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.072e-06/0.3332, allocations: 7.984 kB / 0.5683 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.7e-07/0.3332, allocations: 0 / 0.5683 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.3332, allocations: 0 / 0.5683 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.3332, allocations: 4 kB / 0.5683 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.3332, allocations: 3.938 kB / 0.5683 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3332, allocations: 0 / 0.5683 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001317/0.3334, allocations: 128.5 kB / 0.5684 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.831e-06/0.3334, allocations: 4 kB / 0.5684 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.283e-05/0.3334, allocations: 3.984 kB / 0.5684 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.051e-05/0.3334, allocations: 3.938 kB / 0.5684 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.227e-06/0.3334, allocations: 0 / 0.5684 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.479e-06/0.3334, allocations: 4 kB / 0.5684 GB, free: 12.95 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.227e-05/0.3334, allocations: 75.28 kB / 0.5685 GB, free: 12.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3334, allocations: 0 / 0.5685 GB, free: 12.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004278/0.3339, allocations: 159.4 kB / 0.5686 GB, free: 12.72 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.000756/0.3346, allocations: 354.4 kB / 0.569 GB, free: 12.37 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001301/0.3348, allocations: 110.8 kB / 0.5691 GB, free: 12.23 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3348, allocations: 0 / 0.5691 GB, free: 12.23 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.335e-05/0.3348, allocations: 81.11 kB / 0.5691 GB, free: 12.14 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001268/0.3349, allocations: 4.125 kB / 0.5692 GB, free: 12.13 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002471/0.3352, allocations: 152.3 kB / 0.5693 GB, free: 11.95 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.688e-05/0.3352, allocations: 51.36 kB / 0.5693 GB, free: 11.88 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.464e-05/0.3352, allocations: 11.44 kB / 0.5694 GB, free: 11.86 MB / 414.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3352, allocations: 0 / 0.5694 GB, free: 11.86 MB / 414.1 MB Notification: Performance of Templates: time 0.006218/0.3415, allocations: 3.378 MB / 0.5727 GB, free: 8.48 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: 8.65357858221978]