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.001092/0.001092, allocations: 114.3 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001933/0.001933, allocations: 208 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, 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.2164/0.2164, allocations: 46.1 MB / 344.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 79.88 kB / 482 MB, free: 4.043 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3241/0.3254, allocations: 62.43 MB / 0.5316 GB, free: 13.57 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001607/0.3271, allocations: 0.5057 MB / 0.5321 GB, free: 13.19 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003147/0.3303, allocations: 2.351 MB / 0.5344 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.813e-05/0.3303, allocations: 1.375 kB / 0.5344 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.227e-05/0.3303, allocations: 0 / 0.5344 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.222e-05/0.3304, allocations: 0 / 0.5344 GB, free: 11.34 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.001573/0.3319, allocations: 0.5689 MB / 0.535 GB, free: 11 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.799e-05/0.332, allocations: 5.125 kB / 0.535 GB, free: 11 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.928e-05/0.332, allocations: 5.172 kB / 0.535 GB, free: 11 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.636e-05/0.3321, allocations: 1.188 kB / 0.535 GB, free: 11 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.898e-05/0.3321, allocations: 4.906 kB / 0.535 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.061e-06/0.3321, allocations: 0 / 0.535 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001147/0.3333, allocations: 0.7086 MB / 0.5357 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.324e-06/0.3333, allocations: 1.312 kB / 0.5357 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.928e-05/0.3333, allocations: 5.25 kB / 0.5357 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006283/0.3339, allocations: 459.1 kB / 0.5361 GB, free: 10.32 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3339, allocations: 0 / 0.5361 GB, free: 10.32 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.334, allocations: 0 / 0.5361 GB, free: 10.32 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.334, allocations: 0 / 0.5361 GB, free: 10.32 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.0004338/0.3344, allocations: 431.2 kB / 0.5366 GB, free: 9.871 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.3344, allocations: 9.719 kB / 0.5366 GB, free: 9.871 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.005e-05/0.3345, allocations: 5.969 kB / 0.5366 GB, free: 9.867 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.14e-05/0.3346, allocations: 160.4 kB / 0.5367 GB, free: 9.672 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.3346, allocations: 384 / 0.5367 GB, free: 9.672 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.096e-05/0.3346, allocations: 1.469 kB / 0.5367 GB, free: 9.672 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.337e-05/0.3347, allocations: 36.25 kB / 0.5368 GB, free: 9.633 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.3347, allocations: 5.094 kB / 0.5368 GB, free: 9.629 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.3347, allocations: 3.938 kB / 0.5368 GB, free: 9.625 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.3347, allocations: 0 / 0.5368 GB, free: 9.625 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.762e-05/0.3348, allocations: 2.688 kB / 0.5368 GB, free: 9.625 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000119/0.3349, allocations: 149.7 kB / 0.5369 GB, free: 9.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.124e-05/0.3349, allocations: 17.02 kB / 0.5369 GB, free: 9.406 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.253e-05/0.335, allocations: 10.2 kB / 0.5369 GB, free: 9.395 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.564e-06/0.335, allocations: 0 / 0.5369 GB, free: 9.395 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.506e-05/0.335, allocations: 69.7 kB / 0.537 GB, free: 9.312 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 3.336e-06/0.335, allocations: 0 / 0.537 GB, free: 9.312 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001609/0.3352, allocations: 71.66 kB / 0.5371 GB, free: 9.238 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.839e-05/0.3353, allocations: 78.42 kB / 0.5372 GB, free: 9.145 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.36e-05/0.3353, allocations: 89.86 kB / 0.5372 GB, free: 9.047 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.031e-05/0.3353, allocations: 25.7 kB / 0.5373 GB, free: 9.016 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.445e-05/0.3353, allocations: 81.36 kB / 0.5373 GB, free: 8.934 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.803e-05/0.3354, allocations: 0 / 0.5373 GB, free: 8.934 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.367e-05/0.3354, allocations: 19.83 kB / 0.5374 GB, free: 8.91 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.3355, allocations: 311.9 kB / 0.5377 GB, free: 8.598 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.208e-05/0.3355, allocations: 5.344 kB / 0.5377 GB, free: 8.594 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.1e-06/0.3355, allocations: 1.219 kB / 0.5377 GB, free: 8.594 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.416e-05/0.3356, allocations: 62.83 kB / 0.5377 GB, free: 8.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3356, allocations: 1.469 kB / 0.5377 GB, free: 8.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.483e-05/0.3357, allocations: 70.08 kB / 0.5378 GB, free: 8.445 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.423e-05/0.3357, allocations: 34.55 kB / 0.5378 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.3357, allocations: 1.062 kB / 0.5378 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.3357, allocations: 0 / 0.5378 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.764e-06/0.3357, allocations: 1.625 kB / 0.5378 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.3358, allocations: 4.094 kB / 0.5378 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.532e-05/0.3358, allocations: 3.938 kB / 0.5378 GB, free: 8.402 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.263e-06/0.3358, allocations: 1.406 kB / 0.5378 GB, free: 8.402 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 7.439e-05/0.3359, allocations: 134 kB / 0.538 GB, free: 8.258 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.212e-05/0.3359, allocations: 7.844 kB / 0.538 GB, free: 8.25 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.658e-06/0.3359, allocations: 8.422 kB / 0.538 GB, free: 8.246 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-06/0.3359, allocations: 0 / 0.538 GB, free: 8.246 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3359, allocations: 0 / 0.538 GB, free: 8.246 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.3359, allocations: 0.9062 kB / 0.538 GB, free: 8.246 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.906e-05/0.336, allocations: 146.7 kB / 0.5381 GB, free: 8.055 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.336, allocations: 4.875 kB / 0.5381 GB, free: 8.051 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4e-07/0.336, allocations: 0 / 0.5381 GB, free: 8.051 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.336, allocations: 4.969 kB / 0.5381 GB, free: 8.047 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.535e-06/0.3361, allocations: 7.922 kB / 0.5381 GB, free: 8.039 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.3361, allocations: 1.031 kB / 0.5381 GB, free: 8.039 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3361, allocations: 0 / 0.5381 GB, free: 8.039 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.323e-05/0.3362, allocations: 90.06 kB / 0.5382 GB, free: 7.938 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.548e-05/0.3362, allocations: 82.06 kB / 0.5383 GB, free: 7.84 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.504e-05/0.3362, allocations: 9.219 kB / 0.5383 GB, free: 7.832 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.516e-06/0.3362, allocations: 0 / 0.5383 GB, free: 7.832 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.417e-05/0.3363, allocations: 1.062 kB / 0.5383 GB, free: 7.832 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.048e-06/0.3363, allocations: 1.031 kB / 0.5383 GB, free: 7.832 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.81e-05/0.3363, allocations: 75.28 kB / 0.5384 GB, free: 7.758 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3363, allocations: 0.6562 kB / 0.5384 GB, free: 7.758 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004829/0.3368, allocations: 160.4 kB / 0.5385 GB, free: 7.707 MB / 398.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.0007737/0.3376, allocations: 345.2 kB / 0.5389 GB, free: 7.508 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000114/0.3377, allocations: 68.64 kB / 0.5389 GB, free: 7.434 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3377, allocations: 3.938 kB / 0.5389 GB, free: 7.43 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.973e-05/0.3378, allocations: 54.66 kB / 0.539 GB, free: 7.367 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001272/0.3379, allocations: 8.719 kB / 0.539 GB, free: 7.363 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001967/0.3381, allocations: 101 kB / 0.5391 GB, free: 7.238 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000225/0.3383, allocations: 0.6739 MB / 0.5397 GB, free: 6.539 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.217e-05/0.3383, allocations: 9.469 kB / 0.5398 GB, free: 6.531 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3384, allocations: 0 / 0.5398 GB, free: 6.531 MB / 398.1 MB Notification: Performance of Templates: time 0.006351/0.3447, allocations: 3.374 MB / 0.5431 GB, free: 4.863 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