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.001961/0.00196, allocations: 119.3 kB / 18.46 MB, free: 4.613 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.001906/0.001906, allocations: 205.8 kB / 21.4 MB, free: 1.668 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.514/1.514, allocations: 227.4 MB / 251.6 MB, free: 100 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.2587/0.2587, allocations: 46.16 MB / 351.1 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.002259/0.002259, allocations: 81.62 kB / 490.2 MB, free: 28.11 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.1407, allocations: 62.44 MB / 0.5397 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001692/0.1424, allocations: 0.5061 MB / 0.5402 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003517/0.146, allocations: 2.363 MB / 0.5425 GB, free: 1.352 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.299e-05/0.146, allocations: 0 / 0.5425 GB, free: 1.352 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.966e-05/0.146, allocations: 4 kB / 0.5425 GB, free: 1.348 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.711e-06/0.1461, allocations: 0 / 0.5425 GB, free: 1.348 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.001751/0.1478, allocations: 0.5749 MB / 0.543 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.124e-05/0.1479, allocations: 0 / 0.543 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.66e-05/0.1479, allocations: 0 / 0.543 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.902e-05/0.148, allocations: 7.984 kB / 0.543 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.677e-05/0.148, allocations: 3.938 kB / 0.5431 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.233e-06/0.148, allocations: 0 / 0.5431 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001221/0.1492, allocations: 0.7097 MB / 0.5437 GB, free: 52 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.175e-05/0.1493, allocations: 0 / 0.5437 GB, free: 52 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.159e-05/0.1493, allocations: 0 / 0.5437 GB, free: 52 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007467/0.15, allocations: 454.8 kB / 0.5442 GB, free: 15.61 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.15, allocations: 0 / 0.5442 GB, free: 15.61 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1501, allocations: 0 / 0.5442 GB, free: 15.61 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.623e-06/0.1501, allocations: 0 / 0.5442 GB, free: 15.61 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.0005734/0.1506, allocations: 448.2 kB / 0.5446 GB, free: 15.11 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.1507, allocations: 8.031 kB / 0.5446 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.44e-05/0.1507, allocations: 4.875 kB / 0.5446 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001296/0.1509, allocations: 160.4 kB / 0.5448 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.1509, allocations: 8.312 kB / 0.5448 GB, free: 14.9 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.419e-05/0.1509, allocations: 384 / 0.5448 GB, free: 14.9 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001058/0.151, allocations: 30.02 kB / 0.5448 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.151, allocations: 3.938 kB / 0.5448 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.738e-06/0.1511, allocations: 4 kB / 0.5448 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.1511, allocations: 4 kB / 0.5448 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.709e-05/0.1511, allocations: 3.984 kB / 0.5448 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001759/0.1513, allocations: 145.7 kB / 0.545 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.657e-05/0.1513, allocations: 22.55 kB / 0.545 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.766e-05/0.1514, allocations: 4.859 kB / 0.545 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.769e-06/0.1514, allocations: 0 / 0.545 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.626e-05/0.1514, allocations: 64.27 kB / 0.5451 GB, free: 14.54 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.212e-06/0.1514, allocations: 4 kB / 0.5451 GB, free: 14.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.000227/0.1517, allocations: 67.39 kB / 0.5451 GB, free: 14.46 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.48e-05/0.1517, allocations: 77.11 kB / 0.5452 GB, free: 14.36 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.616e-05/0.1518, allocations: 93.81 kB / 0.5453 GB, free: 14.26 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.764e-05/0.1518, allocations: 25.7 kB / 0.5453 GB, free: 14.23 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.794e-05/0.1519, allocations: 80.14 kB / 0.5454 GB, free: 14.15 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.713e-05/0.1519, allocations: 3.938 kB / 0.5454 GB, free: 14.14 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.263e-05/0.152, allocations: 13.72 kB / 0.5454 GB, free: 14.12 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.1521, allocations: 326.9 kB / 0.5457 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.054e-05/0.1521, allocations: 0 / 0.5457 GB, free: 13.8 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.616e-06/0.1521, allocations: 4 kB / 0.5457 GB, free: 13.79 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.031e-05/0.1522, allocations: 56.27 kB / 0.5458 GB, free: 13.72 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.1522, allocations: 0 / 0.5458 GB, free: 13.72 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.805e-05/0.1523, allocations: 59.41 kB / 0.5458 GB, free: 13.65 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.268e-05/0.1523, allocations: 41.62 kB / 0.5459 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.1524, allocations: 0 / 0.5459 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.1524, allocations: 4.094 kB / 0.5459 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.343e-06/0.1524, allocations: 0 / 0.5459 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.1524, allocations: 0 / 0.5459 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.089e-05/0.1524, allocations: 0 / 0.5459 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.763e-06/0.1524, allocations: 3.938 kB / 0.5459 GB, free: 13.6 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 0.0001129/0.1526, allocations: 139.5 kB / 0.546 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.969e-06/0.1526, allocations: 3.938 kB / 0.546 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.118e-05/0.1526, allocations: 7.109 kB / 0.546 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.1526, allocations: 4 kB / 0.546 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.1526, allocations: 7.984 kB / 0.546 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.1526, allocations: 0 / 0.546 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001274/0.1528, allocations: 145.6 kB / 0.5462 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.1528, allocations: 3.938 kB / 0.5462 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.765e-06/0.1528, allocations: 4 kB / 0.5462 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.179e-06/0.1528, allocations: 3.938 kB / 0.5462 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.1528, allocations: 4 kB / 0.5462 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.1528, allocations: 0 / 0.5462 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1528, allocations: 0 / 0.5462 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001184/0.1529, allocations: 94.83 kB / 0.5463 GB, free: 13.1 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.371e-05/0.153, allocations: 77.11 kB / 0.5463 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.369e-05/0.153, allocations: 3.938 kB / 0.5463 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.086e-05/0.153, allocations: 3.984 kB / 0.5464 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.214e-05/0.1531, allocations: 3.938 kB / 0.5464 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.242e-06/0.1531, allocations: 4 kB / 0.5464 GB, free: 12.99 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.637e-05/0.1531, allocations: 79.28 kB / 0.5464 GB, free: 12.91 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1531, allocations: 0 / 0.5464 GB, free: 12.91 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004942/0.1536, allocations: 163.4 kB / 0.5466 GB, free: 12.75 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.0008613/0.1545, allocations: 338.6 kB / 0.5469 GB, free: 12.42 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001347/0.1546, allocations: 59.41 kB / 0.547 GB, free: 12.35 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1546, allocations: 0 / 0.547 GB, free: 12.35 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.946e-05/0.1547, allocations: 63.45 kB / 0.547 GB, free: 12.27 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001379/0.1548, allocations: 4 kB / 0.547 GB, free: 12.27 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001929/0.155, allocations: 77.06 kB / 0.5471 GB, free: 12.17 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003084/0.1554, allocations: 0.669 MB / 0.5478 GB, free: 11.47 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.805e-06/0.1554, allocations: 0 / 0.5478 GB, free: 11.47 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.854e-05/0.1554, allocations: 7.438 kB / 0.5478 GB, free: 11.46 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1554, allocations: 7.875 kB / 0.5478 GB, free: 11.46 MB / 414.1 MB Notification: Performance of Templates: time 0.007952/0.1634, allocations: 3.601 MB / 0.5513 GB, free: 7.855 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 5.232960102148354]