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.0009832/0.0009832, allocations: 80.31 kB / 22.21 MB, free: 2.285 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.001054/0.001054, allocations: 164.4 kB / 25.61 MB, free: 8.895 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.9367/0.9367, allocations: 177.1 MB / 206 MB, free: 4.508 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.1401/0.1401, allocations: 32.8 MB / 295.4 MB, free: 15.39 MB / 282.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.443e-06/1.443e-06, allocations: 0 / 377.3 MB, free: 25.6 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.321e-05/2.466e-05, allocations: 2.312 kB / 377.3 MB, free: 25.59 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001344/0.001369, allocations: 0.5048 MB / 377.8 MB, free: 25.09 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001866/0.003235, allocations: 2.039 MB / 379.8 MB, free: 23.02 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.936e-05/0.003255, allocations: 0 / 379.8 MB, free: 23.02 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.446e-05/0.003269, allocations: 4 kB / 379.8 MB, free: 23.02 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 6.142e-06/0.003275, allocations: 0 / 379.8 MB, free: 23.02 MB / 314.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.001089/0.004365, allocations: 0.5295 MB / 380.3 MB, free: 22.49 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.074e-05/0.004405, allocations: 0 / 380.3 MB, free: 22.49 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.077e-05/0.004436, allocations: 4 kB / 380.3 MB, free: 22.48 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.299e-05/0.004459, allocations: 0 / 380.3 MB, free: 22.48 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.556e-05/0.004475, allocations: 0 / 380.3 MB, free: 22.48 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.703e-06/0.004481, allocations: 0 / 380.3 MB, free: 22.48 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006082/0.00509, allocations: 0.647 MB / 381 MB, free: 21.84 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 7.504e-06/0.005097, allocations: 0 / 381 MB, free: 21.84 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.305e-05/0.00511, allocations: 0 / 381 MB, free: 21.84 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003632/0.005473, allocations: 462.8 kB / 381.4 MB, free: 21.38 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.005476, allocations: 0 / 381.4 MB, free: 21.38 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.005478, allocations: 0 / 381.4 MB, free: 21.38 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.005482, allocations: 0 / 381.4 MB, free: 21.38 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.0002255/0.005708, allocations: 449.3 kB / 381.9 MB, free: 20.9 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.814e-05/0.005736, allocations: 15.92 kB / 381.9 MB, free: 20.89 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.218e-05/0.005758, allocations: 4.875 kB / 381.9 MB, free: 20.88 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.124e-05/0.005789, allocations: 112.6 kB / 382 MB, free: 20.75 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.526e-06/0.005798, allocations: 384 / 382 MB, free: 20.75 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.819e-06/0.005802, allocations: 4.375 kB / 382 MB, free: 20.74 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.639e-05/0.005849, allocations: 59.97 kB / 382.1 MB, free: 20.67 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.839e-06/0.005854, allocations: 192 / 382.1 MB, free: 20.67 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.492e-06/0.00586, allocations: 384 / 382.1 MB, free: 20.67 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.005864, allocations: 3.938 kB / 382.1 MB, free: 20.67 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.836e-06/0.005873, allocations: 29.69 kB / 382.1 MB, free: 20.63 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 4.577e-05/0.005919, allocations: 101.2 kB / 382.2 MB, free: 20.51 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.701e-05/0.005946, allocations: 56.8 kB / 382.3 MB, free: 20.43 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.007e-06/0.005955, allocations: 33.39 kB / 382.3 MB, free: 20.39 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.615e-06/0.005958, allocations: 0 / 382.3 MB, free: 20.39 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.871e-05/0.005976, allocations: 59.09 kB / 382.4 MB, free: 20.32 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.005977, allocations: 8 kB / 382.4 MB, free: 20.31 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001067/0.006084, allocations: 114.8 kB / 382.5 MB, free: 20.17 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.929e-05/0.006103, allocations: 81.05 kB / 382.6 MB, free: 20.07 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.818e-05/0.006121, allocations: 146.2 kB / 382.7 MB, free: 19.92 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.198e-06/0.006125, allocations: 25.7 kB / 382.7 MB, free: 19.89 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.867e-06/0.006134, allocations: 126.9 kB / 382.8 MB, free: 19.76 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.279e-05/0.006147, allocations: 0 / 382.8 MB, free: 19.76 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.774e-05/0.006165, allocations: 19.38 kB / 382.9 MB, free: 19.73 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.486e-05/0.0062, allocations: 0.4883 MB / 383.3 MB, free: 19.23 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.788e-06/0.00621, allocations: 29.7 kB / 383.4 MB, free: 19.2 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.743e-06/0.006216, allocations: 29.83 kB / 383.4 MB, free: 19.16 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.628e-05/0.006243, allocations: 63.09 kB / 383.5 MB, free: 19.08 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.006244, allocations: 0 / 383.5 MB, free: 19.08 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.783e-05/0.006282, allocations: 93.03 kB / 383.6 MB, free: 18.97 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.006303, allocations: 33.7 kB / 383.6 MB, free: 18.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.006306, allocations: 0 / 383.6 MB, free: 18.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.583e-06/0.006313, allocations: 0 / 383.6 MB, free: 18.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.21e-07/0.006314, allocations: 0 / 383.6 MB, free: 18.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.054e-06/0.006316, allocations: 0 / 383.6 MB, free: 18.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.167e-05/0.006328, allocations: 8.281 kB / 383.6 MB, free: 18.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.248e-06/0.006332, allocations: 4.094 kB / 383.6 MB, free: 18.92 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.284e-05/0.006375, allocations: 186.3 kB / 383.8 MB, free: 18.72 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.369e-06/0.006379, allocations: 3.938 kB / 383.8 MB, free: 18.72 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.564e-06/0.006387, allocations: 6.984 kB / 383.8 MB, free: 18.71 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.006388, allocations: 0 / 383.8 MB, free: 18.71 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-06/0.006389, allocations: 0 / 383.8 MB, free: 18.71 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.006392, allocations: 0 / 383.8 MB, free: 18.71 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.296e-05/0.006425, allocations: 101.2 kB / 383.9 MB, free: 18.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.006426, allocations: 0 / 383.9 MB, free: 18.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.8e-07/0.006426, allocations: 0 / 383.9 MB, free: 18.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.11e-07/0.006427, allocations: 4 kB / 383.9 MB, free: 18.59 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.236e-06/0.00643, allocations: 0 / 383.9 MB, free: 18.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.006431, allocations: 0 / 383.9 MB, free: 18.59 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.006431, allocations: 4 kB / 383.9 MB, free: 18.58 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.354e-05/0.006485, allocations: 135.7 kB / 384 MB, free: 18.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.336e-06/0.006488, allocations: 0 / 384 MB, free: 18.41 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.448e-06/0.006497, allocations: 4 kB / 384 MB, free: 18.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.741e-06/0.006503, allocations: 7.984 kB / 384 MB, free: 18.4 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.845e-06/0.006511, allocations: 0 / 384 MB, free: 18.4 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.503e-06/0.006513, allocations: 0 / 384 MB, free: 18.4 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.19e-05/0.006524, allocations: 119.2 kB / 384.2 MB, free: 18.29 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.006524, allocations: 4.031 kB / 384.2 MB, free: 18.28 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002272/0.006752, allocations: 131.5 kB / 384.3 MB, free: 18.15 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.0004254/0.007177, allocations: 331 kB / 384.6 MB, free: 17.83 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 6.056e-05/0.007238, allocations: 130.5 kB / 384.7 MB, free: 17.67 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.012e-06/0.007239, allocations: 0 / 384.7 MB, free: 17.67 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.232e-05/0.007251, allocations: 92.73 kB / 384.8 MB, free: 17.56 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.405e-05/0.007335, allocations: 6.125 kB / 384.8 MB, free: 17.55 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000113/0.007448, allocations: 112.4 kB / 385 MB, free: 17.41 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.482e-05/0.007463, allocations: 55.22 kB / 385 MB, free: 17.34 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.889e-06/0.007468, allocations: 4 kB / 385 MB, free: 17.33 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.89e-05/0.007487, allocations: 74.2 kB / 385.1 MB, free: 17.26 MB / 314.7 MB Notification: Performance of SimCode: time 6.61e-07/0.007487, allocations: 0 / 385.1 MB, free: 17.26 MB / 314.7 MB Notification: Performance of Templates: time 0.004144/0.01163, allocations: 4.187 MB / 389.3 MB, free: 13.08 MB / 314.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.209393236320466]