Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001608/0.001608, allocations: 112.2 kB / 21.19 MB, free: 0.7617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002008/0.002008, allocations: 209.9 kB / 24.49 MB, free: 4.145 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.431/1.431, allocations: 230.6 MB / 258.3 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2214/0.2214, allocations: 46.93 MB / 361.6 MB, free: 4.246 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+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00216/0.00216, allocations: 59.91 kB / 0.4974 GB, free: 7.391 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2993/0.3014, allocations: 66.04 MB / 0.5619 GB, free: 4.395 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001792/0.3032, allocations: 0.5124 MB / 0.5624 GB, free: 3.879 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003779/0.307, allocations: 2.401 MB / 0.5647 GB, free: 1.457 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.513e-05/0.307, allocations: 0 / 0.5647 GB, free: 1.457 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.918e-05/0.307, allocations: 3.938 kB / 0.5647 GB, free: 1.453 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.511e-06/0.307, allocations: 0 / 0.5647 GB, free: 1.453 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.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.001762/0.3088, allocations: 0.5765 MB / 0.5653 GB, free: 0.875 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.994e-05/0.3089, allocations: 0 / 0.5653 GB, free: 0.875 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.217e-05/0.3089, allocations: 8 kB / 0.5653 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.76e-05/0.3089, allocations: 3.938 kB / 0.5653 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.882e-05/0.3089, allocations: 3.984 kB / 0.5653 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.362e-06/0.3089, allocations: 0 / 0.5653 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001444/0.3104, allocations: 0.8071 MB / 0.5661 GB, free: 52 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.635e-06/0.3104, allocations: 0 / 0.5661 GB, free: 52 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.973e-05/0.3104, allocations: 0 / 0.5661 GB, free: 52 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008384/0.3113, allocations: 469.2 kB / 0.5665 GB, free: 15.6 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3113, allocations: 0 / 0.5665 GB, free: 15.6 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3113, allocations: 0 / 0.5665 GB, free: 15.6 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.802e-06/0.3113, allocations: 0 / 0.5665 GB, free: 15.6 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.0005212/0.3118, allocations: 363.1 kB / 0.5669 GB, free: 15.21 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.3118, allocations: 12.03 kB / 0.5669 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.926e-05/0.3119, allocations: 0.9375 kB / 0.5669 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.681e-05/0.3119, allocations: 106.5 kB / 0.567 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.191e-05/0.3119, allocations: 384 / 0.567 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.361e-05/0.312, allocations: 8.312 kB / 0.567 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001004/0.3121, allocations: 37.95 kB / 0.567 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.3121, allocations: 0 / 0.567 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.855e-06/0.3121, allocations: 0 / 0.567 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.3121, allocations: 7.984 kB / 0.567 GB, free: 15.01 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.85e-05/0.3121, allocations: 4 kB / 0.567 GB, free: 15 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001292/0.3122, allocations: 116.8 kB / 0.5672 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.634e-05/0.3123, allocations: 18.61 kB / 0.5672 GB, free: 14.82 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.645e-05/0.3123, allocations: 8.797 kB / 0.5672 GB, free: 14.81 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.167e-06/0.3123, allocations: 4 kB / 0.5672 GB, free: 14.8 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.286e-05/0.3124, allocations: 64.14 kB / 0.5672 GB, free: 14.73 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.3124, allocations: 4.062 kB / 0.5673 GB, free: 14.72 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001687/0.3125, allocations: 59.39 kB / 0.5673 GB, free: 14.65 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.005e-05/0.3126, allocations: 85.23 kB / 0.5674 GB, free: 14.55 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.013e-05/0.3127, allocations: 93.81 kB / 0.5675 GB, free: 14.45 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.571e-05/0.3127, allocations: 25.7 kB / 0.5675 GB, free: 14.42 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.164e-05/0.3127, allocations: 80.14 kB / 0.5676 GB, free: 14.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.3127, allocations: 8 kB / 0.5676 GB, free: 14.33 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.029e-05/0.3128, allocations: 13.72 kB / 0.5676 GB, free: 14.31 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.3129, allocations: 314.8 kB / 0.5679 GB, free: 13.99 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.267e-06/0.3129, allocations: 0 / 0.5679 GB, free: 13.99 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.671e-06/0.3129, allocations: 7.938 kB / 0.5679 GB, free: 13.98 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.464e-05/0.313, allocations: 60.27 kB / 0.568 GB, free: 13.91 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.313, allocations: 0 / 0.568 GB, free: 13.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.514e-05/0.3131, allocations: 63.41 kB / 0.568 GB, free: 13.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.256e-05/0.3131, allocations: 41.62 kB / 0.5681 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.3131, allocations: 0 / 0.5681 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.3131, allocations: 0 / 0.5681 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.61e-07/0.3131, allocations: 0 / 0.5681 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.718e-06/0.3131, allocations: 0 / 0.5681 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.524e-05/0.3131, allocations: 4.094 kB / 0.5681 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.942e-06/0.3131, allocations: 0 / 0.5681 GB, free: 13.79 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.895e-05/0.3132, allocations: 135.5 kB / 0.5682 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.021e-05/0.3133, allocations: 7.875 kB / 0.5682 GB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.142e-05/0.3133, allocations: 3 kB / 0.5682 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.3133, allocations: 3.984 kB / 0.5682 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.3133, allocations: 7.938 kB / 0.5682 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.3133, allocations: 0 / 0.5682 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.668e-05/0.3134, allocations: 116.8 kB / 0.5683 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3134, allocations: 4 kB / 0.5683 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.82e-07/0.3134, allocations: 0 / 0.5683 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.634e-06/0.3134, allocations: 7.922 kB / 0.5683 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.954e-06/0.3134, allocations: 4 kB / 0.5683 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.3134, allocations: 0 / 0.5683 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3134, allocations: 0 / 0.5683 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001189/0.3135, allocations: 94.83 kB / 0.5684 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.348e-06/0.3135, allocations: 0 / 0.5684 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.259e-05/0.3135, allocations: 7.969 kB / 0.5684 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.112e-05/0.3135, allocations: 3.984 kB / 0.5684 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.592e-05/0.3136, allocations: 4 kB / 0.5685 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.608e-06/0.3136, allocations: 4 kB / 0.5685 GB, free: 13.3 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.393e-05/0.3136, allocations: 75.28 kB / 0.5685 GB, free: 13.23 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3136, allocations: 7.875 kB / 0.5685 GB, free: 13.22 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004985/0.3141, allocations: 159.4 kB / 0.5687 GB, free: 13.07 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.0008063/0.3149, allocations: 348.7 kB / 0.569 GB, free: 12.72 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000116/0.315, allocations: 55.41 kB / 0.5691 GB, free: 12.66 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.315, allocations: 0 / 0.5691 GB, free: 12.66 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.666e-05/0.3151, allocations: 59.39 kB / 0.5691 GB, free: 12.59 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001219/0.3152, allocations: 6.406 kB / 0.5691 GB, free: 12.58 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002125/0.3154, allocations: 118.8 kB / 0.5692 GB, free: 12.43 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003073/0.3157, allocations: 0.669 MB / 0.5699 GB, free: 11.74 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.287e-05/0.3157, allocations: 7.438 kB / 0.5699 GB, free: 11.73 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3157, allocations: 0 / 0.5699 GB, free: 11.73 MB / 414.1 MB Notification: Performance of Templates: time 0.006589/0.3223, allocations: 3.386 MB / 0.5732 GB, free: 8.34 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_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.315463801147416]