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.001808/0.001808, allocations: 108.3 kB / 20.48 MB, free: 1.121 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.002179/0.002179, allocations: 209.8 kB / 23.78 MB, free: 4.324 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.512/1.512, allocations: 230.6 MB / 257.6 MB, free: 7.734 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.2328/0.2328, allocations: 44.94 MB / 358.9 MB, free: 6.016 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.002188/0.002188, allocations: 67.89 kB / 0.4936 GB, free: 9.992 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3407/0.3429, allocations: 65.48 MB / 0.5576 GB, free: 7.434 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001647/0.3445, allocations: 0.497 MB / 0.558 GB, free: 6.934 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003375/0.3479, allocations: 2.004 MB / 0.56 GB, free: 4.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.504e-05/0.3479, allocations: 0 / 0.56 GB, free: 4.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.647e-05/0.3479, allocations: 0 / 0.56 GB, free: 4.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.164e-06/0.348, allocations: 0 / 0.56 GB, free: 4.91 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.001748/0.3497, allocations: 0.5138 MB / 0.5605 GB, free: 4.398 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.675e-05/0.3498, allocations: 4 kB / 0.5605 GB, free: 4.395 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.289e-05/0.3498, allocations: 4 kB / 0.5605 GB, free: 4.391 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.811e-05/0.3498, allocations: 3.984 kB / 0.5605 GB, free: 4.387 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.226e-05/0.3498, allocations: 3.938 kB / 0.5605 GB, free: 4.383 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.945e-06/0.3499, allocations: 0 / 0.5605 GB, free: 4.383 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001144/0.351, allocations: 0.6433 MB / 0.5612 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.826e-06/0.351, allocations: 3.938 kB / 0.5612 GB, free: 3.734 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.372e-05/0.351, allocations: 0 / 0.5612 GB, free: 3.734 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006031/0.3516, allocations: 393.4 kB / 0.5615 GB, free: 3.355 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.3516, allocations: 0 / 0.5615 GB, free: 3.355 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3516, allocations: 0 / 0.5615 GB, free: 3.355 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.3516, allocations: 0 / 0.5615 GB, free: 3.355 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.0004574/0.3521, allocations: 343.3 kB / 0.5619 GB, free: 2.984 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.3521, allocations: 8.031 kB / 0.5619 GB, free: 2.977 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.118e-05/0.3522, allocations: 4.938 kB / 0.5619 GB, free: 2.973 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.544e-05/0.3523, allocations: 114.5 kB / 0.562 GB, free: 2.836 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.3523, allocations: 384 / 0.562 GB, free: 2.836 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.157e-06/0.3523, allocations: 384 / 0.562 GB, free: 2.836 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001022/0.3524, allocations: 63.7 kB / 0.562 GB, free: 2.762 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.3524, allocations: 0 / 0.562 GB, free: 2.762 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.276e-06/0.3524, allocations: 0 / 0.562 GB, free: 2.762 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.3524, allocations: 0 / 0.562 GB, free: 2.762 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.294e-05/0.3525, allocations: 29.7 kB / 0.5621 GB, free: 2.727 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001203/0.3526, allocations: 97.27 kB / 0.5622 GB, free: 2.602 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.464e-05/0.3526, allocations: 48.31 kB / 0.5622 GB, free: 2.539 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.799e-05/0.3527, allocations: 34.56 kB / 0.5622 GB, free: 2.496 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.196e-06/0.3527, allocations: 0 / 0.5622 GB, free: 2.496 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.501e-05/0.3528, allocations: 64.31 kB / 0.5623 GB, free: 2.418 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.3528, allocations: 0 / 0.5623 GB, free: 2.418 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002156/0.353, allocations: 126.6 kB / 0.5624 GB, free: 2.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.644e-05/0.353, allocations: 77.11 kB / 0.5625 GB, free: 2.176 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.683e-05/0.3531, allocations: 97.78 kB / 0.5626 GB, free: 2.07 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.547e-05/0.3531, allocations: 25.7 kB / 0.5626 GB, free: 2.039 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.814e-05/0.3531, allocations: 84.08 kB / 0.5627 GB, free: 1.953 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.665e-05/0.3532, allocations: 0 / 0.5627 GB, free: 1.953 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.793e-05/0.3532, allocations: 17.84 kB / 0.5627 GB, free: 1.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.3533, allocations: 314.8 kB / 0.563 GB, free: 1.613 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.916e-05/0.3534, allocations: 29.7 kB / 0.563 GB, free: 1.578 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.048e-05/0.3534, allocations: 25.7 kB / 0.5631 GB, free: 1.547 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.616e-05/0.3535, allocations: 60.27 kB / 0.5631 GB, free: 1.473 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.3535, allocations: 0 / 0.5631 GB, free: 1.473 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.58e-05/0.3536, allocations: 97.03 kB / 0.5632 GB, free: 1.359 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.394e-05/0.3536, allocations: 29.7 kB / 0.5632 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.3536, allocations: 0 / 0.5632 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.138e-05/0.3536, allocations: 8.031 kB / 0.5633 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.495e-06/0.3536, allocations: 4 kB / 0.5633 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.768e-06/0.3536, allocations: 0 / 0.5633 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.318e-05/0.3536, allocations: 0 / 0.5633 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.595e-06/0.3536, allocations: 3.984 kB / 0.5633 GB, free: 1.309 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.616e-05/0.3537, allocations: 135.5 kB / 0.5634 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.664e-06/0.3537, allocations: 0 / 0.5634 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.485e-05/0.3538, allocations: 6.938 kB / 0.5634 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.3538, allocations: 0 / 0.5634 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.3538, allocations: 0 / 0.5634 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.3538, allocations: 0 / 0.5634 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.382e-05/0.3538, allocations: 105.3 kB / 0.5635 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.3538, allocations: 0 / 0.5635 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.7e-07/0.3538, allocations: 0 / 0.5635 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.3538, allocations: 0 / 0.5635 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.38e-06/0.3538, allocations: 0 / 0.5635 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.3539, allocations: 3.938 kB / 0.5635 GB, free: 1.016 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3539, allocations: 4 kB / 0.5635 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001212/0.354, allocations: 124.5 kB / 0.5636 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.69e-06/0.354, allocations: 4 kB / 0.5636 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.078e-05/0.354, allocations: 0 / 0.5636 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.031e-05/0.354, allocations: 7.969 kB / 0.5636 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.923e-05/0.354, allocations: 7.984 kB / 0.5636 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-06/0.354, allocations: 0 / 0.5636 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.288e-05/0.3541, allocations: 75.31 kB / 0.5637 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3541, allocations: 3.938 kB / 0.5637 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004036/0.3545, allocations: 135.5 kB / 0.5638 GB, free: 0.6289 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.000703/0.3552, allocations: 315.8 kB / 0.5641 GB, free: 324 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001258/0.3553, allocations: 114.8 kB / 0.5643 GB, free: 184 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.3553, allocations: 0 / 0.5643 GB, free: 184 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.211e-05/0.3554, allocations: 81.05 kB / 0.5643 GB, free: 84 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001304/0.3555, allocations: 4 kB / 0.5643 GB, free: 80 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002301/0.3557, allocations: 114.6 kB / 0.5644 GB, free: 15.93 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.701e-05/0.3558, allocations: 55.36 kB / 0.5645 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.04e-06/0.3558, allocations: 0 / 0.5645 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.73e-05/0.3558, allocations: 12.62 kB / 0.5645 GB, free: 15.84 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3558, allocations: 0 / 0.5645 GB, free: 15.84 MB / 414.1 MB Notification: Performance of Templates: time 0.007568/0.3634, allocations: 3.515 MB / 0.5679 GB, free: 12.33 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/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_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: 5.380916750989854]