Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.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.001428/0.001428, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.00171/0.00171, allocations: 207.5 kB / 23.73 MB, free: 4.379 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.538/1.538, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.239/0.239, allocations: 46.95 MB / 360.9 MB, free: 4.117 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.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00211/0.00211, allocations: 67.89 kB / 0.4966 GB, free: 7.207 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3906/0.3927, allocations: 66.03 MB / 0.5611 GB, free: 4.156 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.00201/0.3947, allocations: 0.501 MB / 0.5616 GB, free: 3.652 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003604/0.3983, allocations: 2.004 MB / 0.5635 GB, free: 1.629 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.896e-05/0.3984, allocations: 4 kB / 0.5635 GB, free: 1.625 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.426e-05/0.3984, allocations: 4 kB / 0.5635 GB, free: 1.621 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.753e-06/0.3984, allocations: 0 / 0.5635 GB, free: 1.621 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.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.001567/0.4, allocations: 0.5177 MB / 0.564 GB, free: 1.105 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.872e-05/0.4, allocations: 0 / 0.564 GB, free: 1.105 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.353e-05/0.4, allocations: 0 / 0.564 GB, free: 1.105 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.991e-05/0.4001, allocations: 4 kB / 0.564 GB, free: 1.102 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.838e-05/0.4001, allocations: 0 / 0.564 GB, free: 1.102 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.141e-06/0.4001, allocations: 0 / 0.564 GB, free: 1.102 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001133/0.4012, allocations: 0.7018 MB / 0.5647 GB, free: 408 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.511e-05/0.4012, allocations: 3.984 kB / 0.5647 GB, free: 404 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.734e-05/0.4013, allocations: 7.938 kB / 0.5647 GB, free: 396 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005682/0.4018, allocations: 373.5 kB / 0.5651 GB, free: 28 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.4018, allocations: 4 kB / 0.5651 GB, free: 24 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4018, allocations: 0 / 0.5651 GB, free: 24 kB / 398.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.4018, allocations: 0 / 0.5651 GB, free: 24 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.0005386/0.4024, allocations: 343.3 kB / 0.5654 GB, free: 15.65 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.4024, allocations: 12.03 kB / 0.5654 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.823e-05/0.4025, allocations: 4.922 kB / 0.5654 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.846e-05/0.4026, allocations: 106.5 kB / 0.5655 GB, free: 15.51 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.499e-05/0.4026, allocations: 4.375 kB / 0.5655 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.536e-06/0.4026, allocations: 384 / 0.5655 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001068/0.4027, allocations: 63.72 kB / 0.5656 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.4027, allocations: 0 / 0.5656 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.165e-06/0.4027, allocations: 0 / 0.5656 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.4027, allocations: 0 / 0.5656 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.186e-05/0.4027, allocations: 29.7 kB / 0.5656 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001193/0.4029, allocations: 97.31 kB / 0.5657 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.692e-05/0.4029, allocations: 56.19 kB / 0.5658 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.997e-05/0.403, allocations: 30.56 kB / 0.5658 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.979e-06/0.403, allocations: 4.062 kB / 0.5658 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.049e-05/0.403, allocations: 56.27 kB / 0.5659 GB, free: 15.09 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.403, allocations: 4 kB / 0.5659 GB, free: 15.08 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002165/0.4032, allocations: 126.7 kB / 0.566 GB, free: 14.93 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.77e-05/0.4033, allocations: 77.11 kB / 0.5661 GB, free: 14.84 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.301e-05/0.4034, allocations: 89.86 kB / 0.5661 GB, free: 14.74 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.891e-05/0.4034, allocations: 29.7 kB / 0.5662 GB, free: 14.71 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.694e-05/0.4034, allocations: 84.12 kB / 0.5663 GB, free: 14.62 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.59e-05/0.4034, allocations: 3.938 kB / 0.5663 GB, free: 14.62 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.972e-05/0.4035, allocations: 9.719 kB / 0.5663 GB, free: 14.6 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.4036, allocations: 318.8 kB / 0.5666 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.434e-05/0.4036, allocations: 29.64 kB / 0.5666 GB, free: 14.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.984e-05/0.4036, allocations: 33.83 kB / 0.5666 GB, free: 14.21 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.577e-05/0.4037, allocations: 60.27 kB / 0.5667 GB, free: 14.13 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.4037, allocations: 0 / 0.5667 GB, free: 14.13 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.091e-05/0.4038, allocations: 89.09 kB / 0.5668 GB, free: 14.03 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.301e-05/0.4038, allocations: 33.7 kB / 0.5668 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.4038, allocations: 0 / 0.5668 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.4039, allocations: 7.938 kB / 0.5668 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.81e-07/0.4039, allocations: 0 / 0.5668 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.692e-06/0.4039, allocations: 3.938 kB / 0.5668 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.875e-05/0.4039, allocations: 4.094 kB / 0.5668 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.101e-06/0.4039, allocations: 4 kB / 0.5668 GB, free: 13.97 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.513e-05/0.404, allocations: 135.5 kB / 0.567 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.738e-06/0.404, allocations: 3.984 kB / 0.567 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.158e-05/0.404, allocations: 6.938 kB / 0.567 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.404, allocations: 4 kB / 0.567 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.404, allocations: 0 / 0.567 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.404, allocations: 0 / 0.567 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.69e-05/0.4041, allocations: 93.33 kB / 0.5671 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.4041, allocations: 0 / 0.5671 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.1e-07/0.4041, allocations: 0 / 0.5671 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.4041, allocations: 8 kB / 0.5671 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.042e-06/0.4041, allocations: 0 / 0.5671 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.4041, allocations: 3.938 kB / 0.5671 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.4041, allocations: 0 / 0.5671 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001365/0.4042, allocations: 120.5 kB / 0.5672 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.717e-06/0.4042, allocations: 0 / 0.5672 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.624e-05/0.4043, allocations: 7.984 kB / 0.5672 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.123e-05/0.4043, allocations: 3.938 kB / 0.5672 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.265e-05/0.4043, allocations: 11.88 kB / 0.5672 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-06/0.4043, allocations: 0 / 0.5672 GB, free: 13.5 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.451e-05/0.4043, allocations: 79.34 kB / 0.5673 GB, free: 13.42 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4043, allocations: 0 / 0.5673 GB, free: 13.42 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004136/0.4047, allocations: 131.5 kB / 0.5674 GB, free: 13.29 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.0007076/0.4054, allocations: 314.8 kB / 0.5677 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001501/0.4056, allocations: 118.8 kB / 0.5678 GB, free: 12.84 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.4056, allocations: 0 / 0.5678 GB, free: 12.84 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.609e-05/0.4057, allocations: 85.11 kB / 0.5679 GB, free: 12.74 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001253/0.4058, allocations: 0 / 0.5679 GB, free: 12.74 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002095/0.406, allocations: 114.7 kB / 0.568 GB, free: 12.6 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.409e-05/0.406, allocations: 55.36 kB / 0.5681 GB, free: 12.52 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5e-06/0.406, allocations: 3.938 kB / 0.5681 GB, free: 12.52 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.274e-05/0.4061, allocations: 7.438 kB / 0.5681 GB, free: 12.51 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4061, allocations: 0 / 0.5681 GB, free: 12.51 MB / 414.1 MB Notification: Performance of Templates: time 0.00774/0.4138, allocations: 3.516 MB / 0.5715 GB, free: 9 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_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.396061094943434]