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.001054/0.001054, allocations: 117.6 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.001069/0.001069, allocations: 199.9 kB / 18.73 MB, free: 4.34 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.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2391/0.2391, allocations: 46.09 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002197/0.002197, allocations: 79.86 kB / 481.3 MB, free: 4.094 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4784/0.4806, 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.00179/0.4825, allocations: 0.4999 MB / 0.5315 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004263/0.4867, allocations: 2.348 MB / 0.5338 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.827e-05/0.4868, allocations: 0 / 0.5338 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.768e-05/0.4868, allocations: 4 kB / 0.5338 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.636e-06/0.4868, allocations: 5.312 kB / 0.5338 GB, free: 11.39 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.001999/0.4888, allocations: 0.572 MB / 0.5343 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 8.496e-05/0.4889, allocations: 1.531 kB / 0.5343 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.181e-05/0.489, allocations: 1.125 kB / 0.5343 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.519e-05/0.489, allocations: 1.312 kB / 0.5343 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.921e-05/0.4891, allocations: 3.938 kB / 0.5343 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.03e-05/0.4891, allocations: 0.6875 kB / 0.5343 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001274/0.4904, allocations: 0.7086 MB / 0.535 GB, free: 10.65 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.077e-06/0.4904, allocations: 1.375 kB / 0.535 GB, free: 10.65 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.397e-05/0.4904, allocations: 3.984 kB / 0.535 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007144/0.4911, allocations: 455.3 kB / 0.5355 GB, free: 10.38 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.4912, allocations: 1.438 kB / 0.5355 GB, free: 10.38 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4912, allocations: 4 kB / 0.5355 GB, free: 10.38 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.4912, allocations: 0 / 0.5355 GB, free: 10.38 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.0005143/0.4917, allocations: 431.3 kB / 0.5359 GB, free: 9.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.044e-05/0.4918, allocations: 8.562 kB / 0.5359 GB, free: 9.93 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.367e-05/0.4918, allocations: 2 kB / 0.5359 GB, free: 9.93 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000112/0.4919, allocations: 164.4 kB / 0.5361 GB, free: 9.73 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.599e-05/0.492, allocations: 1.312 kB / 0.5361 GB, free: 9.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.009e-05/0.492, allocations: 1.5 kB / 0.5361 GB, free: 9.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001031/0.4921, allocations: 40.31 kB / 0.5361 GB, free: 9.688 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.4921, allocations: 0 / 0.5361 GB, free: 9.688 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.548e-06/0.4921, allocations: 3.938 kB / 0.5361 GB, free: 9.684 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.718e-06/0.4921, allocations: 0.9688 kB / 0.5361 GB, free: 9.684 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.242e-05/0.4921, allocations: 5.062 kB / 0.5361 GB, free: 9.68 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001527/0.4923, allocations: 142.8 kB / 0.5362 GB, free: 9.492 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.441e-05/0.4924, allocations: 16.89 kB / 0.5363 GB, free: 9.469 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.05e-05/0.4924, allocations: 17.97 kB / 0.5363 GB, free: 9.449 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.786e-06/0.4924, allocations: 5.125 kB / 0.5363 GB, free: 9.445 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.801e-05/0.4925, allocations: 61.2 kB / 0.5363 GB, free: 9.371 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.4925, allocations: 0 / 0.5363 GB, free: 9.371 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001969/0.4927, allocations: 67.17 kB / 0.5364 GB, free: 9.301 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.582e-05/0.4927, allocations: 82.12 kB / 0.5365 GB, free: 9.203 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.331e-05/0.4928, allocations: 89.86 kB / 0.5366 GB, free: 9.105 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.4928, allocations: 26.83 kB / 0.5366 GB, free: 9.074 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.131e-05/0.4929, allocations: 88.27 kB / 0.5367 GB, free: 8.984 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.771e-05/0.4929, allocations: 1.438 kB / 0.5367 GB, free: 8.984 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.761e-05/0.4929, allocations: 10.84 kB / 0.5367 GB, free: 8.969 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.4931, allocations: 312 kB / 0.537 GB, free: 8.656 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.072e-05/0.4931, allocations: 1.156 kB / 0.537 GB, free: 8.656 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.711e-06/0.4931, allocations: 4.969 kB / 0.537 GB, free: 8.652 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.191e-05/0.4932, allocations: 59.61 kB / 0.5371 GB, free: 8.582 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.4932, allocations: 0 / 0.5371 GB, free: 8.582 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.371e-05/0.4933, allocations: 75.14 kB / 0.5371 GB, free: 8.504 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.012e-05/0.4933, allocations: 37.64 kB / 0.5372 GB, free: 8.469 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.4933, allocations: 0 / 0.5372 GB, free: 8.469 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.4933, allocations: 3.984 kB / 0.5372 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.21e-07/0.4934, allocations: 1.094 kB / 0.5372 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.4934, allocations: 0 / 0.5372 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.558e-05/0.4934, allocations: 0.9375 kB / 0.5372 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.707e-06/0.4934, allocations: 1.156 kB / 0.5372 GB, free: 8.465 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 9.336e-05/0.4935, allocations: 137.7 kB / 0.5373 GB, free: 8.316 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.127e-05/0.4935, allocations: 12.97 kB / 0.5373 GB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.045e-06/0.4935, allocations: 3.125 kB / 0.5373 GB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.4935, allocations: 0 / 0.5373 GB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4935, allocations: 5.125 kB / 0.5373 GB, free: 8.301 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.4935, allocations: 0 / 0.5373 GB, free: 8.301 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.932e-05/0.4937, allocations: 150.8 kB / 0.5375 GB, free: 8.105 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.4937, allocations: 5 kB / 0.5375 GB, free: 8.102 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.4937, allocations: 0 / 0.5375 GB, free: 8.102 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.4937, allocations: 5.094 kB / 0.5375 GB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.254e-06/0.4937, allocations: 0 / 0.5375 GB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.4937, allocations: 5.031 kB / 0.5375 GB, free: 8.094 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.4937, allocations: 0 / 0.5375 GB, free: 8.094 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.495e-05/0.4938, allocations: 94.64 kB / 0.5376 GB, free: 7.988 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.272e-05/0.4939, allocations: 77.11 kB / 0.5376 GB, free: 7.895 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.447e-05/0.4939, allocations: 5 kB / 0.5376 GB, free: 7.891 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.598e-06/0.4939, allocations: 0.9062 kB / 0.5376 GB, free: 7.891 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.341e-05/0.4939, allocations: 1.188 kB / 0.5376 GB, free: 7.891 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-06/0.4939, allocations: 4.031 kB / 0.5377 GB, free: 7.887 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.053e-05/0.494, allocations: 76.28 kB / 0.5377 GB, free: 7.812 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.494, allocations: 0 / 0.5377 GB, free: 7.812 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004978/0.4945, allocations: 160.4 kB / 0.5379 GB, free: 7.762 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.0008522/0.4953, allocations: 349 kB / 0.5382 GB, free: 7.555 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001177/0.4955, allocations: 65.08 kB / 0.5383 GB, free: 7.484 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.4955, allocations: 0 / 0.5383 GB, free: 7.484 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.582e-05/0.4955, allocations: 55.56 kB / 0.5383 GB, free: 7.422 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001262/0.4956, allocations: 3.516 kB / 0.5383 GB, free: 7.422 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002257/0.4959, allocations: 81.47 kB / 0.5384 GB, free: 7.324 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/0.4962, allocations: 0.6699 MB / 0.5391 GB, free: 6.629 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.093e-06/0.4962, allocations: 1.125 kB / 0.5391 GB, free: 6.629 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.5e-05/0.4962, allocations: 12.53 kB / 0.5391 GB, free: 6.617 MB / 398.1 MB Notification: Performance of SimCode: time 1.81e-07/0.4962, allocations: 0 / 0.5391 GB, free: 6.617 MB / 398.1 MB Notification: Performance of Templates: time 0.008206/0.5044, allocations: 3.596 MB / 0.5426 GB, free: 4.781 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