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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00105/0.00105, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001063/0.001063, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2084/0.2084, allocations: 46.11 MB / 344.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 67.88 kB / 419 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1329, allocations: 62.44 MB / 481.5 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001932/0.1349, allocations: 0.4949 MB / 482 MB, free: 4.031 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003473/0.1384, allocations: 2.365 MB / 484.3 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.654e-05/0.1384, allocations: 0 / 484.3 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.88e-05/0.1385, allocations: 0 / 484.3 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.771e-06/0.1385, allocations: 0 / 484.3 MB, free: 1.645 MB / 350.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.001719/0.1402, allocations: 0.5762 MB / 484.9 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.651e-05/0.1403, allocations: 0 / 484.9 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.036e-05/0.1403, allocations: 4 kB / 484.9 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.895e-05/0.1404, allocations: 3.938 kB / 484.9 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.892e-05/0.1404, allocations: 0 / 484.9 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.753e-06/0.1404, allocations: 0 / 484.9 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001166/0.1416, allocations: 0.7097 MB / 485.6 MB, free: 360 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.716e-06/0.1416, allocations: 0 / 485.6 MB, free: 360 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.249e-05/0.1416, allocations: 0 / 485.6 MB, free: 360 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006594/0.1423, allocations: 459.1 kB / 486.1 MB, free: 15.9 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1423, allocations: 4 kB / 486.1 MB, free: 15.9 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1423, allocations: 0 / 486.1 MB, free: 15.9 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.1423, allocations: 0 / 486.1 MB, free: 15.9 MB / 366.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.000467/0.1428, allocations: 433.2 kB / 486.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.1428, allocations: 12.03 kB / 486.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.566e-05/0.1429, allocations: 0.9375 kB / 486.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001083/0.143, allocations: 160.4 kB / 486.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.39e-05/0.143, allocations: 4.312 kB / 486.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.28e-05/0.143, allocations: 384 / 486.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.732e-05/0.1431, allocations: 38.02 kB / 486.7 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.1432, allocations: 0 / 486.7 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.1432, allocations: 3.984 kB / 486.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.1432, allocations: 0 / 486.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2e-05/0.1432, allocations: 7.938 kB / 486.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001383/0.1433, allocations: 149.6 kB / 486.9 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.848e-05/0.1434, allocations: 14.58 kB / 486.9 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.542e-05/0.1434, allocations: 8.953 kB / 486.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.546e-06/0.1434, allocations: 0 / 486.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.38e-05/0.1435, allocations: 64.2 kB / 486.9 MB, free: 14.85 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 3.015e-06/0.1435, allocations: 7.984 kB / 487 MB, free: 14.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002066/0.1437, allocations: 67.33 kB / 487 MB, free: 14.76 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.181e-05/0.1438, allocations: 77.11 kB / 487.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.86e-05/0.1439, allocations: 89.86 kB / 487.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.59e-05/0.1439, allocations: 25.7 kB / 487.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.72e-05/0.1439, allocations: 84.12 kB / 487.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.293e-05/0.144, allocations: 8 kB / 487.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.757e-05/0.144, allocations: 13.7 kB / 487.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.1441, allocations: 315 kB / 487.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.538e-05/0.1442, allocations: 4 kB / 487.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.36e-06/0.1442, allocations: 0 / 487.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.348e-05/0.1442, allocations: 60.27 kB / 487.7 MB, free: 14.03 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1442, allocations: 0 / 487.7 MB, free: 14.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.315e-05/0.1443, allocations: 71.33 kB / 487.7 MB, free: 13.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.714e-05/0.1444, allocations: 33.64 kB / 487.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.1444, allocations: 0 / 487.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.1444, allocations: 4.094 kB / 487.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.372e-06/0.1444, allocations: 0 / 487.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.1444, allocations: 0 / 487.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.938e-05/0.1444, allocations: 4 kB / 487.8 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.1445, allocations: 0 / 487.8 MB, free: 13.9 MB / 366.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 8.376e-05/0.1445, allocations: 131.5 kB / 487.9 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.218e-05/0.1446, allocations: 7.938 kB / 487.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.197e-05/0.1446, allocations: 7.109 kB / 487.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.1446, allocations: 3.938 kB / 487.9 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.1446, allocations: 4 kB / 487.9 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1446, allocations: 0 / 487.9 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.802e-05/0.1447, allocations: 145.7 kB / 488.1 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.1447, allocations: 4 kB / 488.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.054e-06/0.1447, allocations: 4 kB / 488.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.1447, allocations: 3.938 kB / 488.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.193e-06/0.1447, allocations: 0 / 488.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.275e-06/0.1447, allocations: 3.984 kB / 488.1 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.1447, allocations: 0 / 488.1 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001014/0.1449, allocations: 98.69 kB / 488.2 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.701e-05/0.1449, allocations: 77.11 kB / 488.3 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.768e-05/0.1449, allocations: 7.922 kB / 488.3 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.061e-05/0.1449, allocations: 7.938 kB / 488.3 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.795e-05/0.145, allocations: 0 / 488.3 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-06/0.145, allocations: 0 / 488.3 MB, free: 13.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.188e-05/0.145, allocations: 75.28 kB / 488.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.145, allocations: 0 / 488.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004184/0.1454, allocations: 159.9 kB / 488.5 MB, free: 13.07 MB / 366.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.0007557/0.1462, allocations: 341.3 kB / 488.8 MB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.992e-05/0.1463, allocations: 63.39 kB / 488.9 MB, free: 12.65 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1463, allocations: 0 / 488.9 MB, free: 12.65 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.175e-05/0.1464, allocations: 63.41 kB / 489 MB, free: 12.58 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001261/0.1465, allocations: 5.062 kB / 489 MB, free: 12.58 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00018/0.1467, allocations: 80.94 kB / 489.1 MB, free: 12.47 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000238/0.1469, allocations: 0.6768 MB / 489.7 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.661e-06/0.1469, allocations: 0 / 489.7 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.066e-05/0.147, allocations: 7.438 kB / 489.7 MB, free: 11.77 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.147, allocations: 0 / 489.7 MB, free: 11.77 MB / 366.1 MB Notification: Performance of Templates: time 0.006862/0.1538, allocations: 3.59 MB / 493.3 MB, free: 8.176 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (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 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches