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.001971/0.001971, allocations: 115.5 kB / 18.46 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002459/0.002459, allocations: 208 kB / 19.41 MB, free: 3.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.728/2.728, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3753/0.3753, allocations: 46.1 MB / 345 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002989/0.002989, allocations: 75.88 kB / 482 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5664/0.5694, allocations: 62.44 MB / 0.5317 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002767/0.5722, allocations: 0.5013 MB / 0.5322 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005888/0.5781, allocations: 2.354 MB / 0.5345 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.257e-05/0.5782, allocations: 0 / 0.5345 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.608e-05/0.5783, allocations: 1.375 kB / 0.5345 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.975e-06/0.5783, allocations: 0 / 0.5345 GB, free: 11.37 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.003668/0.582, allocations: 0.5726 MB / 0.535 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.888e-05/0.5821, allocations: 2.25 kB / 0.535 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.864e-05/0.5821, allocations: 1.25 kB / 0.535 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.796e-05/0.5822, allocations: 0 / 0.535 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.594e-05/0.5822, allocations: 9.156 kB / 0.535 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.745e-06/0.5822, allocations: 0 / 0.535 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002203/0.5844, allocations: 0.7049 MB / 0.5357 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.034e-05/0.5845, allocations: 1 kB / 0.5357 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.511e-05/0.5845, allocations: 1 kB / 0.5357 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00149/0.586, allocations: 463.3 kB / 0.5362 GB, free: 10.35 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.586, allocations: 0 / 0.5362 GB, free: 10.35 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.5861, allocations: 1.031 kB / 0.5362 GB, free: 10.35 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.5861, allocations: 0 / 0.5362 GB, free: 10.35 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.0008035/0.5869, allocations: 442.3 kB / 0.5366 GB, free: 9.895 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.612e-05/0.587, allocations: 8.125 kB / 0.5366 GB, free: 9.895 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.323e-05/0.587, allocations: 2.25 kB / 0.5366 GB, free: 9.895 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001242/0.5871, allocations: 160.4 kB / 0.5367 GB, free: 9.699 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.5872, allocations: 5.562 kB / 0.5367 GB, free: 9.695 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.026e-05/0.5872, allocations: 384 / 0.5367 GB, free: 9.695 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001086/0.5873, allocations: 36.56 kB / 0.5368 GB, free: 9.656 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.5873, allocations: 0 / 0.5368 GB, free: 9.656 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.119e-05/0.5874, allocations: 5 kB / 0.5368 GB, free: 9.652 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.5874, allocations: 0 / 0.5368 GB, free: 9.652 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.851e-05/0.5874, allocations: 5.281 kB / 0.5368 GB, free: 9.648 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001733/0.5876, allocations: 147.1 kB / 0.5369 GB, free: 9.457 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.533e-05/0.5877, allocations: 20.77 kB / 0.537 GB, free: 9.43 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.807e-05/0.5877, allocations: 13.97 kB / 0.537 GB, free: 9.414 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.152e-05/0.5877, allocations: 1.094 kB / 0.537 GB, free: 9.414 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.939e-05/0.5878, allocations: 61.23 kB / 0.537 GB, free: 9.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.954e-06/0.5878, allocations: 0 / 0.537 GB, free: 9.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002344/0.5881, allocations: 66.94 kB / 0.5371 GB, free: 9.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.72e-05/0.5881, allocations: 82.28 kB / 0.5372 GB, free: 9.172 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.451e-05/0.5882, allocations: 97.94 kB / 0.5373 GB, free: 9.066 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.5882, allocations: 27.08 kB / 0.5373 GB, free: 9.035 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.862e-05/0.5883, allocations: 80.14 kB / 0.5374 GB, free: 8.953 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.191e-05/0.5883, allocations: 0 / 0.5374 GB, free: 8.953 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.269e-05/0.5884, allocations: 12.44 kB / 0.5374 GB, free: 8.938 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.5885, allocations: 316.5 kB / 0.5377 GB, free: 8.621 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.585e-05/0.5885, allocations: 0 / 0.5377 GB, free: 8.621 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.968e-06/0.5886, allocations: 1.531 kB / 0.5377 GB, free: 8.621 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.046e-05/0.5886, allocations: 66.8 kB / 0.5377 GB, free: 8.543 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.5887, allocations: 1.344 kB / 0.5377 GB, free: 8.543 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001194/0.5888, allocations: 66.08 kB / 0.5378 GB, free: 8.473 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.638e-05/0.5888, allocations: 34.98 kB / 0.5378 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.5889, allocations: 7.938 kB / 0.5378 GB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/0.5889, allocations: 5.297 kB / 0.5379 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.192e-06/0.5889, allocations: 0 / 0.5379 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.5889, allocations: 0 / 0.5379 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.316e-05/0.589, allocations: 1.156 kB / 0.5379 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.177e-06/0.589, allocations: 1.094 kB / 0.5379 GB, free: 8.426 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 0.0001172/0.5891, allocations: 141.7 kB / 0.538 GB, free: 8.273 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.434e-05/0.5891, allocations: 1.062 kB / 0.538 GB, free: 8.273 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.715e-05/0.5892, allocations: 7.062 kB / 0.538 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.5892, allocations: 1.219 kB / 0.538 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.5892, allocations: 0 / 0.538 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.545e-05/0.5892, allocations: 77.11 kB / 0.5381 GB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.169e-05/0.5893, allocations: 1.406 kB / 0.5381 GB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.632e-05/0.5893, allocations: 5.125 kB / 0.5381 GB, free: 8.172 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.072e-05/0.5893, allocations: 4 kB / 0.5381 GB, free: 8.168 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001809/0.5895, allocations: 199.7 kB / 0.5383 GB, free: 7.957 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002234/0.5898, allocations: 239.9 kB / 0.5385 GB, free: 7.711 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.845e-05/0.5898, allocations: 1.688 kB / 0.5385 GB, free: 7.711 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.612e-05/0.5899, allocations: 76.44 kB / 0.5386 GB, free: 7.637 MB / 398.1 MB Notification: Performance of Backend: time 6.21e-07/0.5899, allocations: 64 / 0.5386 GB, free: 7.637 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001998/0.5919, allocations: 384.6 kB / 0.5389 GB, free: 7.391 MB / 398.1 MB Notification: Performance of SimCode: time 0.0004823/0.5924, allocations: 0.5865 MB / 0.5395 GB, free: 6.75 MB / 398.1 MB Notification: Performance of Templates: time 0.01314/0.6056, allocations: 3.615 MB / 0.543 GB, free: 4.902 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