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.001294/0.001294, allocations: 107.6 kB / 21.18 MB, free: 0.5273 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.001417/0.001417, allocations: 207.5 kB / 24.48 MB, free: 3.695 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.454/1.454, allocations: 230.6 MB / 258.3 MB, free: 7.785 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.2431/0.2431, allocations: 46.96 MB / 361.6 MB, free: 4.02 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.002214/0.002214, allocations: 67.89 kB / 0.4973 GB, free: 7.207 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3473/0.3495, allocations: 66.03 MB / 0.5618 GB, free: 4.18 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001785/0.3513, allocations: 0.5087 MB / 0.5623 GB, free: 3.668 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003249/0.3546, allocations: 2.008 MB / 0.5643 GB, free: 1.641 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.615e-05/0.3546, allocations: 0 / 0.5643 GB, free: 1.641 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.777e-05/0.3546, allocations: 0 / 0.5643 GB, free: 1.641 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.011e-06/0.3546, allocations: 0 / 0.5643 GB, free: 1.641 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.001564/0.3562, allocations: 0.522 MB / 0.5648 GB, free: 1.117 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.559e-05/0.3562, allocations: 0 / 0.5648 GB, free: 1.117 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.771e-05/0.3562, allocations: 0 / 0.5648 GB, free: 1.117 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.761e-05/0.3563, allocations: 7.984 kB / 0.5648 GB, free: 1.109 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.762e-05/0.3563, allocations: 0 / 0.5648 GB, free: 1.109 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.084e-06/0.3563, allocations: 0 / 0.5648 GB, free: 1.109 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001155/0.3575, allocations: 0.6863 MB / 0.5654 GB, free: 432 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.497e-06/0.3575, allocations: 0 / 0.5654 GB, free: 432 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.573e-05/0.3575, allocations: 11.98 kB / 0.5655 GB, free: 420 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005854/0.3581, allocations: 385.4 kB / 0.5658 GB, free: 40 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3581, allocations: 4 kB / 0.5658 GB, free: 36 kB / 398.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3581, allocations: 0 / 0.5658 GB, free: 36 kB / 398.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.3581, allocations: 0 / 0.5658 GB, free: 36 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.0005585/0.3586, allocations: 347.4 kB / 0.5662 GB, free: 15.66 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.3587, allocations: 12.03 kB / 0.5662 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.345e-05/0.3587, allocations: 0.9375 kB / 0.5662 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001118/0.3588, allocations: 106.5 kB / 0.5663 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.3589, allocations: 384 / 0.5663 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.116e-05/0.3589, allocations: 4.375 kB / 0.5663 GB, free: 15.51 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001362/0.359, allocations: 55.72 kB / 0.5663 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.359, allocations: 0 / 0.5663 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.359, allocations: 3.984 kB / 0.5663 GB, free: 15.44 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.359, allocations: 4 kB / 0.5663 GB, free: 15.44 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.197e-05/0.3591, allocations: 29.64 kB / 0.5664 GB, free: 15.4 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001345/0.3592, allocations: 101.3 kB / 0.5665 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.107e-05/0.3593, allocations: 48.3 kB / 0.5665 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.151e-05/0.3593, allocations: 30.56 kB / 0.5665 GB, free: 15.17 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.965e-06/0.3593, allocations: 8 kB / 0.5665 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.713e-05/0.3594, allocations: 56.27 kB / 0.5666 GB, free: 15.09 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.3594, allocations: 0 / 0.5666 GB, free: 15.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002499/0.3596, allocations: 130.6 kB / 0.5667 GB, free: 14.94 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.695e-05/0.3597, allocations: 77.11 kB / 0.5668 GB, free: 14.85 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.413e-05/0.3598, allocations: 89.86 kB / 0.5669 GB, free: 14.75 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/0.3598, allocations: 29.83 kB / 0.5669 GB, free: 14.71 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.711e-05/0.3598, allocations: 84.14 kB / 0.567 GB, free: 14.63 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.348e-05/0.3599, allocations: 0 / 0.567 GB, free: 14.63 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.337e-05/0.3599, allocations: 17.72 kB / 0.567 GB, free: 14.61 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.36, allocations: 310.8 kB / 0.5673 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.816e-05/0.3601, allocations: 29.69 kB / 0.5673 GB, free: 14.26 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.086e-05/0.3601, allocations: 25.7 kB / 0.5674 GB, free: 14.23 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.529e-05/0.3602, allocations: 64.27 kB / 0.5674 GB, free: 14.15 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3602, allocations: 0 / 0.5674 GB, free: 14.15 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001036/0.3603, allocations: 92.98 kB / 0.5675 GB, free: 14.04 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.499e-05/0.3603, allocations: 43.97 kB / 0.5676 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.3603, allocations: 0 / 0.5676 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/0.3603, allocations: 7.938 kB / 0.5676 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.092e-06/0.3603, allocations: 0 / 0.5676 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.3603, allocations: 0 / 0.5676 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.695e-05/0.3604, allocations: 0 / 0.5676 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.136e-06/0.3604, allocations: 0 / 0.5676 GB, free: 13.98 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.0001185/0.3605, allocations: 135.5 kB / 0.5677 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.264e-06/0.3605, allocations: 0 / 0.5677 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.178e-05/0.3605, allocations: 14.92 kB / 0.5677 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.3605, allocations: 8 kB / 0.5677 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.3605, allocations: 0 / 0.5677 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.3605, allocations: 0 / 0.5677 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.903e-05/0.3606, allocations: 93.33 kB / 0.5678 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.62e-07/0.3606, allocations: 0 / 0.5678 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.02e-07/0.3606, allocations: 0 / 0.5678 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.62e-07/0.3606, allocations: 4 kB / 0.5678 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-06/0.3606, allocations: 0 / 0.5678 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.3606, allocations: 3.938 kB / 0.5678 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3606, allocations: 0 / 0.5678 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001544/0.3608, allocations: 124.5 kB / 0.5679 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.987e-06/0.3608, allocations: 4.031 kB / 0.5679 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.631e-05/0.3608, allocations: 4 kB / 0.5679 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.136e-05/0.3608, allocations: 3.938 kB / 0.5679 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.655e-05/0.3608, allocations: 3.984 kB / 0.5679 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-06/0.3608, allocations: 0 / 0.5679 GB, free: 13.52 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.343e-05/0.3609, allocations: 79.25 kB / 0.568 GB, free: 13.44 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3609, allocations: 0 / 0.568 GB, free: 13.44 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004511/0.3613, allocations: 131.5 kB / 0.5681 GB, free: 13.31 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.0007564/0.3621, allocations: 319.7 kB / 0.5684 GB, free: 13 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001413/0.3622, allocations: 118.8 kB / 0.5686 GB, free: 12.86 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3622, allocations: 0 / 0.5686 GB, free: 12.86 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.358e-05/0.3623, allocations: 85.05 kB / 0.5686 GB, free: 12.75 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000117/0.3624, allocations: 0 / 0.5686 GB, free: 12.75 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002547/0.3627, allocations: 140.4 kB / 0.5688 GB, free: 12.58 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.103e-05/0.3627, allocations: 63.47 kB / 0.5688 GB, free: 12.5 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.286e-05/0.3627, allocations: 7.438 kB / 0.5688 GB, free: 12.49 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3627, allocations: 0 / 0.5688 GB, free: 12.49 MB / 414.1 MB Notification: Performance of Templates: time 0.006547/0.3693, allocations: 3.323 MB / 0.5721 GB, free: 9.16 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/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: 9.128554596973117]