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.001019/0.001019, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 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.001168/0.001168, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 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 0.9648/0.9648, allocations: 177.1 MB / 205 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] 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.271/0.271, allocations: 32.81 MB / 294.3 MB, free: 1.266 MB / 266.7 MB " [Timeout remaining time 180] 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: Performance of FrontEnd - loaded program: time 1.853e-06/1.853e-06, allocations: 0 / 376 MB, free: 4.688 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.188e-05/3.373e-05, allocations: 2.312 kB / 376 MB, free: 4.684 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001169/0.001203, allocations: 0.5279 MB / 376.5 MB, free: 4.152 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002339/0.003541, allocations: 2.055 MB / 378.6 MB, free: 2.074 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.701e-05/0.003558, allocations: 0 / 378.6 MB, free: 2.074 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.838e-05/0.003577, allocations: 0 / 378.6 MB, free: 2.074 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.462e-06/0.003583, allocations: 0 / 378.6 MB, free: 2.074 MB / 346.7 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.001208/0.004791, allocations: 0.5373 MB / 379.1 MB, free: 1.535 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.226e-05/0.004843, allocations: 0 / 379.1 MB, free: 1.535 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.317e-05/0.004876, allocations: 0 / 379.1 MB, free: 1.535 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.761e-05/0.004904, allocations: 4 kB / 379.1 MB, free: 1.531 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.806e-05/0.004922, allocations: 0 / 379.1 MB, free: 1.531 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.416e-06/0.00493, allocations: 0 / 379.1 MB, free: 1.531 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000866/0.005796, allocations: 0.6469 MB / 379.8 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.035e-06/0.005804, allocations: 0 / 379.8 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.042e-05/0.005825, allocations: 8 kB / 379.8 MB, free: 0.875 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004737/0.006298, allocations: 458.8 kB / 380.2 MB, free: 436 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.874e-06/0.0063, allocations: 0 / 380.2 MB, free: 436 kB / 346.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.006301, allocations: 0 / 380.2 MB, free: 436 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.237e-06/0.006305, allocations: 8 kB / 380.2 MB, free: 428 kB / 346.7 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.0003584/0.006664, allocations: 445.2 kB / 380.7 MB, free: 15.94 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.006705, allocations: 16.02 kB / 380.7 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.062e-05/0.006746, allocations: 0.9375 kB / 380.7 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.249e-05/0.006798, allocations: 104.6 kB / 380.8 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.00681, allocations: 384 / 380.8 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.193e-05/0.006822, allocations: 4.375 kB / 380.8 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.612e-05/0.006908, allocations: 51.97 kB / 380.8 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.006916, allocations: 192 / 380.8 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.006925, allocations: 384 / 380.8 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.006934, allocations: 11.92 kB / 380.9 MB, free: 15.72 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.757e-05/0.006951, allocations: 33.64 kB / 380.9 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.882e-05/0.00704, allocations: 116.6 kB / 381 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.203e-05/0.007082, allocations: 48.77 kB / 381.1 MB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.891e-05/0.007101, allocations: 33.48 kB / 381.1 MB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.827e-06/0.007105, allocations: 4 kB / 381.1 MB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.358e-05/0.007139, allocations: 59.09 kB / 381.1 MB, free: 15.34 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.007139, allocations: 0 / 381.1 MB, free: 15.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001616/0.007301, allocations: 122.7 kB / 381.3 MB, free: 15.2 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.744e-05/0.007338, allocations: 85.05 kB / 381.4 MB, free: 15.1 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.53e-05/0.007384, allocations: 146.4 kB / 381.5 MB, free: 14.94 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.458e-06/0.007393, allocations: 29.64 kB / 381.5 MB, free: 14.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.868e-05/0.007422, allocations: 126.9 kB / 381.6 MB, free: 14.78 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.769e-05/0.00744, allocations: 4.297 kB / 381.7 MB, free: 14.77 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.378e-05/0.007463, allocations: 19.38 kB / 381.7 MB, free: 14.75 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.007572, allocations: 0.4884 MB / 382.2 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.896e-05/0.007591, allocations: 25.7 kB / 382.2 MB, free: 14.21 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.24e-05/0.007603, allocations: 29.7 kB / 382.2 MB, free: 14.18 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.886e-05/0.007642, allocations: 59.09 kB / 382.3 MB, free: 14.11 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.007644, allocations: 4 kB / 382.3 MB, free: 14.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.973e-05/0.007704, allocations: 93.09 kB / 382.4 MB, free: 13.99 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.004e-05/0.007734, allocations: 40.05 kB / 382.4 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.007739, allocations: 0 / 382.4 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.007755, allocations: 0 / 382.4 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.926e-06/0.007757, allocations: 0 / 382.4 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.007764, allocations: 3.938 kB / 382.4 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.949e-06/0.007774, allocations: 0 / 382.4 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.202e-06/0.007781, allocations: 4 kB / 382.4 MB, free: 13.94 MB / 362.7 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 7.523e-05/0.007856, allocations: 182.3 kB / 382.6 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.24e-06/0.007861, allocations: 8.031 kB / 382.6 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.012e-05/0.007871, allocations: 3 kB / 382.6 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.007873, allocations: 0 / 382.6 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.237e-06/0.007876, allocations: 0 / 382.6 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.00788, allocations: 3.938 kB / 382.6 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.941e-05/0.00794, allocations: 108.6 kB / 382.7 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.11e-07/0.00794, allocations: 0 / 382.7 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.9e-07/0.00794, allocations: 0 / 382.7 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.01e-07/0.007941, allocations: 0 / 382.7 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-06/0.007949, allocations: 3.984 kB / 382.7 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.007951, allocations: 7.984 kB / 382.7 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.007952, allocations: 7.938 kB / 382.7 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002794/0.008231, allocations: 131.8 kB / 382.9 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.43e-06/0.008236, allocations: 3.984 kB / 382.9 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.449e-05/0.008251, allocations: 0 / 382.9 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.049e-06/0.008256, allocations: 0 / 382.9 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.497e-05/0.008271, allocations: 4 kB / 382.9 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-06/0.008273, allocations: 0 / 382.9 MB, free: 13.4 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.162e-05/0.008304, allocations: 127.1 kB / 383 MB, free: 13.28 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008304, allocations: 0 / 383 MB, free: 13.28 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003144/0.008619, allocations: 135.5 kB / 383.1 MB, free: 13.14 MB / 362.7 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.0005424/0.009161, allocations: 335 kB / 383.5 MB, free: 12.82 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001129/0.009274, allocations: 122.4 kB / 383.6 MB, free: 12.67 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.009276, allocations: 0 / 383.6 MB, free: 12.67 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.186e-05/0.009308, allocations: 92.78 kB / 383.7 MB, free: 12.56 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.327e-05/0.009401, allocations: 8.125 kB / 383.7 MB, free: 12.55 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001894/0.00959, allocations: 110.5 kB / 383.8 MB, free: 12.41 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.229e-05/0.009623, allocations: 55.36 kB / 383.8 MB, free: 12.33 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.21e-06/0.009628, allocations: 0 / 383.8 MB, free: 12.33 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.465e-05/0.009643, allocations: 8.5 kB / 383.8 MB, free: 12.32 MB / 362.7 MB Notification: Performance of SimCode: time 5.11e-07/0.009643, allocations: 0 / 383.8 MB, free: 12.32 MB / 362.7 MB Notification: Performance of Templates: time 0.00507/0.01471, allocations: 3.54 MB / 387.4 MB, free: 8.789 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2991528338752687]