Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001254/0.001254, allocations: 106.9 kB / 19.8 MB, free: 2.5 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.001628/0.001628, allocations: 222 kB / 23 MB, free: 5.574 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.479/1.479, allocations: 230.2 MB / 256.2 MB, free: 8.539 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2617/0.2617, allocations: 46.9 MB / 359.4 MB, free: 4.844 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002179/0.002179, allocations: 83.84 kB / 0.4946 GB, free: 8.438 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4036/0.4058, allocations: 65.97 MB / 0.5591 GB, free: 5.191 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001723/0.4075, allocations: 0.515 MB / 0.5596 GB, free: 4.676 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003483/0.411, allocations: 2.128 MB / 0.5616 GB, free: 2.527 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.626e-05/0.411, allocations: 0 / 0.5616 GB, free: 2.527 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.529e-05/0.411, allocations: 0 / 0.5616 GB, free: 2.527 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.234e-06/0.411, allocations: 0 / 0.5616 GB, free: 2.527 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001632/0.4127, allocations: 0.5018 MB / 0.5621 GB, free: 2.027 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.395e-05/0.4127, allocations: 4 kB / 0.5621 GB, free: 2.023 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.68e-05/0.4128, allocations: 4 kB / 0.5621 GB, free: 2.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.006e-05/0.4128, allocations: 3.984 kB / 0.5621 GB, free: 2.016 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.575e-05/0.4128, allocations: 0 / 0.5621 GB, free: 2.016 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.773e-06/0.4128, allocations: 0 / 0.5621 GB, free: 2.016 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001145/0.414, allocations: 0.6706 MB / 0.5628 GB, free: 1.344 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.014e-05/0.414, allocations: 7.938 kB / 0.5628 GB, free: 1.336 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.277e-05/0.414, allocations: 0 / 0.5628 GB, free: 1.336 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000615/0.4146, allocations: 393.8 kB / 0.5632 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.4146, allocations: 4 kB / 0.5632 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4146, allocations: 0 / 0.5632 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.4146, allocations: 0 / 0.5632 GB, free: 0.9492 MB / 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.0005338/0.4151, allocations: 427.1 kB / 0.5636 GB, free: 492 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.4152, allocations: 8.031 kB / 0.5636 GB, free: 484 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.659e-05/0.4152, allocations: 4.938 kB / 0.5636 GB, free: 480 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001226/0.4154, allocations: 164.4 kB / 0.5638 GB, free: 276 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.4154, allocations: 4.312 kB / 0.5638 GB, free: 272 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.426e-06/0.4154, allocations: 384 / 0.5638 GB, free: 272 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001079/0.4155, allocations: 34.02 kB / 0.5638 GB, free: 232 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.4155, allocations: 0 / 0.5638 GB, free: 232 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.4155, allocations: 0 / 0.5638 GB, free: 232 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.4155, allocations: 4 kB / 0.5638 GB, free: 228 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.917e-05/0.4155, allocations: 0 / 0.5638 GB, free: 228 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001706/0.4157, allocations: 149.7 kB / 0.5639 GB, free: 28 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.883e-05/0.4158, allocations: 22.62 kB / 0.564 GB, free: 15.99 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.939e-05/0.4158, allocations: 4.859 kB / 0.564 GB, free: 15.98 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.079e-05/0.4158, allocations: 3.984 kB / 0.564 GB, free: 15.98 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.765e-05/0.4159, allocations: 68.3 kB / 0.564 GB, free: 15.9 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.4159, allocations: 0 / 0.564 GB, free: 15.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002219/0.4161, allocations: 67.34 kB / 0.5641 GB, free: 15.82 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.549e-05/0.4162, allocations: 84.94 kB / 0.5642 GB, free: 15.72 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.762e-05/0.4162, allocations: 89.86 kB / 0.5643 GB, free: 15.62 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.783e-05/0.4162, allocations: 25.7 kB / 0.5643 GB, free: 15.59 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.75e-05/0.4163, allocations: 80.14 kB / 0.5644 GB, free: 15.51 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.501e-05/0.4163, allocations: 0 / 0.5644 GB, free: 15.51 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.901e-05/0.4163, allocations: 13.72 kB / 0.5644 GB, free: 15.49 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.4165, allocations: 315 kB / 0.5647 GB, free: 15.18 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.222e-05/0.4165, allocations: 3.938 kB / 0.5647 GB, free: 15.17 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.508e-05/0.4165, allocations: 8 kB / 0.5647 GB, free: 15.16 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.736e-05/0.4166, allocations: 64.25 kB / 0.5648 GB, free: 15.09 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.4166, allocations: 4 kB / 0.5648 GB, free: 15.08 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.99e-05/0.4166, allocations: 55.41 kB / 0.5648 GB, free: 15.02 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.232e-05/0.4167, allocations: 37.64 kB / 0.5649 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.4167, allocations: 96 / 0.5649 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.4167, allocations: 4 kB / 0.5649 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-07/0.4167, allocations: 0 / 0.5649 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.4167, allocations: 3.984 kB / 0.5649 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.482e-05/0.4167, allocations: 0 / 0.5649 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.844e-06/0.4167, allocations: 3.938 kB / 0.5649 GB, free: 14.96 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.000106/0.4168, allocations: 139.5 kB / 0.565 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.25e-05/0.4169, allocations: 7.938 kB / 0.565 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.876e-06/0.4169, allocations: 3.125 kB / 0.565 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.4169, allocations: 4 kB / 0.565 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.4169, allocations: 4 kB / 0.565 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-06/0.4169, allocations: 0 / 0.565 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001316/0.417, allocations: 145.7 kB / 0.5652 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.417, allocations: 0 / 0.5652 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.82e-07/0.417, allocations: 0 / 0.5652 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.417, allocations: 3.938 kB / 0.5652 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.417, allocations: 4 kB / 0.5652 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.417, allocations: 0 / 0.5652 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.417, allocations: 0 / 0.5652 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001266/0.4171, allocations: 94.83 kB / 0.5653 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.249e-05/0.4172, allocations: 77.11 kB / 0.5653 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.685e-05/0.4172, allocations: 3.938 kB / 0.5653 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.106e-06/0.4172, allocations: 3.938 kB / 0.5653 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.723e-05/0.4173, allocations: 0 / 0.5653 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.279e-05/0.4173, allocations: 7.938 kB / 0.5653 GB, free: 14.37 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.789e-05/0.4173, allocations: 75.28 kB / 0.5654 GB, free: 14.29 MB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.4173, allocations: 0 / 0.5654 GB, free: 14.29 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005047/0.4178, allocations: 139.6 kB / 0.5655 GB, free: 14.16 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.0008874/0.4187, allocations: 312.8 kB / 0.5658 GB, free: 13.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001506/0.4189, allocations: 59.41 kB / 0.5659 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.4189, allocations: 64 / 0.5659 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.563e-05/0.4189, allocations: 63.34 kB / 0.566 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001451/0.4191, allocations: 2.188 kB / 0.566 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003101/0.4194, allocations: 101 kB / 0.5661 GB, free: 13.57 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004375/0.4198, allocations: 0.6729 MB / 0.5667 GB, free: 12.88 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.993e-06/0.4198, allocations: 0 / 0.5667 GB, free: 12.88 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.873e-05/0.4198, allocations: 7.438 kB / 0.5667 GB, free: 12.87 MB / 414.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4198, allocations: 0 / 0.5667 GB, free: 12.87 MB / 414.1 MB Notification: Performance of Templates: time 0.008199/0.428, allocations: 3.511 MB / 0.5702 GB, free: 9.359 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.474473915062845]