Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001757/0.001757, allocations: 99.66 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.002122/0.002122, allocations: 214.2 kB / 24.48 MB, free: 3.84 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.504/1.504, allocations: 230.6 MB / 258.2 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2216/0.2216, allocations: 44.94 MB / 359.6 MB, free: 6.074 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002184/0.002184, allocations: 70.41 kB / 0.4943 GB, free: 10.05 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3699/0.3721, allocations: 65.47 MB / 0.5582 GB, free: 7.508 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001804/0.3739, allocations: 0.5009 MB / 0.5587 GB, free: 7.004 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003199/0.3771, allocations: 1.996 MB / 0.5606 GB, free: 4.988 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.633e-05/0.3772, allocations: 0 / 0.5606 GB, free: 4.988 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.854e-05/0.3772, allocations: 4 kB / 0.5606 GB, free: 4.984 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.232e-06/0.3772, allocations: 0 / 0.5606 GB, free: 4.984 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.001507/0.3787, allocations: 0.5177 MB / 0.5611 GB, free: 4.469 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.207e-05/0.3787, allocations: 3.984 kB / 0.5611 GB, free: 4.465 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.573e-05/0.3788, allocations: 7.922 kB / 0.5611 GB, free: 4.457 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.57e-05/0.3788, allocations: 0 / 0.5611 GB, free: 4.457 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.75e-05/0.3788, allocations: 4 kB / 0.5612 GB, free: 4.453 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.512e-06/0.3788, allocations: 0 / 0.5612 GB, free: 4.453 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001079/0.3799, allocations: 0.6394 MB / 0.5618 GB, free: 3.812 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.726e-06/0.3799, allocations: 0 / 0.5618 GB, free: 3.812 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.155e-05/0.3799, allocations: 7.984 kB / 0.5618 GB, free: 3.805 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005505/0.3805, allocations: 381.5 kB / 0.5621 GB, free: 3.438 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.3805, allocations: 4 kB / 0.5622 GB, free: 3.434 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3805, allocations: 4 kB / 0.5622 GB, free: 3.43 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.67e-06/0.3805, allocations: 0 / 0.5622 GB, free: 3.43 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.0004569/0.381, allocations: 335.3 kB / 0.5625 GB, free: 3.066 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.381, allocations: 16.03 kB / 0.5625 GB, free: 3.051 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.858e-05/0.381, allocations: 4.875 kB / 0.5625 GB, free: 3.047 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.788e-05/0.3811, allocations: 106.5 kB / 0.5626 GB, free: 2.918 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.939e-06/0.3811, allocations: 4.359 kB / 0.5626 GB, free: 2.914 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.092e-05/0.3811, allocations: 384 / 0.5626 GB, free: 2.914 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001081/0.3812, allocations: 63.7 kB / 0.5627 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.3812, allocations: 0 / 0.5627 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.705e-06/0.3813, allocations: 0 / 0.5627 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.399e-06/0.3813, allocations: 0 / 0.5627 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.313e-05/0.3813, allocations: 37.58 kB / 0.5627 GB, free: 2.797 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001052/0.3814, allocations: 97.33 kB / 0.5628 GB, free: 2.672 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.372e-05/0.3815, allocations: 48.31 kB / 0.5628 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.954e-05/0.3815, allocations: 34.55 kB / 0.5629 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.208e-06/0.3815, allocations: 0 / 0.5629 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.542e-05/0.3815, allocations: 60.33 kB / 0.5629 GB, free: 2.492 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.3815, allocations: 0 / 0.5629 GB, free: 2.492 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002067/0.3817, allocations: 126.6 kB / 0.563 GB, free: 2.344 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.616e-05/0.3818, allocations: 81.09 kB / 0.5631 GB, free: 2.246 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.148e-05/0.3819, allocations: 89.86 kB / 0.5632 GB, free: 2.148 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/0.3819, allocations: 25.7 kB / 0.5632 GB, free: 2.117 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.247e-05/0.3819, allocations: 88.27 kB / 0.5633 GB, free: 2.027 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.907e-05/0.3819, allocations: 0 / 0.5633 GB, free: 2.027 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.535e-05/0.382, allocations: 9.719 kB / 0.5633 GB, free: 2.012 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.3821, allocations: 314.8 kB / 0.5636 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.479e-05/0.3821, allocations: 29.7 kB / 0.5637 GB, free: 1.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.135e-05/0.3821, allocations: 25.7 kB / 0.5637 GB, free: 1.629 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.295e-05/0.3822, allocations: 64.25 kB / 0.5637 GB, free: 1.551 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3822, allocations: 0 / 0.5637 GB, free: 1.551 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.139e-05/0.3823, allocations: 89.05 kB / 0.5638 GB, free: 1.445 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.051e-05/0.3823, allocations: 37.8 kB / 0.5639 GB, free: 1.402 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.3823, allocations: 4 kB / 0.5639 GB, free: 1.398 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.3823, allocations: 3.938 kB / 0.5639 GB, free: 1.395 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.695e-06/0.3823, allocations: 3.984 kB / 0.5639 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.3823, allocations: 0 / 0.5639 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.296e-05/0.3824, allocations: 0 / 0.5639 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.3824, allocations: 0 / 0.5639 GB, free: 1.391 MB / 398.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 8.991e-05/0.3824, allocations: 139.5 kB / 0.564 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.827e-06/0.3825, allocations: 4 kB / 0.564 GB, free: 1.234 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.153e-05/0.3825, allocations: 6.938 kB / 0.564 GB, free: 1.227 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.3825, allocations: 0 / 0.564 GB, free: 1.227 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.3825, allocations: 8 kB / 0.564 GB, free: 1.219 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.3825, allocations: 0 / 0.564 GB, free: 1.219 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.703e-05/0.3826, allocations: 97.31 kB / 0.5641 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.3826, allocations: 3.938 kB / 0.5641 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.7e-07/0.3826, allocations: 0 / 0.5641 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.3826, allocations: 3.938 kB / 0.5641 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.533e-06/0.3826, allocations: 4 kB / 0.5641 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.3826, allocations: 3.938 kB / 0.5641 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.3826, allocations: 0 / 0.5641 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001142/0.3827, allocations: 120.5 kB / 0.5643 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.54e-06/0.3827, allocations: 8.031 kB / 0.5643 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.034e-05/0.3827, allocations: 0 / 0.5643 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.256e-05/0.3827, allocations: 7.938 kB / 0.5643 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.488e-06/0.3827, allocations: 0 / 0.5643 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-06/0.3827, allocations: 0 / 0.5643 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.174e-05/0.3828, allocations: 75.31 kB / 0.5643 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3828, allocations: 0 / 0.5643 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003766/0.3831, allocations: 131.5 kB / 0.5645 GB, free: 0.7109 MB / 398.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.0007135/0.3838, allocations: 319.1 kB / 0.5648 GB, free: 408 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001258/0.384, allocations: 114.8 kB / 0.5649 GB, free: 268 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.384, allocations: 0 / 0.5649 GB, free: 268 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.493e-05/0.384, allocations: 89.09 kB / 0.565 GB, free: 160 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001201/0.3841, allocations: 3.938 kB / 0.565 GB, free: 156 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002515/0.3844, allocations: 136.4 kB / 0.5651 GB, free: 15.98 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.068e-05/0.3844, allocations: 59.48 kB / 0.5652 GB, free: 15.9 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.27e-05/0.3845, allocations: 7.438 kB / 0.5652 GB, free: 15.89 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3845, allocations: 0 / 0.5652 GB, free: 15.89 MB / 414.1 MB Notification: Performance of Templates: time 0.006416/0.3909, allocations: 3.331 MB / 0.5684 GB, free: 12.56 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.403169814031571]