Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.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.001601/0.001601, allocations: 111.9 kB / 19.12 MB, free: 3.938 MB / 14.72 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.001828/0.001828, allocations: 208.9 kB / 22.08 MB, free: 0.9883 MB / 14.72 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.472/1.472, allocations: 227.4 MB / 252.3 MB, free: 84 kB / 190.1 MB " [Timeout remaining time 178] 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.2291/0.2291, allocations: 46.17 MB / 351.8 MB, free: 14.29 MB / 286.1 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.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002698/0.002698, allocations: 82 kB / 490.9 MB, free: 28.17 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1295, allocations: 62.46 MB / 0.5403 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001831/0.1314, allocations: 0.4949 MB / 0.5408 GB, free: 3.762 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00372/0.1351, allocations: 2.363 MB / 0.5431 GB, free: 1.375 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.559e-05/0.1352, allocations: 3.938 kB / 0.5431 GB, free: 1.371 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.775e-05/0.1352, allocations: 0 / 0.5431 GB, free: 1.371 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.342e-06/0.1352, allocations: 4 kB / 0.5431 GB, free: 1.367 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:1098:5-1194:31:writable] Warning: Pure function 'ModelicaTest.Math.Random.truncatedDistributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.00182/0.1371, allocations: 0.569 MB / 0.5437 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.733e-05/0.1371, allocations: 4 kB / 0.5437 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.413e-05/0.1372, allocations: 4 kB / 0.5437 GB, free: 0.793 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.494e-05/0.1372, allocations: 0 / 0.5437 GB, free: 0.793 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.059e-05/0.1372, allocations: 3.938 kB / 0.5437 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.733e-06/0.1372, allocations: 7.938 kB / 0.5437 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001333/0.1386, allocations: 0.7019 MB / 0.5444 GB, free: 80 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.834e-06/0.1386, allocations: 0 / 0.5444 GB, free: 80 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.268e-05/0.1386, allocations: 4 kB / 0.5444 GB, free: 76 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009206/0.1396, allocations: 458.8 kB / 0.5448 GB, free: 15.62 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1396, allocations: 0 / 0.5448 GB, free: 15.62 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1396, allocations: 0 / 0.5448 GB, free: 15.62 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.571e-06/0.1396, allocations: 4 kB / 0.5448 GB, free: 15.62 MB / 414.1 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.0005114/0.1401, allocations: 447.1 kB / 0.5453 GB, free: 15.13 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.1402, allocations: 12.03 kB / 0.5453 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.423e-05/0.1402, allocations: 0.9375 kB / 0.5453 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001082/0.1403, allocations: 160.4 kB / 0.5454 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/0.1403, allocations: 4.359 kB / 0.5454 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.164e-06/0.1403, allocations: 384 / 0.5454 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.167e-05/0.1404, allocations: 37.95 kB / 0.5455 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.1405, allocations: 4 kB / 0.5455 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.787e-06/0.1405, allocations: 3.938 kB / 0.5455 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.1405, allocations: 0 / 0.5455 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.942e-05/0.1405, allocations: 4 kB / 0.5455 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001473/0.1407, allocations: 141.7 kB / 0.5456 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.481e-05/0.1407, allocations: 22.56 kB / 0.5456 GB, free: 14.65 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.446e-05/0.1407, allocations: 8.953 kB / 0.5457 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.386e-06/0.1407, allocations: 0 / 0.5457 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.578e-05/0.1408, allocations: 72.14 kB / 0.5457 GB, free: 14.55 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 7.52e-07/0.1408, allocations: 0 / 0.5457 GB, free: 14.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001727/0.141, allocations: 59.41 kB / 0.5458 GB, free: 14.48 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.25e-05/0.1411, allocations: 81.09 kB / 0.5459 GB, free: 14.38 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.192e-05/0.1411, allocations: 101.8 kB / 0.546 GB, free: 14.27 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.1411, allocations: 25.7 kB / 0.546 GB, free: 14.24 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.197e-05/0.1412, allocations: 80.14 kB / 0.5461 GB, free: 14.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.665e-05/0.1412, allocations: 4.062 kB / 0.5461 GB, free: 14.16 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.917e-05/0.1412, allocations: 13.72 kB / 0.5461 GB, free: 14.14 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.1414, allocations: 314.8 kB / 0.5464 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.979e-06/0.1414, allocations: 0 / 0.5464 GB, free: 13.82 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.859e-06/0.1414, allocations: 0 / 0.5464 GB, free: 13.82 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.289e-05/0.1415, allocations: 68.2 kB / 0.5464 GB, free: 13.74 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.1415, allocations: 0 / 0.5464 GB, free: 13.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.325e-05/0.1415, allocations: 63.39 kB / 0.5465 GB, free: 13.66 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.418e-05/0.1416, allocations: 37.73 kB / 0.5465 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.1416, allocations: 0 / 0.5465 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.1416, allocations: 0 / 0.5465 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.1416, allocations: 4 kB / 0.5465 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.1416, allocations: 3.938 kB / 0.5465 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.435e-05/0.1417, allocations: 0 / 0.5465 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.962e-06/0.1417, allocations: 0 / 0.5465 GB, free: 13.61 MB / 414.1 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 9.052e-05/0.1418, allocations: 139.5 kB / 0.5467 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.327e-06/0.1418, allocations: 3.938 kB / 0.5467 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.574e-06/0.1418, allocations: 7.125 kB / 0.5467 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.1418, allocations: 0 / 0.5467 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.1418, allocations: 0 / 0.5467 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.1418, allocations: 3.938 kB / 0.5467 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001127/0.1419, allocations: 153.7 kB / 0.5468 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.1419, allocations: 7.922 kB / 0.5468 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.1419, allocations: 0 / 0.5468 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.1419, allocations: 3.938 kB / 0.5468 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.831e-06/0.142, allocations: 0 / 0.5468 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.142, allocations: 0 / 0.5468 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.142, allocations: 0 / 0.5468 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.894e-05/0.1421, allocations: 94.83 kB / 0.5469 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.012e-05/0.1421, allocations: 77.11 kB / 0.547 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.63e-05/0.1421, allocations: 7.938 kB / 0.547 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.676e-06/0.1422, allocations: 0 / 0.547 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.443e-05/0.1422, allocations: 0 / 0.547 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.584e-06/0.1422, allocations: 0 / 0.547 GB, free: 13.02 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.399e-05/0.1422, allocations: 75.28 kB / 0.5471 GB, free: 12.95 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1422, allocations: 4.031 kB / 0.5471 GB, free: 12.94 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000427/0.1427, allocations: 163.4 kB / 0.5472 GB, free: 12.78 MB / 414.1 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.0008006/0.1435, allocations: 351.5 kB / 0.5476 GB, free: 12.43 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001085/0.1436, allocations: 63.34 kB / 0.5476 GB, free: 12.36 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1436, allocations: 0 / 0.5476 GB, free: 12.36 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.71e-05/0.1436, allocations: 55.41 kB / 0.5477 GB, free: 12.29 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001216/0.1438, allocations: 0 / 0.5477 GB, free: 12.29 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001974/0.144, allocations: 110.8 kB / 0.5478 GB, free: 12.15 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002808/0.1443, allocations: 0.669 MB / 0.5485 GB, free: 11.45 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.264e-05/0.1443, allocations: 11.44 kB / 0.5485 GB, free: 11.44 MB / 414.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1443, allocations: 0 / 0.5485 GB, free: 11.44 MB / 414.1 MB Notification: Performance of Templates: time 0.00623/0.1505, allocations: 3.378 MB / 0.5518 GB, free: 8.059 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.71962963999249]