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.001745/0.001745, allocations: 113.1 kB / 21.85 MB, free: 64 kB / 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.001905/0.001905, allocations: 204 kB / 25.13 MB, free: 3.578 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.45/1.45, allocations: 230.4 MB / 258.7 MB, free: 8.234 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.234/0.234, allocations: 46.93 MB / 362 MB, free: 4.254 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.002367/0.002367, allocations: 83.86 kB / 0.4978 GB, free: 7.391 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3682/0.3706, allocations: 66.08 MB / 0.5623 GB, free: 4.258 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.00159/0.3722, allocations: 0.4971 MB / 0.5628 GB, free: 3.762 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003485/0.3756, allocations: 2.404 MB / 0.5652 GB, free: 1.336 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.498e-05/0.3757, allocations: 0 / 0.5652 GB, free: 1.336 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.148e-05/0.3757, allocations: 0 / 0.5652 GB, free: 1.336 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.45e-06/0.3757, allocations: 0 / 0.5652 GB, free: 1.336 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.001612/0.3773, allocations: 0.5803 MB / 0.5657 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.911e-05/0.3773, allocations: 3.938 kB / 0.5657 GB, free: 0.75 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.053e-05/0.3774, allocations: 8 kB / 0.5657 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.752e-05/0.3774, allocations: 7.922 kB / 0.5657 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.757e-05/0.3774, allocations: 0 / 0.5657 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.502e-06/0.3774, allocations: 0 / 0.5657 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001227/0.3786, allocations: 0.7214 MB / 0.5664 GB, free: 12 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.326e-05/0.3787, allocations: 0 / 0.5664 GB, free: 12 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.828e-05/0.3787, allocations: 4 kB / 0.5665 GB, free: 8 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000699/0.3794, allocations: 453.2 kB / 0.5669 GB, free: 15.57 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.3794, allocations: 0 / 0.5669 GB, free: 15.57 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.3794, allocations: 0 / 0.5669 GB, free: 15.57 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.212e-05/0.3794, allocations: 0 / 0.5669 GB, free: 15.57 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.0004996/0.3799, allocations: 367 kB / 0.5672 GB, free: 15.18 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.3799, allocations: 8.031 kB / 0.5672 GB, free: 15.17 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.816e-05/0.38, allocations: 4.938 kB / 0.5672 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.658e-05/0.3801, allocations: 106.5 kB / 0.5673 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.3801, allocations: 4.375 kB / 0.5674 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.165e-05/0.3801, allocations: 384 / 0.5674 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001059/0.3802, allocations: 59.72 kB / 0.5674 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.694e-06/0.3802, allocations: 4 kB / 0.5674 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.526e-06/0.3802, allocations: 0 / 0.5674 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.3802, allocations: 0 / 0.5674 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.339e-05/0.3802, allocations: 29.64 kB / 0.5674 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001485/0.3804, allocations: 124.8 kB / 0.5676 GB, free: 14.76 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.307e-05/0.3805, allocations: 44.28 kB / 0.5676 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.306e-05/0.3805, allocations: 34.66 kB / 0.5676 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.325e-06/0.3805, allocations: 0 / 0.5676 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.95e-05/0.3806, allocations: 60.2 kB / 0.5677 GB, free: 14.58 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 4.268e-06/0.3806, allocations: 3.984 kB / 0.5677 GB, free: 14.58 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.000223/0.3808, allocations: 122.7 kB / 0.5678 GB, free: 14.43 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.634e-05/0.3808, allocations: 81.23 kB / 0.5679 GB, free: 14.34 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.98e-05/0.3809, allocations: 93.81 kB / 0.568 GB, free: 14.23 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.379e-05/0.3809, allocations: 29.7 kB / 0.568 GB, free: 14.2 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.146e-05/0.3809, allocations: 80.14 kB / 0.5681 GB, free: 14.12 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.266e-05/0.381, allocations: 4 kB / 0.5681 GB, free: 14.11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.004e-05/0.381, allocations: 9.719 kB / 0.5681 GB, free: 14.1 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.3811, allocations: 318.8 kB / 0.5684 GB, free: 13.78 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.178e-05/0.3811, allocations: 25.7 kB / 0.5684 GB, free: 13.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.223e-05/0.3812, allocations: 33.7 kB / 0.5685 GB, free: 13.71 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.297e-05/0.3812, allocations: 60.27 kB / 0.5685 GB, free: 13.63 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3812, allocations: 0 / 0.5685 GB, free: 13.63 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.29e-05/0.3813, allocations: 93.03 kB / 0.5686 GB, free: 13.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.576e-05/0.3814, allocations: 33.64 kB / 0.5686 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.3814, allocations: 4 kB / 0.5686 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.3814, allocations: 7.875 kB / 0.5686 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.22e-07/0.3814, allocations: 0 / 0.5686 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.3814, allocations: 4.094 kB / 0.5687 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.604e-05/0.3814, allocations: 8 kB / 0.5687 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.324e-06/0.3814, allocations: 0 / 0.5687 GB, free: 13.46 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.789e-05/0.3815, allocations: 135.5 kB / 0.5688 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.189e-05/0.3815, allocations: 3.938 kB / 0.5688 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.333e-05/0.3815, allocations: 6.984 kB / 0.5688 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.3815, allocations: 0 / 0.5688 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.3815, allocations: 0 / 0.5688 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.3815, allocations: 4 kB / 0.5688 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.302e-05/0.3816, allocations: 112.8 kB / 0.5689 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.3816, allocations: 4 kB / 0.5689 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.81e-07/0.3816, allocations: 0 / 0.5689 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.327e-06/0.3816, allocations: 3.938 kB / 0.5689 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.3816, allocations: 4 kB / 0.5689 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.3816, allocations: 3.984 kB / 0.5689 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.3816, allocations: 0 / 0.5689 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001176/0.3818, allocations: 120.5 kB / 0.569 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.454e-06/0.3818, allocations: 12.02 kB / 0.5691 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.255e-05/0.3818, allocations: 3.938 kB / 0.5691 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.285e-06/0.3818, allocations: 0 / 0.5691 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.679e-05/0.3818, allocations: 4 kB / 0.5691 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-06/0.3818, allocations: 0 / 0.5691 GB, free: 12.96 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.397e-05/0.3818, allocations: 75.28 kB / 0.5691 GB, free: 12.89 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3818, allocations: 0 / 0.5691 GB, free: 12.89 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004558/0.3823, allocations: 159.4 kB / 0.5693 GB, free: 12.73 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.0007705/0.3831, allocations: 354.9 kB / 0.5696 GB, free: 12.38 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000137/0.3832, allocations: 118.8 kB / 0.5697 GB, free: 12.24 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3832, allocations: 0 / 0.5697 GB, free: 12.24 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.503e-05/0.3833, allocations: 81.05 kB / 0.5698 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.0001262/0.3834, allocations: 4 kB / 0.5698 GB, free: 12.14 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002167/0.3836, allocations: 122.8 kB / 0.5699 GB, free: 11.98 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002695/0.3839, allocations: 0.669 MB / 0.5706 GB, free: 11.29 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.598e-06/0.3839, allocations: 0 / 0.5706 GB, free: 11.29 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.333e-05/0.3839, allocations: 11.44 kB / 0.5706 GB, free: 11.28 MB / 414.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3839, allocations: 0 / 0.5706 GB, free: 11.28 MB / 414.1 MB Notification: Performance of Templates: time 0.00784/0.3917, allocations: 3.6 MB / 0.5741 GB, free: 7.676 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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.1133516759146005]