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.001474/0.001474, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001175/0.001175, allocations: 163.9 kB / 25.61 MB, free: 8.582 MB / 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.9228/0.9228, allocations: 177.2 MB / 206.1 MB, free: 4.469 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.1582/0.1582, allocations: 34.27 MB / 296.9 MB, free: 13.91 MB / 282.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.373e-06/1.373e-06, allocations: 0 / 379.3 MB, free: 23.41 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.394e-05/2.531e-05, allocations: 6.25 kB / 379.3 MB, free: 23.4 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001589/0.001614, allocations: 0.4892 MB / 379.8 MB, free: 22.91 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002476/0.00409, allocations: 2.051 MB / 381.8 MB, free: 20.84 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.298e-05/0.004113, allocations: 0 / 381.8 MB, free: 20.84 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.627e-05/0.00413, allocations: 0 / 381.8 MB, free: 20.84 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 6.402e-06/0.004136, allocations: 0 / 381.8 MB, free: 20.84 MB / 314.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.001159/0.005295, allocations: 0.5256 MB / 382.4 MB, free: 20.31 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 5.877e-05/0.005354, allocations: 0 / 382.4 MB, free: 20.31 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.724e-05/0.005401, allocations: 8 kB / 382.4 MB, free: 20.3 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.002e-05/0.005431, allocations: 7.922 kB / 382.4 MB, free: 20.29 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.146e-05/0.005453, allocations: 0 / 382.4 MB, free: 20.29 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.874e-06/0.005461, allocations: 0 / 382.4 MB, free: 20.29 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000754/0.006215, allocations: 0.6392 MB / 383 MB, free: 19.65 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.017e-06/0.006224, allocations: 3.984 kB / 383 MB, free: 19.65 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.264e-05/0.006236, allocations: 0 / 383 MB, free: 19.65 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004425/0.006679, allocations: 462.8 kB / 383.5 MB, free: 19.2 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.006682, allocations: 0 / 383.5 MB, free: 19.2 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.006683, allocations: 4 kB / 383.5 MB, free: 19.19 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.006687, allocations: 0 / 383.5 MB, free: 19.19 MB / 314.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.0002688/0.006956, allocations: 453.2 kB / 383.9 MB, free: 18.71 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.102e-05/0.006987, allocations: 8.031 kB / 383.9 MB, free: 18.7 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.568e-05/0.007013, allocations: 0.9375 kB / 383.9 MB, free: 18.7 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.12e-05/0.007054, allocations: 108.6 kB / 384 MB, free: 18.57 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.104e-05/0.007065, allocations: 4.375 kB / 384 MB, free: 18.56 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.57e-06/0.007071, allocations: 384 / 384 MB, free: 18.56 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.56e-05/0.007126, allocations: 63.91 kB / 384.1 MB, free: 18.49 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.007133, allocations: 192 / 384.1 MB, free: 18.49 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.691e-06/0.007139, allocations: 4.375 kB / 384.1 MB, free: 18.48 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.007144, allocations: 3.938 kB / 384.1 MB, free: 18.48 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.096e-05/0.007155, allocations: 29.69 kB / 384.1 MB, free: 18.45 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.714e-05/0.007212, allocations: 93.27 kB / 384.2 MB, free: 18.33 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.427e-05/0.007247, allocations: 48.77 kB / 384.3 MB, free: 18.26 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.315e-05/0.00726, allocations: 37.48 kB / 384.3 MB, free: 18.21 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.736e-06/0.007262, allocations: 0 / 384.3 MB, free: 18.21 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.183e-05/0.007284, allocations: 63.03 kB / 384.4 MB, free: 18.14 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 7.12e-07/0.007285, allocations: 0 / 384.4 MB, free: 18.14 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001209/0.007406, allocations: 118.8 kB / 384.5 MB, free: 18 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.064e-05/0.007426, allocations: 85.23 kB / 384.6 MB, free: 17.89 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.991e-05/0.007446, allocations: 142.2 kB / 384.7 MB, free: 17.74 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.789e-06/0.007451, allocations: 25.7 kB / 384.7 MB, free: 17.71 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.698e-06/0.007461, allocations: 126.9 kB / 384.9 MB, free: 17.58 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.3e-05/0.007474, allocations: 0 / 384.9 MB, free: 17.58 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.845e-05/0.007492, allocations: 23.36 kB / 384.9 MB, free: 17.55 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.465e-05/0.007547, allocations: 0.4883 MB / 385.4 MB, free: 17.05 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.382e-05/0.007561, allocations: 25.7 kB / 385.4 MB, free: 17.02 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.418e-06/0.00757, allocations: 29.7 kB / 385.4 MB, free: 16.98 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.697e-05/0.007607, allocations: 71.03 kB / 385.5 MB, free: 16.9 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.007609, allocations: 4 kB / 385.5 MB, free: 16.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.289e-05/0.007662, allocations: 93.09 kB / 385.6 MB, free: 16.79 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.531e-05/0.007687, allocations: 29.7 kB / 385.6 MB, free: 16.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.007693, allocations: 0 / 385.6 MB, free: 16.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.002e-05/0.007703, allocations: 0 / 385.6 MB, free: 16.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.007703, allocations: 0 / 385.6 MB, free: 16.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.925e-06/0.007706, allocations: 0 / 385.6 MB, free: 16.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.383e-05/0.00772, allocations: 8.281 kB / 385.6 MB, free: 16.74 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.611e-06/0.007726, allocations: 3.984 kB / 385.6 MB, free: 16.74 MB / 314.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 4.86e-05/0.007774, allocations: 182.3 kB / 385.8 MB, free: 16.54 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.213e-06/0.007781, allocations: 7.984 kB / 385.8 MB, free: 16.54 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.366e-06/0.00779, allocations: 3 kB / 385.8 MB, free: 16.54 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.007792, allocations: 0 / 385.8 MB, free: 16.54 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.007795, allocations: 3.938 kB / 385.8 MB, free: 16.53 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.007798, allocations: 0 / 385.8 MB, free: 16.53 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.183e-05/0.00784, allocations: 101.2 kB / 385.9 MB, free: 16.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.31e-07/0.00784, allocations: 0 / 385.9 MB, free: 16.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.253e-06/0.007841, allocations: 4 kB / 385.9 MB, free: 16.4 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.007843, allocations: 0 / 385.9 MB, free: 16.4 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.838e-06/0.007846, allocations: 0 / 385.9 MB, free: 16.4 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.21e-07/0.007847, allocations: 4 kB / 385.9 MB, free: 16.4 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.007848, allocations: 0 / 385.9 MB, free: 16.4 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.235e-05/0.00791, allocations: 135.8 kB / 386.1 MB, free: 16.23 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.11e-06/0.007915, allocations: 0 / 386.1 MB, free: 16.23 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.889e-06/0.007925, allocations: 3.984 kB / 386.1 MB, free: 16.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.33e-06/0.007931, allocations: 0 / 386.1 MB, free: 16.23 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.148e-05/0.007942, allocations: 4 kB / 386.1 MB, free: 16.22 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.926e-06/0.007945, allocations: 0 / 386.1 MB, free: 16.22 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.59e-05/0.007961, allocations: 119.2 kB / 386.2 MB, free: 16.11 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007961, allocations: 0 / 386.2 MB, free: 16.11 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003166/0.008278, allocations: 135.5 kB / 386.3 MB, free: 15.97 MB / 314.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.00048/0.008758, allocations: 336.3 kB / 386.7 MB, free: 15.64 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 6.989e-05/0.008828, allocations: 118.5 kB / 386.8 MB, free: 15.5 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.192e-06/0.008829, allocations: 4 kB / 386.8 MB, free: 15.49 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.375e-05/0.008842, allocations: 92.84 kB / 386.9 MB, free: 15.38 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.643e-05/0.008929, allocations: 9.656 kB / 386.9 MB, free: 15.37 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001159/0.009045, allocations: 112.4 kB / 387 MB, free: 15.23 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.594e-05/0.009061, allocations: 59.2 kB / 387 MB, free: 15.15 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.869e-06/0.009066, allocations: 0 / 387 MB, free: 15.15 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.203e-05/0.009088, allocations: 70.2 kB / 387.1 MB, free: 15.08 MB / 314.7 MB Notification: Performance of SimCode: time 6.11e-07/0.009088, allocations: 4 kB / 387.1 MB, free: 15.07 MB / 314.7 MB Notification: Performance of Templates: time 0.004745/0.01383, allocations: 4.189 MB / 391.3 MB, free: 10.89 MB / 314.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.22419395390898]