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.001321/0.001321, allocations: 110.5 kB / 21.17 MB, free: 0.7617 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.00144/0.00144, allocations: 220.5 kB / 24.47 MB, free: 4.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.455/1.455, allocations: 230.2 MB / 257.8 MB, free: 8.453 MB / 206.1 MB " [Timeout remaining time 178] 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.2264/0.2264, allocations: 46.89 MB / 361.1 MB, free: 4.641 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: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions") [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.002432/0.002432, allocations: 79.88 kB / 0.4967 GB, free: 7.828 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.3288, allocations: 65.99 MB / 0.5612 GB, free: 5.031 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.00183/0.3307, allocations: 0.501 MB / 0.5617 GB, free: 4.531 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003943/0.3346, allocations: 2.404 MB / 0.564 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.305e-05/0.3346, allocations: 3.938 kB / 0.564 GB, free: 2.102 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.877e-05/0.3347, allocations: 4 kB / 0.564 GB, free: 2.098 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.693e-06/0.3347, allocations: 0 / 0.564 GB, free: 2.098 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.001667/0.3363, allocations: 0.5686 MB / 0.5646 GB, free: 1.527 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.775e-05/0.3364, allocations: 0 / 0.5646 GB, free: 1.527 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.676e-05/0.3364, allocations: 3.984 kB / 0.5646 GB, free: 1.523 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.476e-05/0.3365, allocations: 4 kB / 0.5646 GB, free: 1.52 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.231e-05/0.3365, allocations: 0 / 0.5646 GB, free: 1.52 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.683e-06/0.3365, allocations: 0 / 0.5646 GB, free: 1.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001342/0.3378, allocations: 0.7409 MB / 0.5653 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.146e-06/0.3379, allocations: 0 / 0.5653 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.681e-05/0.3379, allocations: 0 / 0.5653 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006723/0.3386, allocations: 453.5 kB / 0.5658 GB, free: 344 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.3386, allocations: 7.984 kB / 0.5658 GB, free: 336 kB / 398.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.3386, allocations: 0 / 0.5658 GB, free: 336 kB / 398.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.3386, allocations: 4 kB / 0.5658 GB, free: 332 kB / 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.0005833/0.3392, allocations: 444.1 kB / 0.5662 GB, free: 15.84 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.3392, allocations: 8.031 kB / 0.5662 GB, free: 15.83 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.684e-05/0.3392, allocations: 0.9375 kB / 0.5662 GB, free: 15.83 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/0.3394, allocations: 172.4 kB / 0.5664 GB, free: 15.62 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.265e-06/0.3394, allocations: 384 / 0.5664 GB, free: 15.62 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.613e-05/0.3394, allocations: 4.375 kB / 0.5664 GB, free: 15.62 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.138e-05/0.3395, allocations: 38.02 kB / 0.5664 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.3395, allocations: 0 / 0.5664 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.945e-06/0.3395, allocations: 0 / 0.5664 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-06/0.3395, allocations: 0 / 0.5664 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.49e-05/0.3395, allocations: 0 / 0.5664 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001615/0.3397, allocations: 149.7 kB / 0.5665 GB, free: 15.38 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.664e-05/0.3397, allocations: 18.52 kB / 0.5666 GB, free: 15.35 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.659e-05/0.3397, allocations: 8.859 kB / 0.5666 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.688e-06/0.3397, allocations: 4 kB / 0.5666 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.709e-05/0.3398, allocations: 64.27 kB / 0.5666 GB, free: 15.26 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.3398, allocations: 0 / 0.5666 GB, free: 15.26 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.00024/0.34, allocations: 63.39 kB / 0.5667 GB, free: 15.18 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.611e-05/0.3401, allocations: 81.05 kB / 0.5668 GB, free: 15.09 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.267e-05/0.3401, allocations: 93.81 kB / 0.5669 GB, free: 14.98 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/0.3402, allocations: 25.7 kB / 0.5669 GB, free: 14.95 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.622e-05/0.3402, allocations: 84.27 kB / 0.567 GB, free: 14.87 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.654e-05/0.3403, allocations: 8 kB / 0.567 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.815e-05/0.3403, allocations: 13.72 kB / 0.567 GB, free: 14.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.3404, allocations: 314.8 kB / 0.5673 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.427e-06/0.3405, allocations: 0 / 0.5673 GB, free: 14.52 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.714e-06/0.3405, allocations: 4 kB / 0.5673 GB, free: 14.52 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.365e-05/0.3405, allocations: 60.25 kB / 0.5673 GB, free: 14.45 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3405, allocations: 4 kB / 0.5674 GB, free: 14.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.25e-05/0.3406, allocations: 63.47 kB / 0.5674 GB, free: 14.37 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.654e-05/0.3406, allocations: 41.58 kB / 0.5675 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.3406, allocations: 0 / 0.5675 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.3407, allocations: 0 / 0.5675 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.12e-07/0.3407, allocations: 0 / 0.5675 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.3407, allocations: 0 / 0.5675 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.79e-05/0.3407, allocations: 3.984 kB / 0.5675 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.251e-05/0.3407, allocations: 11.92 kB / 0.5675 GB, free: 14.3 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 0.0001025/0.3408, allocations: 131.5 kB / 0.5676 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.749e-06/0.3408, allocations: 7.969 kB / 0.5676 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.969e-06/0.3408, allocations: 3.125 kB / 0.5676 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.51e-07/0.3408, allocations: 4 kB / 0.5676 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.696e-06/0.3408, allocations: 0 / 0.5676 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.592e-06/0.3408, allocations: 0 / 0.5676 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001172/0.3409, allocations: 149.7 kB / 0.5677 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.3409, allocations: 0 / 0.5677 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.3409, allocations: 0 / 0.5677 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.3409, allocations: 3.938 kB / 0.5678 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/0.341, allocations: 4 kB / 0.5678 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.341, allocations: 0 / 0.5678 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.341, allocations: 4 kB / 0.5678 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001032/0.3411, allocations: 94.77 kB / 0.5679 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.057e-05/0.3411, allocations: 77.11 kB / 0.5679 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.526e-05/0.3411, allocations: 7.938 kB / 0.5679 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.836e-06/0.3411, allocations: 0 / 0.5679 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.628e-06/0.3411, allocations: 0 / 0.5679 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.414e-06/0.3411, allocations: 4 kB / 0.5679 GB, free: 13.71 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.329e-05/0.3412, allocations: 79.31 kB / 0.568 GB, free: 13.64 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3412, allocations: 0 / 0.568 GB, free: 13.64 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004713/0.3416, allocations: 163.4 kB / 0.5682 GB, free: 13.48 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.0008044/0.3425, allocations: 350.3 kB / 0.5685 GB, free: 13.13 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001272/0.3426, allocations: 63.41 kB / 0.5686 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3426, allocations: 0 / 0.5686 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.793e-05/0.3426, allocations: 51.41 kB / 0.5686 GB, free: 13 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001266/0.3427, allocations: 4 kB / 0.5686 GB, free: 12.99 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002204/0.343, allocations: 96.92 kB / 0.5687 GB, free: 12.87 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003244/0.3433, allocations: 0.669 MB / 0.5694 GB, free: 12.18 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.165e-06/0.3433, allocations: 8 kB / 0.5694 GB, free: 12.17 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.438e-05/0.3433, allocations: 7.438 kB / 0.5694 GB, free: 12.16 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3433, allocations: 4.125 kB / 0.5694 GB, free: 12.16 MB / 414.1 MB Notification: Performance of Templates: time 0.007809/0.3511, allocations: 3.596 MB / 0.5729 GB, free: 8.559 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (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 & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 5.105765155982226]