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.001214/0.001214, allocations: 116.4 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001119/0.001119, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2304/0.2304, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 75.88 kB / 481.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4931/0.4945, allocations: 62.43 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002039/0.4966, allocations: 0.5081 MB / 0.5315 GB, free: 13.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004078/0.5007, allocations: 2.356 MB / 0.5338 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.197e-05/0.5007, allocations: 0 / 0.5338 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.392e-05/0.5008, allocations: 0 / 0.5338 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.833e-06/0.5008, allocations: 1.406 kB / 0.5338 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.001882/0.5027, allocations: 0.5714 MB / 0.5343 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.986e-05/0.5027, allocations: 2.75 kB / 0.5343 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.619e-05/0.5028, allocations: 0 / 0.5343 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.626e-05/0.5028, allocations: 1.375 kB / 0.5343 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.444e-05/0.5029, allocations: 5.312 kB / 0.5343 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.652e-06/0.5029, allocations: 4 kB / 0.5343 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001287/0.5042, allocations: 0.7003 MB / 0.535 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.016e-05/0.5042, allocations: 1.156 kB / 0.535 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.602e-05/0.5042, allocations: 13.02 kB / 0.535 GB, free: 10.63 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007558/0.505, allocations: 458.6 kB / 0.5355 GB, free: 10.36 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.505, allocations: 1.125 kB / 0.5355 GB, free: 10.36 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.505, allocations: 0 / 0.5355 GB, free: 10.36 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.301e-05/0.505, allocations: 0 / 0.5355 GB, free: 10.36 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.0004979/0.5055, allocations: 442.7 kB / 0.5359 GB, free: 9.906 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.5056, allocations: 9.188 kB / 0.5359 GB, free: 9.906 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.822e-05/0.5056, allocations: 0.9375 kB / 0.5359 GB, free: 9.906 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001006/0.5057, allocations: 161.5 kB / 0.5361 GB, free: 9.711 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.244e-05/0.5057, allocations: 384 / 0.5361 GB, free: 9.711 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.174e-05/0.5058, allocations: 5.562 kB / 0.5361 GB, free: 9.707 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.212e-05/0.5059, allocations: 36.34 kB / 0.5361 GB, free: 9.668 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.5059, allocations: 0 / 0.5361 GB, free: 9.668 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.396e-06/0.5059, allocations: 5.344 kB / 0.5361 GB, free: 9.664 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.5059, allocations: 0 / 0.5361 GB, free: 9.664 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.674e-05/0.5059, allocations: 1.281 kB / 0.5361 GB, free: 9.664 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001395/0.5061, allocations: 150.8 kB / 0.5363 GB, free: 9.469 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.596e-05/0.5061, allocations: 16.77 kB / 0.5363 GB, free: 9.445 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.903e-05/0.5061, allocations: 13.95 kB / 0.5363 GB, free: 9.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.928e-06/0.5062, allocations: 3.984 kB / 0.5363 GB, free: 9.426 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.83e-05/0.5062, allocations: 65.41 kB / 0.5364 GB, free: 9.348 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.5062, allocations: 1.094 kB / 0.5364 GB, free: 9.348 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001803/0.5064, allocations: 66.47 kB / 0.5364 GB, free: 9.277 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.444e-05/0.5065, allocations: 78.11 kB / 0.5365 GB, free: 9.184 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.055e-05/0.5065, allocations: 94.66 kB / 0.5366 GB, free: 9.082 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.396e-05/0.5066, allocations: 33.81 kB / 0.5366 GB, free: 9.043 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.07e-05/0.5066, allocations: 81.23 kB / 0.5367 GB, free: 8.961 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.733e-05/0.5066, allocations: 0 / 0.5367 GB, free: 8.961 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.888e-05/0.5067, allocations: 12.03 kB / 0.5367 GB, free: 8.945 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.5068, allocations: 316 kB / 0.537 GB, free: 8.629 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.044e-05/0.5069, allocations: 1 kB / 0.537 GB, free: 8.629 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.813e-06/0.5069, allocations: 1.062 kB / 0.537 GB, free: 8.629 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.483e-05/0.5069, allocations: 63.58 kB / 0.5371 GB, free: 8.555 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.5069, allocations: 0 / 0.5371 GB, free: 8.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.855e-05/0.507, allocations: 66.11 kB / 0.5371 GB, free: 8.484 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001062/0.5071, allocations: 36.05 kB / 0.5372 GB, free: 8.449 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.5071, allocations: 3.984 kB / 0.5372 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.5072, allocations: 0 / 0.5372 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-06/0.5072, allocations: 1.281 kB / 0.5372 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.5072, allocations: 0 / 0.5372 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.032e-05/0.5072, allocations: 5.312 kB / 0.5372 GB, free: 8.441 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.004e-06/0.5072, allocations: 0 / 0.5372 GB, free: 8.441 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.0001104/0.5073, allocations: 149.7 kB / 0.5373 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.377e-06/0.5074, allocations: 5.031 kB / 0.5373 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.147e-05/0.5074, allocations: 4.219 kB / 0.5373 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.81e-07/0.5074, allocations: 0 / 0.5373 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.5074, allocations: 0 / 0.5373 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.5074, allocations: 1.219 kB / 0.5373 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001858/0.5076, allocations: 142.4 kB / 0.5375 GB, free: 8.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.5076, allocations: 5.312 kB / 0.5375 GB, free: 8.086 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.214e-06/0.5076, allocations: 3.984 kB / 0.5375 GB, free: 8.082 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.5076, allocations: 7.938 kB / 0.5375 GB, free: 8.074 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.5076, allocations: 1.75 kB / 0.5375 GB, free: 8.074 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.5076, allocations: 0 / 0.5375 GB, free: 8.074 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.5076, allocations: 0 / 0.5375 GB, free: 8.074 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001387/0.5078, allocations: 94.67 kB / 0.5376 GB, free: 7.969 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.067e-05/0.5078, allocations: 77.11 kB / 0.5376 GB, free: 7.875 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.533e-05/0.5078, allocations: 5.062 kB / 0.5377 GB, free: 7.871 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.031e-05/0.5079, allocations: 1.156 kB / 0.5377 GB, free: 7.871 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.692e-05/0.5079, allocations: 4.031 kB / 0.5377 GB, free: 7.867 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-06/0.5079, allocations: 1.188 kB / 0.5377 GB, free: 7.867 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.348e-05/0.5079, allocations: 79.28 kB / 0.5377 GB, free: 7.789 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5079, allocations: 1.156 kB / 0.5377 GB, free: 7.789 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006363/0.5086, allocations: 161.8 kB / 0.5379 GB, free: 7.734 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.0008751/0.5095, allocations: 341.1 kB / 0.5382 GB, free: 7.535 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001317/0.5096, allocations: 64.39 kB / 0.5383 GB, free: 7.465 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.5096, allocations: 0 / 0.5383 GB, free: 7.465 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.023e-05/0.5097, allocations: 58.19 kB / 0.5383 GB, free: 7.398 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001333/0.5098, allocations: 8.656 kB / 0.5383 GB, free: 7.395 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002162/0.51, allocations: 75.78 kB / 0.5384 GB, free: 7.301 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003129/0.5103, allocations: 0.6743 MB / 0.5391 GB, free: 6.602 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.743e-06/0.5104, allocations: 4 kB / 0.5391 GB, free: 6.598 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.498e-05/0.5104, allocations: 8.562 kB / 0.5391 GB, free: 6.59 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.5104, allocations: 1.344 kB / 0.5391 GB, free: 6.59 MB / 398.1 MB Notification: Performance of Templates: time 0.00882/0.5192, allocations: 3.607 MB / 0.5426 GB, free: 4.742 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/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) Reference file matches