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.001563/0.001563, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.002223/0.002223, allocations: 213.3 kB / 24.54 MB, free: 4.016 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.558/1.558, allocations: 230.3 MB / 258 MB, free: 8.23 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.2453/0.2453, allocations: 46.95 MB / 361.4 MB, free: 4.457 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.002335/0.002335, allocations: 83.86 kB / 0.4972 GB, free: 7.504 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4165/0.4188, allocations: 66.04 MB / 0.5616 GB, free: 4.496 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.002417/0.4213, allocations: 0.497 MB / 0.5621 GB, free: 4 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004858/0.4261, allocations: 2.132 MB / 0.5642 GB, free: 1.848 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.258e-05/0.4261, allocations: 0 / 0.5642 GB, free: 1.848 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.184e-05/0.4262, allocations: 3.938 kB / 0.5642 GB, free: 1.844 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.067e-06/0.4262, allocations: 4 kB / 0.5642 GB, free: 1.84 MB / 398.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.002405/0.4286, allocations: 0.5258 MB / 0.5647 GB, free: 1.312 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.822e-05/0.4286, allocations: 0 / 0.5647 GB, free: 1.312 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.476e-05/0.4287, allocations: 4 kB / 0.5647 GB, free: 1.309 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.118e-05/0.4287, allocations: 0 / 0.5647 GB, free: 1.309 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.249e-05/0.4287, allocations: 0 / 0.5647 GB, free: 1.309 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.664e-06/0.4287, allocations: 3.938 kB / 0.5647 GB, free: 1.305 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001826/0.4306, allocations: 0.7681 MB / 0.5655 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.032e-05/0.4306, allocations: 0 / 0.5655 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.196e-05/0.4306, allocations: 0 / 0.5655 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008741/0.4315, allocations: 397.6 kB / 0.5659 GB, free: 156 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.4315, allocations: 0 / 0.5659 GB, free: 156 kB / 398.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4315, allocations: 4 kB / 0.5659 GB, free: 152 kB / 398.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.4315, allocations: 0 / 0.5659 GB, free: 152 kB / 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.0006399/0.4321, allocations: 345.5 kB / 0.5662 GB, free: 15.78 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.4322, allocations: 16.02 kB / 0.5662 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.704e-05/0.4322, allocations: 0.9375 kB / 0.5662 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001199/0.4323, allocations: 106.5 kB / 0.5663 GB, free: 15.63 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.879e-06/0.4323, allocations: 384 / 0.5663 GB, free: 15.63 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.401e-05/0.4324, allocations: 8.312 kB / 0.5663 GB, free: 15.62 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001201/0.4325, allocations: 30.02 kB / 0.5664 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.4325, allocations: 4 kB / 0.5664 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.333e-05/0.4325, allocations: 0 / 0.5664 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.199e-06/0.4325, allocations: 0 / 0.5664 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.208e-05/0.4325, allocations: 4 kB / 0.5664 GB, free: 15.58 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001995/0.4327, allocations: 116.8 kB / 0.5665 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.621e-05/0.4328, allocations: 22.61 kB / 0.5665 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.751e-05/0.4328, allocations: 8.797 kB / 0.5665 GB, free: 15.38 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.06e-05/0.4328, allocations: 0 / 0.5665 GB, free: 15.38 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.634e-05/0.4329, allocations: 64.2 kB / 0.5666 GB, free: 15.3 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.4329, allocations: 0 / 0.5666 GB, free: 15.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002886/0.4332, allocations: 71.34 kB / 0.5666 GB, free: 15.22 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.701e-05/0.4333, allocations: 85.11 kB / 0.5667 GB, free: 15.12 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.785e-05/0.4334, allocations: 89.86 kB / 0.5668 GB, free: 15.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.645e-05/0.4334, allocations: 25.7 kB / 0.5668 GB, free: 14.99 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.489e-05/0.4334, allocations: 80.14 kB / 0.5669 GB, free: 14.91 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.772e-05/0.4335, allocations: 4.125 kB / 0.5669 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.916e-05/0.4335, allocations: 13.72 kB / 0.5669 GB, free: 14.89 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002017/0.4337, allocations: 310.8 kB / 0.5672 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.014e-05/0.4337, allocations: 7.875 kB / 0.5672 GB, free: 14.57 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.005e-06/0.4337, allocations: 0 / 0.5672 GB, free: 14.57 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001068/0.4338, allocations: 68.25 kB / 0.5673 GB, free: 14.48 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.4338, allocations: 0 / 0.5673 GB, free: 14.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001246/0.434, allocations: 59.5 kB / 0.5674 GB, free: 14.41 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.893e-05/0.434, allocations: 37.64 kB / 0.5674 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.434, allocations: 0 / 0.5674 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.434, allocations: 0 / 0.5674 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.358e-06/0.434, allocations: 7.984 kB / 0.5674 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.4341, allocations: 0 / 0.5674 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.394e-05/0.4341, allocations: 0 / 0.5674 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.4341, allocations: 0 / 0.5674 GB, free: 14.36 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.0001464/0.4342, allocations: 139.5 kB / 0.5675 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.072e-05/0.4342, allocations: 11.94 kB / 0.5675 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.613e-05/0.4343, allocations: 7 kB / 0.5675 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.4343, allocations: 0 / 0.5675 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.4343, allocations: 0 / 0.5675 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.4343, allocations: 0 / 0.5675 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001523/0.4344, allocations: 120.8 kB / 0.5677 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.4344, allocations: 0 / 0.5677 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.42e-07/0.4344, allocations: 0 / 0.5677 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.4344, allocations: 3.938 kB / 0.5677 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.4344, allocations: 0 / 0.5677 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.4344, allocations: 0 / 0.5677 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4344, allocations: 4 kB / 0.5677 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001401/0.4346, allocations: 90.83 kB / 0.5678 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.606e-06/0.4346, allocations: 4 kB / 0.5678 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.861e-05/0.4346, allocations: 3.938 kB / 0.5678 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.244e-05/0.4346, allocations: 3.938 kB / 0.5678 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.968e-05/0.4346, allocations: 0 / 0.5678 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-06/0.4346, allocations: 0 / 0.5678 GB, free: 13.9 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.951e-05/0.4347, allocations: 79.22 kB / 0.5678 GB, free: 13.82 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4347, allocations: 8.031 kB / 0.5679 GB, free: 13.81 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006659/0.4354, allocations: 135.5 kB / 0.568 GB, free: 13.68 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.001152/0.4365, allocations: 309.2 kB / 0.5683 GB, free: 13.37 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001805/0.4367, allocations: 67.41 kB / 0.5683 GB, free: 13.29 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.4367, allocations: 0 / 0.5683 GB, free: 13.29 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.571e-05/0.4368, allocations: 51.41 kB / 0.5684 GB, free: 13.23 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000208/0.437, allocations: 6.344 kB / 0.5684 GB, free: 13.23 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003097/0.4373, allocations: 92.98 kB / 0.5685 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004833/0.4378, allocations: 0.669 MB / 0.5691 GB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.628e-06/0.4378, allocations: 0 / 0.5691 GB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.224e-05/0.4378, allocations: 7.438 kB / 0.5691 GB, free: 12.41 MB / 414.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4378, allocations: 4 kB / 0.5691 GB, free: 12.4 MB / 414.1 MB Notification: Performance of Templates: time 0.01141/0.4492, allocations: 3.514 MB / 0.5726 GB, free: 8.891 MB / 414.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.603813004679978]