Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.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.001341/0.001341, allocations: 114.5 kB / 21.17 MB, free: 0.6172 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.001435/0.001435, allocations: 206.8 kB / 24.47 MB, free: 4.023 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.487/1.487, allocations: 230.2 MB / 257.8 MB, free: 8.508 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.2578/0.2578, allocations: 46.9 MB / 361.1 MB, free: 4.66 MB / 286.1 MB " [Timeout remaining time 179] 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.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions") [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.002362/0.002362, allocations: 71.88 kB / 0.4968 GB, free: 8.406 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3878/0.3902, allocations: 65.98 MB / 0.5612 GB, free: 34.49 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001535/0.3917, allocations: 0.4987 MB / 0.5617 GB, free: 34.2 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002504/0.3942, allocations: 2.125 MB / 0.5637 GB, free: 32.73 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.385e-05/0.3943, allocations: 1.062 kB / 0.5637 GB, free: 32.73 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.225e-05/0.3943, allocations: 6.875 kB / 0.5638 GB, free: 32.73 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 5.51e-06/0.3943, allocations: 0 / 0.5638 GB, free: 32.73 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Math.mo:1013:5-1096:22:writable] Warning: Pure function 'ModelicaTest.Math.Random.distributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001237/0.3955, allocations: 0.504 MB / 0.5642 GB, free: 32.54 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.554e-05/0.3956, allocations: 6.953 kB / 0.5643 GB, free: 32.53 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.478e-05/0.3956, allocations: 0 / 0.5643 GB, free: 32.53 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.395e-05/0.3956, allocations: 0 / 0.5643 GB, free: 32.53 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.933e-05/0.3956, allocations: 10.55 kB / 0.5643 GB, free: 32.53 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.394e-06/0.3956, allocations: 0 / 0.5643 GB, free: 32.53 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008606/0.3965, allocations: 0.6638 MB / 0.5649 GB, free: 32.32 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.717e-06/0.3965, allocations: 0.5938 kB / 0.5649 GB, free: 32.32 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.859e-05/0.3965, allocations: 4.312 kB / 0.5649 GB, free: 32.32 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004703/0.397, allocations: 398.6 kB / 0.5653 GB, free: 32.2 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.397, allocations: 0 / 0.5653 GB, free: 32.2 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.397, allocations: 3.938 kB / 0.5653 GB, free: 32.2 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.397, allocations: 3.312 kB / 0.5653 GB, free: 32.2 MB / 446.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.0003811/0.3974, allocations: 418 kB / 0.5657 GB, free: 31.77 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.3974, allocations: 15.97 kB / 0.5657 GB, free: 31.76 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.864e-05/0.3975, allocations: 4.891 kB / 0.5657 GB, free: 31.76 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.555e-05/0.3975, allocations: 160.4 kB / 0.5659 GB, free: 31.56 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.755e-06/0.3975, allocations: 384 / 0.5659 GB, free: 31.56 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.171e-05/0.3975, allocations: 384 / 0.5659 GB, free: 31.56 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.456e-05/0.3976, allocations: 40.02 kB / 0.5659 GB, free: 31.53 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.3976, allocations: 0 / 0.5659 GB, free: 31.53 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.955e-06/0.3976, allocations: 3.938 kB / 0.5659 GB, free: 31.52 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.98e-06/0.3976, allocations: 3.062 kB / 0.5659 GB, free: 31.52 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.947e-05/0.3977, allocations: 0 / 0.5659 GB, free: 31.52 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.457e-05/0.3978, allocations: 141.7 kB / 0.5661 GB, free: 31.34 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.05e-05/0.3978, allocations: 25.64 kB / 0.5661 GB, free: 31.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.454e-05/0.3978, allocations: 9.734 kB / 0.5661 GB, free: 31.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.767e-06/0.3978, allocations: 0 / 0.5661 GB, free: 31.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.096e-05/0.3979, allocations: 67.27 kB / 0.5662 GB, free: 31.22 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 8.01e-07/0.3979, allocations: 0 / 0.5662 GB, free: 31.22 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.000179/0.398, allocations: 65.66 kB / 0.5662 GB, free: 31.16 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.312e-05/0.3981, allocations: 85.05 kB / 0.5663 GB, free: 31.05 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.675e-05/0.3981, allocations: 89.86 kB / 0.5664 GB, free: 30.96 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.474e-06/0.3981, allocations: 25.7 kB / 0.5664 GB, free: 30.93 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.19e-05/0.3981, allocations: 80.14 kB / 0.5665 GB, free: 30.84 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.289e-05/0.3981, allocations: 6.312 kB / 0.5665 GB, free: 30.84 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.309e-05/0.3982, allocations: 9.719 kB / 0.5665 GB, free: 30.83 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.404e-05/0.3982, allocations: 313.7 kB / 0.5668 GB, free: 30.52 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.191e-05/0.3982, allocations: 7.141 kB / 0.5668 GB, free: 30.51 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.21e-06/0.3982, allocations: 0 / 0.5668 GB, free: 30.51 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.878e-05/0.3983, allocations: 66.27 kB / 0.5669 GB, free: 30.44 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3983, allocations: 0 / 0.5669 GB, free: 30.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.225e-05/0.3983, allocations: 60.11 kB / 0.5669 GB, free: 30.38 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.695e-05/0.3984, allocations: 35.58 kB / 0.567 GB, free: 30.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.3984, allocations: 6.594 kB / 0.567 GB, free: 30.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.3984, allocations: 4.219 kB / 0.567 GB, free: 30.33 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.71e-07/0.3984, allocations: 0 / 0.567 GB, free: 30.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.3984, allocations: 0 / 0.567 GB, free: 30.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.385e-05/0.3984, allocations: 0 / 0.567 GB, free: 30.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.805e-06/0.3984, allocations: 2.781 kB / 0.567 GB, free: 30.33 MB / 446.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 5.604e-05/0.3985, allocations: 138.6 kB / 0.5671 GB, free: 30.18 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.925e-06/0.3985, allocations: 6.375 kB / 0.5671 GB, free: 30.18 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.035e-05/0.3985, allocations: 3.125 kB / 0.5671 GB, free: 30.18 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.51e-07/0.3985, allocations: 0 / 0.5671 GB, free: 30.18 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.3985, allocations: 4 kB / 0.5671 GB, free: 30.17 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.3985, allocations: 2.469 kB / 0.5671 GB, free: 30.17 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.97e-05/0.3986, allocations: 145.1 kB / 0.5673 GB, free: 29.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.3986, allocations: 0 / 0.5673 GB, free: 29.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.71e-07/0.3986, allocations: 0 / 0.5673 GB, free: 29.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.3986, allocations: 6.688 kB / 0.5673 GB, free: 29.98 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.3986, allocations: 0 / 0.5673 GB, free: 29.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.3986, allocations: 0 / 0.5673 GB, free: 29.98 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3986, allocations: 0 / 0.5673 GB, free: 29.98 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.788e-05/0.3987, allocations: 102.8 kB / 0.5674 GB, free: 29.87 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.46e-05/0.3987, allocations: 85.03 kB / 0.5674 GB, free: 29.77 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.226e-05/0.3987, allocations: 3.938 kB / 0.5674 GB, free: 29.77 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.007e-06/0.3987, allocations: 0 / 0.5674 GB, free: 29.77 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.863e-05/0.3987, allocations: 2.594 kB / 0.5674 GB, free: 29.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-06/0.3987, allocations: 3.422 kB / 0.5675 GB, free: 29.77 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.654e-05/0.3987, allocations: 75.28 kB / 0.5675 GB, free: 29.69 MB / 446.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3987, allocations: 0 / 0.5675 GB, free: 29.69 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003874/0.3991, allocations: 136.8 kB / 0.5677 GB, free: 29.66 MB / 446.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.0006362/0.3998, allocations: 307.6 kB / 0.5679 GB, free: 29.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 8.606e-05/0.3998, allocations: 62.66 kB / 0.568 GB, free: 29.43 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3998, allocations: 0 / 0.568 GB, free: 29.43 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.146e-05/0.3999, allocations: 59.61 kB / 0.5681 GB, free: 29.37 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001225/0.4, allocations: 3.641 kB / 0.5681 GB, free: 29.37 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000173/0.4002, allocations: 101.3 kB / 0.5682 GB, free: 29.26 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001185/0.4003, allocations: 0.6698 MB / 0.5688 GB, free: 28.56 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.754e-06/0.4003, allocations: 0.5625 kB / 0.5688 GB, free: 28.56 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.749e-06/0.4003, allocations: 10.34 kB / 0.5688 GB, free: 28.55 MB / 446.1 MB Notification: Performance of SimCode: time 2.8e-07/0.4003, allocations: 3.938 kB / 0.5688 GB, free: 28.55 MB / 446.1 MB Notification: Performance of Templates: time 0.007765/0.4081, allocations: 3.51 MB / 0.5723 GB, free: 28.27 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.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.376142108812928]