Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009566/0.0009566, allocations: 84.73 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001167/0.001167, allocations: 166.2 kB / 24.91 MB, free: 8.77 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.022/1.022, allocations: 177 MB / 205.2 MB, free: 5.035 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3034/0.3034, allocations: 34.86 MB / 296.6 MB, free: 456 kB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.142e-06/1.142e-06, allocations: 0 / 325.9 MB, free: 7.168 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.354e-05/2.468e-05, allocations: 5.312 kB / 325.9 MB, free: 7.164 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.00118/0.001204, allocations: 0.5169 MB / 326.4 MB, free: 6.648 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002385/0.003589, allocations: 2.055 MB / 328.5 MB, free: 4.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.598e-05/0.003605, allocations: 0 / 328.5 MB, free: 4.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.32e-05/0.003618, allocations: 0 / 328.5 MB, free: 4.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.922e-06/0.003624, allocations: 4 kB / 328.5 MB, free: 4.566 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001323/0.004947, allocations: 0.5301 MB / 329 MB, free: 4.035 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.371e-05/0.004991, allocations: 8 kB / 329 MB, free: 4.027 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.465e-05/0.005026, allocations: 0 / 329 MB, free: 4.027 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.762e-05/0.005053, allocations: 7.875 kB / 329 MB, free: 4.02 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.871e-05/0.005072, allocations: 0 / 329 MB, free: 4.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.045e-06/0.00508, allocations: 0 / 329 MB, free: 4.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008423/0.005922, allocations: 0.6431 MB / 329.7 MB, free: 3.375 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.995e-06/0.00593, allocations: 0 / 329.7 MB, free: 3.375 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.429e-05/0.005945, allocations: 0.75 kB / 329.7 MB, free: 3.375 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005662/0.006511, allocations: 458.8 kB / 330.1 MB, free: 2.926 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.006513, allocations: 4 kB / 330.1 MB, free: 2.922 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.006515, allocations: 3.938 kB / 330.1 MB, free: 2.918 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.006519, allocations: 0 / 330.1 MB, free: 2.918 MB / 298.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.0003647/0.006884, allocations: 317.6 kB / 330.4 MB, free: 2.578 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.006921, allocations: 8.031 kB / 330.4 MB, free: 2.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.763e-05/0.006949, allocations: 4.938 kB / 330.4 MB, free: 2.566 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.72e-05/0.007006, allocations: 101.8 kB / 330.5 MB, free: 2.441 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.07e-05/0.007017, allocations: 384 / 330.5 MB, free: 2.441 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.007e-05/0.007027, allocations: 4.375 kB / 330.6 MB, free: 2.438 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.799e-05/0.007105, allocations: 63.89 kB / 330.6 MB, free: 2.363 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.261e-06/0.007111, allocations: 4.188 kB / 330.6 MB, free: 2.359 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.454e-06/0.007119, allocations: 4.375 kB / 330.6 MB, free: 2.355 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.007124, allocations: 3.938 kB / 330.6 MB, free: 2.352 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001542/0.007278, allocations: 29.7 kB / 330.7 MB, free: 2.316 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.965e-05/0.007337, allocations: 57.03 kB / 330.7 MB, free: 2.246 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.865e-05/0.007376, allocations: 44.31 kB / 330.8 MB, free: 2.188 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.47e-05/0.007391, allocations: 30.56 kB / 330.8 MB, free: 2.148 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.348e-06/0.007395, allocations: 8.047 kB / 330.8 MB, free: 2.141 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.007427, allocations: 72.12 kB / 330.9 MB, free: 2.055 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 5.81e-07/0.007428, allocations: 0 / 330.9 MB, free: 2.055 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001027/0.00753, allocations: 114.8 kB / 331 MB, free: 1.918 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.025e-05/0.007561, allocations: 77.11 kB / 331 MB, free: 1.824 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.136e-05/0.007592, allocations: 94.55 kB / 331.1 MB, free: 1.723 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.075e-06/0.0076, allocations: 25.7 kB / 331.2 MB, free: 1.691 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.772e-05/0.007618, allocations: 80.14 kB / 331.2 MB, free: 1.609 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.508e-05/0.007633, allocations: 0.6875 kB / 331.2 MB, free: 1.609 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.844e-05/0.007651, allocations: 17.7 kB / 331.3 MB, free: 1.586 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.892e-05/0.00772, allocations: 314.8 kB / 331.6 MB, free: 1.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.488e-05/0.007735, allocations: 29.7 kB / 331.6 MB, free: 1.234 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.195e-05/0.007747, allocations: 25.7 kB / 331.6 MB, free: 1.203 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.727e-05/0.007784, allocations: 68.39 kB / 331.7 MB, free: 1.121 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.007786, allocations: 0 / 331.7 MB, free: 1.121 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.706e-05/0.007833, allocations: 85.09 kB / 331.8 MB, free: 1.02 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/0.007858, allocations: 33.7 kB / 331.8 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.007862, allocations: 0 / 331.8 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.656e-06/0.007871, allocations: 0 / 331.8 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.705e-06/0.007874, allocations: 0 / 331.8 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.155e-06/0.007876, allocations: 0 / 331.8 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.638e-06/0.007885, allocations: 0 / 331.8 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.675e-06/0.007893, allocations: 7.938 kB / 331.8 MB, free: 0.9688 MB / 298.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 5.619e-05/0.007949, allocations: 143.5 kB / 332 MB, free: 0.8125 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.242e-06/0.007955, allocations: 4 kB / 332 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.747e-06/0.007964, allocations: 7 kB / 332 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.007966, allocations: 0 / 332 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-06/0.007967, allocations: 3.938 kB / 332 MB, free: 0.8008 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.007969, allocations: 0 / 332 MB, free: 0.8008 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.057e-05/0.00801, allocations: 66.19 kB / 332 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.008011, allocations: 0 / 332 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.81e-07/0.008011, allocations: 0 / 332 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.42e-07/0.008012, allocations: 0 / 332 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.14e-06/0.008017, allocations: 7.984 kB / 332 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-07/0.008017, allocations: 0 / 332 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.01e-07/0.008018, allocations: 0 / 332 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.178e-05/0.008079, allocations: 116.5 kB / 332.2 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.807e-06/0.008083, allocations: 3.938 kB / 332.2 MB, free: 0.5625 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.758e-06/0.008093, allocations: 4 kB / 332.2 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.008e-06/0.008097, allocations: 0 / 332.2 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.267e-06/0.008106, allocations: 4 kB / 332.2 MB, free: 0.5547 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-06/0.008109, allocations: 0 / 332.2 MB, free: 0.5547 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.803e-06/0.008116, allocations: 4.859 kB / 332.2 MB, free: 0.5469 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008116, allocations: 4.031 kB / 332.2 MB, free: 0.543 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002976/0.008413, allocations: 135.5 kB / 332.3 MB, free: 420 kB / 298.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.0005264/0.00894, allocations: 319.8 kB / 332.6 MB, free: 104 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001003/0.00904, allocations: 123.7 kB / 332.7 MB, free: 15.95 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.009042, allocations: 4.062 kB / 332.7 MB, free: 15.95 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.603e-05/0.009068, allocations: 85.97 kB / 332.8 MB, free: 15.84 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.568e-05/0.009114, allocations: 3.938 kB / 332.8 MB, free: 15.84 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001438/0.009257, allocations: 110.2 kB / 332.9 MB, free: 15.7 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.568e-05/0.009283, allocations: 55.36 kB / 333 MB, free: 15.62 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.54e-06/0.009289, allocations: 0 / 333 MB, free: 15.62 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.357e-05/0.009322, allocations: 59.36 kB / 333.1 MB, free: 15.57 MB / 314.7 MB Notification: Performance of SimCode: time 4.61e-07/0.009323, allocations: 3.938 kB / 333.1 MB, free: 15.56 MB / 314.7 MB Notification: Performance of Templates: time 0.006037/0.01536, allocations: 4.178 MB / 337.2 MB, free: 11.39 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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.054427686147392]