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.001045/0.001045, allocations: 112.8 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001185/0.001185, allocations: 206.8 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2031/0.2031, allocations: 46.11 MB / 345 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001565/0.001565, allocations: 75.88 kB / 482 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.3276, allocations: 62.44 MB / 0.5317 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001507/0.3291, allocations: 0.4999 MB / 0.5321 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003074/0.3322, allocations: 2.359 MB / 0.5344 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.988e-05/0.3322, allocations: 1.375 kB / 0.5345 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.352e-05/0.3323, allocations: 3.938 kB / 0.5345 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.941e-06/0.3323, allocations: 0 / 0.5345 GB, free: 11.38 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.001438/0.3337, allocations: 0.5653 MB / 0.535 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.073e-05/0.3338, allocations: 5.719 kB / 0.535 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.41e-05/0.3338, allocations: 5.031 kB / 0.535 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.52e-05/0.3338, allocations: 1.375 kB / 0.535 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.74e-05/0.3339, allocations: 3.938 kB / 0.535 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.192e-06/0.3339, allocations: 1.344 kB / 0.535 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001133/0.335, allocations: 0.6998 MB / 0.5357 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.832e-06/0.335, allocations: 0.9375 kB / 0.5357 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.892e-05/0.3351, allocations: 5.234 kB / 0.5357 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006366/0.3357, allocations: 459.9 kB / 0.5362 GB, free: 10.37 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.3357, allocations: 4 kB / 0.5362 GB, free: 10.37 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3357, allocations: 0 / 0.5362 GB, free: 10.37 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.3357, allocations: 0 / 0.5362 GB, free: 10.37 MB / 398.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.0004934/0.3362, allocations: 431 kB / 0.5366 GB, free: 9.922 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.3363, allocations: 8.969 kB / 0.5366 GB, free: 9.922 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.309e-05/0.3363, allocations: 0.9375 kB / 0.5366 GB, free: 9.922 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001009/0.3364, allocations: 165.7 kB / 0.5367 GB, free: 9.723 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.3e-05/0.3364, allocations: 384 / 0.5367 GB, free: 9.723 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.536e-06/0.3365, allocations: 1.812 kB / 0.5367 GB, free: 9.723 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001006/0.3366, allocations: 40.38 kB / 0.5368 GB, free: 9.68 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.3366, allocations: 0 / 0.5368 GB, free: 9.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.937e-06/0.3366, allocations: 3.938 kB / 0.5368 GB, free: 9.676 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.3366, allocations: 0.9062 kB / 0.5368 GB, free: 9.676 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.729e-05/0.3366, allocations: 1.219 kB / 0.5368 GB, free: 9.676 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001269/0.3368, allocations: 150.7 kB / 0.5369 GB, free: 9.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.782e-05/0.3368, allocations: 20.75 kB / 0.5369 GB, free: 9.453 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.742e-05/0.3368, allocations: 9.953 kB / 0.537 GB, free: 9.441 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.906e-06/0.3368, allocations: 1.125 kB / 0.537 GB, free: 9.441 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.125e-05/0.3369, allocations: 65.17 kB / 0.537 GB, free: 9.363 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.3369, allocations: 0 / 0.537 GB, free: 9.363 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000187/0.3371, allocations: 66.95 kB / 0.5371 GB, free: 9.293 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.536e-05/0.3372, allocations: 90.28 kB / 0.5372 GB, free: 9.188 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.428e-05/0.3372, allocations: 89.86 kB / 0.5373 GB, free: 9.09 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.3372, allocations: 26.92 kB / 0.5373 GB, free: 9.059 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.808e-05/0.3373, allocations: 80.14 kB / 0.5374 GB, free: 8.977 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.501e-05/0.3373, allocations: 0.9375 kB / 0.5374 GB, free: 8.977 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.809e-05/0.3373, allocations: 12 kB / 0.5374 GB, free: 8.961 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.811e-05/0.3374, allocations: 310.8 kB / 0.5377 GB, free: 8.648 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.237e-06/0.3374, allocations: 0.9375 kB / 0.5377 GB, free: 8.648 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.651e-06/0.3374, allocations: 6.188 kB / 0.5377 GB, free: 8.645 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.957e-05/0.3375, allocations: 67.48 kB / 0.5377 GB, free: 8.566 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3375, allocations: 0 / 0.5377 GB, free: 8.566 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.608e-05/0.3376, allocations: 62.11 kB / 0.5378 GB, free: 8.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.482e-05/0.3376, allocations: 32.3 kB / 0.5378 GB, free: 8.469 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.3376, allocations: 3.938 kB / 0.5378 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.3376, allocations: 3.984 kB / 0.5378 GB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.513e-06/0.3377, allocations: 1.188 kB / 0.5378 GB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.365e-06/0.3377, allocations: 96 / 0.5378 GB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.49e-05/0.3377, allocations: 5.031 kB / 0.5378 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.931e-06/0.3377, allocations: 0 / 0.5378 GB, free: 8.457 MB / 398.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.661e-05/0.3378, allocations: 142 kB / 0.538 GB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.878e-06/0.3378, allocations: 5.156 kB / 0.538 GB, free: 8.301 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.247e-06/0.3378, allocations: 7.062 kB / 0.538 GB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.3378, allocations: 1.094 kB / 0.538 GB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.3378, allocations: 0 / 0.538 GB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.174e-05/0.3379, allocations: 78.27 kB / 0.5381 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.567e-05/0.3379, allocations: 1.125 kB / 0.5381 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.885e-06/0.3379, allocations: 7.938 kB / 0.5381 GB, free: 8.195 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.373e-05/0.3379, allocations: 8.969 kB / 0.5381 GB, free: 8.188 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001214/0.338, allocations: 195 kB / 0.5383 GB, free: 7.98 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000148/0.3382, allocations: 240.6 kB / 0.5385 GB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.17e-05/0.3382, allocations: 6.156 kB / 0.5385 GB, free: 7.73 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.287e-05/0.3383, allocations: 79.34 kB / 0.5386 GB, free: 7.652 MB / 398.1 MB Notification: Performance of Backend: time 4.5e-07/0.3383, allocations: 0 / 0.5386 GB, free: 7.652 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001052/0.3393, allocations: 379 kB / 0.5389 GB, free: 7.418 MB / 398.1 MB Notification: Performance of SimCode: time 0.0003529/0.3397, allocations: 0.5748 MB / 0.5395 GB, free: 6.789 MB / 398.1 MB Notification: Performance of Templates: time 0.006962/0.3467, allocations: 3.622 MB / 0.543 GB, free: 4.934 MB / 398.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 -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