Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001259/0.001259, allocations: 118.7 kB / 19.18 MB, free: 3.887 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.001416/0.001416, allocations: 202.6 kB / 22.13 MB, free: 0.9414 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.467/1.467, allocations: 230.3 MB / 255.2 MB, free: 15.19 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2443/0.2443, allocations: 46.92 MB / 358.2 MB, free: 10.39 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002388/0.002388, allocations: 79.88 kB / 0.4925 GB, free: 7.633 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1276, allocations: 66.01 MB / 0.557 GB, free: 5.496 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001734/0.1294, allocations: 0.4983 MB / 0.5575 GB, free: 4.992 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003617/0.133, allocations: 2.392 MB / 0.5598 GB, free: 2.578 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.481e-05/0.133, allocations: 0 / 0.5598 GB, free: 2.578 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.626e-05/0.133, allocations: 0 / 0.5598 GB, free: 2.578 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.51e-06/0.133, allocations: 3.938 kB / 0.5598 GB, free: 2.574 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.001772/0.1348, allocations: 0.5677 MB / 0.5603 GB, free: 2.008 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.737e-05/0.1349, allocations: 3.938 kB / 0.5603 GB, free: 2.004 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.765e-05/0.1349, allocations: 0 / 0.5603 GB, free: 2.004 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.447e-05/0.1349, allocations: 0 / 0.5603 GB, free: 2.004 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.982e-05/0.1349, allocations: 8 kB / 0.5604 GB, free: 1.996 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.851e-06/0.1349, allocations: 0 / 0.5604 GB, free: 1.996 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001413/0.1363, allocations: 0.737 MB / 0.5611 GB, free: 1.258 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.636e-06/0.1363, allocations: 3.938 kB / 0.5611 GB, free: 1.254 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.923e-05/0.1364, allocations: 0 / 0.5611 GB, free: 1.254 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009009/0.1373, allocations: 462.8 kB / 0.5615 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1373, allocations: 0 / 0.5615 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1373, allocations: 0 / 0.5615 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.1373, allocations: 0 / 0.5615 GB, free: 0.8008 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.0005736/0.1379, allocations: 440.2 kB / 0.5619 GB, free: 324 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.1379, allocations: 8.031 kB / 0.5619 GB, free: 316 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.287e-05/0.1379, allocations: 4.875 kB / 0.562 GB, free: 312 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001253/0.1381, allocations: 164.4 kB / 0.5621 GB, free: 108 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.1381, allocations: 4.312 kB / 0.5621 GB, free: 104 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.534e-06/0.1381, allocations: 8.375 kB / 0.5621 GB, free: 96 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.356e-05/0.1382, allocations: 33.95 kB / 0.5622 GB, free: 56 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.1382, allocations: 0 / 0.5622 GB, free: 56 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.897e-06/0.1382, allocations: 0 / 0.5622 GB, free: 56 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.1382, allocations: 4 kB / 0.5622 GB, free: 52 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.854e-05/0.1382, allocations: 0 / 0.5622 GB, free: 52 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001818/0.1384, allocations: 149.7 kB / 0.5623 GB, free: 15.86 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.895e-05/0.1384, allocations: 22.59 kB / 0.5623 GB, free: 15.82 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.55e-05/0.1385, allocations: 8.859 kB / 0.5623 GB, free: 15.81 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.998e-06/0.1385, allocations: 3.938 kB / 0.5623 GB, free: 15.81 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.1e-05/0.1385, allocations: 60.2 kB / 0.5624 GB, free: 15.73 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.1385, allocations: 0 / 0.5624 GB, free: 15.73 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001876/0.1387, allocations: 67.45 kB / 0.5625 GB, free: 15.66 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.953e-05/0.1388, allocations: 81.11 kB / 0.5625 GB, free: 15.56 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.751e-05/0.1388, allocations: 93.81 kB / 0.5626 GB, free: 15.46 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.796e-05/0.1388, allocations: 29.83 kB / 0.5627 GB, free: 15.42 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.222e-05/0.1389, allocations: 80.14 kB / 0.5627 GB, free: 15.34 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.979e-05/0.1389, allocations: 0 / 0.5627 GB, free: 15.34 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.325e-05/0.1389, allocations: 13.72 kB / 0.5627 GB, free: 15.32 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.1391, allocations: 310.8 kB / 0.563 GB, free: 15.01 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.008e-05/0.1391, allocations: 0 / 0.563 GB, free: 15.01 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.59e-05/0.1391, allocations: 15.92 kB / 0.5631 GB, free: 14.99 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.379e-05/0.1392, allocations: 64.33 kB / 0.5631 GB, free: 14.91 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1392, allocations: 0 / 0.5631 GB, free: 14.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.931e-05/0.1393, allocations: 59.41 kB / 0.5632 GB, free: 14.84 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.81e-05/0.1393, allocations: 33.64 kB / 0.5632 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.1393, allocations: 4 kB / 0.5632 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.1393, allocations: 3.984 kB / 0.5632 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.61e-07/0.1393, allocations: 0 / 0.5632 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.1393, allocations: 0 / 0.5632 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.685e-05/0.1393, allocations: 0 / 0.5632 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-06/0.1393, allocations: 0 / 0.5632 GB, free: 14.8 MB / 430.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 0.0001101/0.1395, allocations: 143.6 kB / 0.5633 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.031e-05/0.1395, allocations: 7.875 kB / 0.5634 GB, free: 14.63 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.117e-06/0.1395, allocations: 7.062 kB / 0.5634 GB, free: 14.63 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/0.1395, allocations: 0 / 0.5634 GB, free: 14.63 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1395, allocations: 0 / 0.5634 GB, free: 14.63 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.1395, allocations: 4 kB / 0.5634 GB, free: 14.62 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000121/0.1396, allocations: 149.7 kB / 0.5635 GB, free: 14.43 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1396, allocations: 0 / 0.5635 GB, free: 14.43 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.82e-07/0.1396, allocations: 0 / 0.5635 GB, free: 14.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.1396, allocations: 7.875 kB / 0.5635 GB, free: 14.42 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-06/0.1396, allocations: 4 kB / 0.5635 GB, free: 14.42 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1396, allocations: 4 kB / 0.5635 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1396, allocations: 0 / 0.5635 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001064/0.1397, allocations: 86.83 kB / 0.5636 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.13e-05/0.1398, allocations: 81.11 kB / 0.5637 GB, free: 14.21 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.374e-05/0.1398, allocations: 3.938 kB / 0.5637 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.929e-06/0.1398, allocations: 0 / 0.5637 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.051e-05/0.1398, allocations: 4.031 kB / 0.5637 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-06/0.1398, allocations: 0 / 0.5637 GB, free: 14.2 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.817e-05/0.1399, allocations: 83.27 kB / 0.5638 GB, free: 14.12 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1399, allocations: 0 / 0.5638 GB, free: 14.12 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005474/0.1404, allocations: 167.3 kB / 0.5639 GB, free: 13.95 MB / 430.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.0008916/0.1413, allocations: 348.6 kB / 0.5643 GB, free: 13.61 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001109/0.1414, allocations: 59.41 kB / 0.5643 GB, free: 13.54 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1414, allocations: 0 / 0.5643 GB, free: 13.54 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.002e-05/0.1414, allocations: 55.41 kB / 0.5644 GB, free: 13.47 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001295/0.1416, allocations: 9.859 kB / 0.5644 GB, free: 13.46 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002188/0.1418, allocations: 102.8 kB / 0.5645 GB, free: 13.33 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003062/0.1421, allocations: 0.669 MB / 0.5651 GB, free: 12.63 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.647e-05/0.1421, allocations: 11.56 kB / 0.5651 GB, free: 12.62 MB / 430.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1421, allocations: 4 kB / 0.5651 GB, free: 12.62 MB / 430.1 MB Notification: Performance of Templates: time 0.006813/0.1489, allocations: 3.386 MB / 0.5685 GB, free: 9.227 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.258585294010118]