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.008695/0.008695, allocations: 106.5 kB / 21.98 MB, free: 5.223 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.002352/0.002352, allocations: 215.9 kB / 25.29 MB, free: 3.203 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.468/1.468, allocations: 230.5 MB / 258.9 MB, free: 8.023 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.2306/0.2306, allocations: 46.92 MB / 362.3 MB, free: 4.203 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.002483/0.002483, allocations: 75.88 kB / 0.4982 GB, free: 7.262 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.319/0.3215, allocations: 66.07 MB / 0.5627 GB, free: 4.254 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001798/0.3233, allocations: 0.5038 MB / 0.5632 GB, free: 3.754 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003605/0.3269, allocations: 2.408 MB / 0.5656 GB, free: 1.324 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.525e-05/0.3269, allocations: 0 / 0.5656 GB, free: 1.324 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.766e-05/0.327, allocations: 0 / 0.5656 GB, free: 1.324 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.31e-06/0.327, allocations: 0 / 0.5656 GB, free: 1.324 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.00154/0.3285, allocations: 0.5837 MB / 0.5661 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.439e-05/0.3286, allocations: 3.984 kB / 0.5661 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.802e-05/0.3286, allocations: 8 kB / 0.5661 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.514e-05/0.3286, allocations: 3.938 kB / 0.5661 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.527e-05/0.3286, allocations: 0 / 0.5661 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.98e-06/0.3286, allocations: 0 / 0.5661 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001291/0.3299, allocations: 0.7993 MB / 0.5669 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.701e-05/0.3299, allocations: 3.984 kB / 0.5669 GB, free: 15.92 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.817e-05/0.33, allocations: 0 / 0.5669 GB, free: 15.92 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007014/0.3307, allocations: 473.2 kB / 0.5674 GB, free: 15.46 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3307, allocations: 0 / 0.5674 GB, free: 15.46 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3307, allocations: 0 / 0.5674 GB, free: 15.46 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.3307, allocations: 0 / 0.5674 GB, free: 15.46 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.0004785/0.3311, allocations: 359.1 kB / 0.5677 GB, free: 15.08 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.3312, allocations: 12.03 kB / 0.5677 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.748e-05/0.3312, allocations: 0.9375 kB / 0.5677 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.635e-05/0.3313, allocations: 110.5 kB / 0.5678 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.015e-06/0.3313, allocations: 384 / 0.5678 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.442e-05/0.3313, allocations: 8.312 kB / 0.5679 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.056e-05/0.3314, allocations: 34.02 kB / 0.5679 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.3314, allocations: 3.938 kB / 0.5679 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.164e-06/0.3314, allocations: 0 / 0.5679 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.507e-06/0.3314, allocations: 0 / 0.5679 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.586e-05/0.3315, allocations: 4 kB / 0.5679 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001402/0.3316, allocations: 120.8 kB / 0.568 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.012e-05/0.3316, allocations: 22.59 kB / 0.568 GB, free: 14.69 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.492e-05/0.3317, allocations: 4.859 kB / 0.568 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.249e-06/0.3317, allocations: 4 kB / 0.568 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.196e-05/0.3317, allocations: 60.2 kB / 0.5681 GB, free: 14.6 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.3317, allocations: 0 / 0.5681 GB, free: 14.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001768/0.3319, allocations: 67.39 kB / 0.5682 GB, free: 14.52 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.622e-05/0.3319, allocations: 93.16 kB / 0.5682 GB, free: 14.41 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.993e-05/0.332, allocations: 93.81 kB / 0.5683 GB, free: 14.31 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.15e-05/0.332, allocations: 25.7 kB / 0.5684 GB, free: 14.28 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.997e-05/0.3321, allocations: 80.14 kB / 0.5684 GB, free: 14.2 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.344e-05/0.3321, allocations: 8 kB / 0.5684 GB, free: 14.19 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.804e-05/0.3321, allocations: 13.72 kB / 0.5685 GB, free: 14.17 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.3322, allocations: 310.8 kB / 0.5688 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.987e-06/0.3323, allocations: 0 / 0.5688 GB, free: 13.86 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.97e-06/0.3323, allocations: 4 kB / 0.5688 GB, free: 13.86 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.392e-05/0.3323, allocations: 64.2 kB / 0.5688 GB, free: 13.78 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3323, allocations: 0 / 0.5688 GB, free: 13.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.309e-05/0.3324, allocations: 67.39 kB / 0.5689 GB, free: 13.7 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.806e-05/0.3324, allocations: 36.14 kB / 0.5689 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.3324, allocations: 4 kB / 0.5689 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.3325, allocations: 0 / 0.5689 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.42e-07/0.3325, allocations: 0 / 0.5689 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.3325, allocations: 3.984 kB / 0.5689 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.381e-05/0.3325, allocations: 4.094 kB / 0.5689 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.731e-06/0.3325, allocations: 0 / 0.5689 GB, free: 13.65 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.0001009/0.3326, allocations: 139.5 kB / 0.5691 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.558e-06/0.3326, allocations: 3.938 kB / 0.5691 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.488e-06/0.3326, allocations: 3 kB / 0.5691 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.3326, allocations: 0 / 0.5691 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.135e-06/0.3326, allocations: 3.938 kB / 0.5691 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.3326, allocations: 4 kB / 0.5691 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001023/0.3327, allocations: 124.7 kB / 0.5692 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.3327, allocations: 4 kB / 0.5692 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.6e-07/0.3327, allocations: 0 / 0.5692 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.3327, allocations: 3.938 kB / 0.5692 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.735e-06/0.3327, allocations: 7.938 kB / 0.5692 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.61e-07/0.3327, allocations: 0 / 0.5692 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.3327, allocations: 0 / 0.5692 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001067/0.3328, allocations: 94.83 kB / 0.5693 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.326e-06/0.3328, allocations: 0 / 0.5693 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.249e-05/0.3328, allocations: 7.969 kB / 0.5693 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.925e-06/0.3329, allocations: 0 / 0.5693 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.435e-05/0.3329, allocations: 0 / 0.5693 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-06/0.3329, allocations: 4 kB / 0.5693 GB, free: 13.17 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.281e-05/0.3329, allocations: 75.28 kB / 0.5694 GB, free: 13.1 MB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3329, allocations: 0 / 0.5694 GB, free: 13.1 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004344/0.3333, allocations: 159.4 kB / 0.5695 GB, free: 12.94 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.0007418/0.3341, allocations: 356.7 kB / 0.5699 GB, free: 12.59 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000114/0.3342, allocations: 59.34 kB / 0.5699 GB, free: 12.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3342, allocations: 0 / 0.5699 GB, free: 12.52 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.991e-05/0.3342, allocations: 55.41 kB / 0.57 GB, free: 12.45 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001182/0.3344, allocations: 4 kB / 0.57 GB, free: 12.45 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000208/0.3346, allocations: 118.8 kB / 0.5701 GB, free: 12.3 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003099/0.3349, allocations: 0.6729 MB / 0.5708 GB, free: 11.6 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.275e-05/0.3349, allocations: 7.438 kB / 0.5708 GB, free: 11.59 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3349, allocations: 0 / 0.5708 GB, free: 11.59 MB / 414.1 MB Notification: Performance of Templates: time 0.006154/0.341, allocations: 3.374 MB / 0.5741 GB, free: 8.211 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 -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: 8.62891235994175]