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.001465/0.001465, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.001031/0.001031, 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 1.039/1.039, allocations: 177.1 MB / 205 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] 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.2825/0.2825, allocations: 34.25 MB / 295.7 MB, free: 0.7539 MB / 266.7 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 1.503e-06/1.503e-06, allocations: 0 / 378 MB, free: 2.672 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.678e-05/2.828e-05, allocations: 6.25 kB / 378 MB, free: 2.664 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001622/0.00165, allocations: 0.5202 MB / 378.6 MB, free: 2.141 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003021/0.004672, allocations: 2.066 MB / 380.6 MB, free: 52 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.765e-05/0.004689, allocations: 0 / 380.6 MB, free: 52 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.254e-05/0.004712, allocations: 0 / 380.6 MB, free: 52 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.382e-06/0.004718, allocations: 0 / 380.6 MB, free: 52 kB / 346.7 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.00156/0.006279, allocations: 0.5295 MB / 381.1 MB, free: 15.52 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 5.231e-05/0.006331, allocations: 0 / 381.1 MB, free: 15.52 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.699e-05/0.006368, allocations: 4 kB / 381.2 MB, free: 15.52 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.808e-05/0.006396, allocations: 0 / 381.2 MB, free: 15.52 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.856e-05/0.006415, allocations: 0 / 381.2 MB, free: 15.52 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 8.826e-06/0.006423, allocations: 0 / 381.2 MB, free: 15.52 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001213/0.007637, allocations: 0.6548 MB / 381.8 MB, free: 14.86 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 9.598e-06/0.007646, allocations: 0 / 381.8 MB, free: 14.86 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.028e-05/0.007667, allocations: 0 / 381.8 MB, free: 14.86 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007721/0.008439, allocations: 466.8 kB / 382.3 MB, free: 14.4 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.008443, allocations: 0 / 382.3 MB, free: 14.4 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.008444, allocations: 4 kB / 382.3 MB, free: 14.4 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.008449, allocations: 0 / 382.3 MB, free: 14.4 MB / 362.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.0003799/0.008829, allocations: 441.3 kB / 382.7 MB, free: 13.93 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.008865, allocations: 8.031 kB / 382.7 MB, free: 13.92 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.592e-05/0.008901, allocations: 0.9375 kB / 382.7 MB, free: 13.92 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.633e-05/0.008957, allocations: 112.6 kB / 382.8 MB, free: 13.78 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.008969, allocations: 384 / 382.8 MB, free: 13.78 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.1e-05/0.00898, allocations: 8.25 kB / 382.8 MB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.024e-05/0.00907, allocations: 59.95 kB / 382.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.00908, allocations: 192 / 382.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.366e-06/0.009088, allocations: 4.375 kB / 382.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-06/0.009097, allocations: 7.922 kB / 382.9 MB, free: 13.69 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.795e-05/0.009115, allocations: 25.7 kB / 382.9 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.413e-05/0.009209, allocations: 108.6 kB / 383 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.583e-05/0.009255, allocations: 56.8 kB / 383.1 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.057e-05/0.009275, allocations: 41.31 kB / 383.1 MB, free: 13.39 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.458e-06/0.00928, allocations: 0 / 383.1 MB, free: 13.39 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.468e-05/0.009314, allocations: 59.09 kB / 383.2 MB, free: 13.32 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 5.91e-07/0.009315, allocations: 4.062 kB / 383.2 MB, free: 13.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001656/0.009481, allocations: 114.9 kB / 383.3 MB, free: 13.18 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.791e-05/0.009519, allocations: 85.05 kB / 383.4 MB, free: 13.08 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.264e-05/0.009561, allocations: 146.2 kB / 383.5 MB, free: 12.92 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.854e-06/0.009569, allocations: 25.7 kB / 383.5 MB, free: 12.89 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.838e-05/0.009597, allocations: 126.9 kB / 383.7 MB, free: 12.76 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.792e-05/0.009615, allocations: 4.297 kB / 383.7 MB, free: 12.76 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.37e-05/0.009639, allocations: 19.38 kB / 383.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.009748, allocations: 492.1 kB / 384.2 MB, free: 12.24 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.492e-05/0.009772, allocations: 33.64 kB / 384.2 MB, free: 12.2 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.271e-05/0.009785, allocations: 25.7 kB / 384.2 MB, free: 12.17 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.762e-05/0.009833, allocations: 75.14 kB / 384.3 MB, free: 12.08 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.009835, allocations: 0 / 384.3 MB, free: 12.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.495e-05/0.0099, allocations: 85.11 kB / 384.4 MB, free: 11.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.823e-05/0.009928, allocations: 29.7 kB / 384.4 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.009935, allocations: 3.984 kB / 384.4 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.00995, allocations: 0 / 384.4 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.207e-06/0.009955, allocations: 4 kB / 384.4 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.009961, allocations: 3.938 kB / 384.4 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.351e-05/0.009974, allocations: 0 / 384.4 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.785e-06/0.009982, allocations: 7.938 kB / 384.4 MB, free: 11.92 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.605e-05/0.01006, allocations: 190.3 kB / 384.6 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.272e-06/0.01006, allocations: 0 / 384.6 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.579e-05/0.01008, allocations: 3 kB / 384.6 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.01008, allocations: 0 / 384.6 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.01009, allocations: 3.938 kB / 384.6 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.01009, allocations: 7.938 kB / 384.6 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.82e-05/0.01015, allocations: 108.6 kB / 384.7 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.01015, allocations: 0 / 384.7 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.11e-07/0.01015, allocations: 0 / 384.7 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.442e-06/0.01015, allocations: 0 / 384.7 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.163e-06/0.01016, allocations: 4 kB / 384.7 MB, free: 11.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.01016, allocations: 4 kB / 384.8 MB, free: 11.56 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.01016, allocations: 0 / 384.8 MB, free: 11.56 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.341e-05/0.01025, allocations: 131.8 kB / 384.9 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.328e-06/0.01026, allocations: 0 / 384.9 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.61e-05/0.01027, allocations: 4 kB / 384.9 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.214e-06/0.01028, allocations: 3.938 kB / 384.9 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.408e-05/0.0103, allocations: 0 / 384.9 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-06/0.0103, allocations: 0 / 384.9 MB, free: 11.39 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.133e-05/0.01033, allocations: 123.1 kB / 385 MB, free: 11.27 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01033, allocations: 0 / 385 MB, free: 11.27 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003258/0.01065, allocations: 143.6 kB / 385.1 MB, free: 11.12 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.0005782/0.01123, allocations: 329.4 kB / 385.5 MB, free: 10.8 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00011/0.01134, allocations: 122.5 kB / 385.6 MB, free: 10.65 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.01134, allocations: 0 / 385.6 MB, free: 10.65 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.038e-05/0.01137, allocations: 92.86 kB / 385.7 MB, free: 10.54 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.629e-05/0.01147, allocations: 13.8 kB / 385.7 MB, free: 10.53 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001773/0.01165, allocations: 118.5 kB / 385.8 MB, free: 10.38 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.876e-05/0.01168, allocations: 55.3 kB / 385.9 MB, free: 10.3 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.11e-06/0.01168, allocations: 0 / 385.9 MB, free: 10.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.246e-05/0.01169, allocations: 8.5 kB / 385.9 MB, free: 10.29 MB / 362.7 MB Notification: Performance of SimCode: time 7.01e-07/0.0117, allocations: 4 kB / 385.9 MB, free: 10.29 MB / 362.7 MB Notification: Performance of Templates: time 0.005063/0.01676, allocations: 3.524 MB / 389.4 MB, free: 6.766 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 240] 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","",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.4058487759903073]