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.001259/0.001259, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001433/0.001434, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.462/1.462, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2332/0.2332, allocations: 46.11 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002365/0.002365, allocations: 79.88 kB / 481.3 MB, free: 4.051 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4744/0.4768, allocations: 62.44 MB / 0.531 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001634/0.4785, allocations: 0.4954 MB / 0.5315 GB, free: 13.21 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003694/0.4822, allocations: 2.361 MB / 0.5338 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.896e-05/0.4822, allocations: 0 / 0.5338 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.894e-05/0.4823, allocations: 0 / 0.5338 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.412e-06/0.4823, allocations: 0 / 0.5338 GB, free: 11.36 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.001802/0.4841, allocations: 0.5692 MB / 0.5343 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.788e-05/0.4842, allocations: 1.375 kB / 0.5343 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.751e-05/0.4842, allocations: 5.375 kB / 0.5343 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.695e-05/0.4843, allocations: 1.375 kB / 0.5343 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.858e-05/0.4843, allocations: 3.938 kB / 0.5344 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.442e-06/0.4843, allocations: 1.375 kB / 0.5344 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001249/0.4855, allocations: 0.7085 MB / 0.535 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.025e-06/0.4856, allocations: 0 / 0.535 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.233e-05/0.4856, allocations: 1.156 kB / 0.535 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007368/0.4863, allocations: 463.6 kB / 0.5355 GB, free: 10.34 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.4863, allocations: 0 / 0.5355 GB, free: 10.34 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.4864, allocations: 1.344 kB / 0.5355 GB, free: 10.34 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.4864, allocations: 0 / 0.5355 GB, free: 10.34 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.0004855/0.4869, allocations: 441.8 kB / 0.5359 GB, free: 9.879 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.4869, allocations: 9.281 kB / 0.5359 GB, free: 9.879 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.21e-05/0.487, allocations: 0.9375 kB / 0.5359 GB, free: 9.879 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001187/0.4871, allocations: 165.7 kB / 0.5361 GB, free: 9.68 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.4871, allocations: 384 / 0.5361 GB, free: 9.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.103e-05/0.4871, allocations: 1.656 kB / 0.5361 GB, free: 9.68 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001097/0.4872, allocations: 32.39 kB / 0.5361 GB, free: 9.645 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.4873, allocations: 0 / 0.5361 GB, free: 9.645 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.222e-05/0.4873, allocations: 5.031 kB / 0.5361 GB, free: 9.641 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.854e-06/0.4873, allocations: 3.984 kB / 0.5361 GB, free: 9.637 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.452e-05/0.4873, allocations: 5.062 kB / 0.5361 GB, free: 9.633 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001483/0.4875, allocations: 150.9 kB / 0.5363 GB, free: 9.438 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.209e-05/0.4875, allocations: 16.95 kB / 0.5363 GB, free: 9.414 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.881e-05/0.4876, allocations: 9.953 kB / 0.5363 GB, free: 9.402 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.353e-06/0.4876, allocations: 0 / 0.5363 GB, free: 9.402 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.989e-05/0.4876, allocations: 62.33 kB / 0.5364 GB, free: 9.328 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 2.565e-06/0.4876, allocations: 3.984 kB / 0.5364 GB, free: 9.324 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002029/0.4879, allocations: 70.52 kB / 0.5364 GB, free: 9.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.414e-05/0.4879, allocations: 82.7 kB / 0.5365 GB, free: 9.152 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.921e-05/0.488, allocations: 93.81 kB / 0.5366 GB, free: 9.051 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/0.488, allocations: 26.98 kB / 0.5366 GB, free: 9.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.272e-05/0.4881, allocations: 80.14 kB / 0.5367 GB, free: 8.938 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.662e-05/0.4881, allocations: 0 / 0.5367 GB, free: 8.938 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.305e-05/0.4881, allocations: 16.42 kB / 0.5367 GB, free: 8.918 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.4883, allocations: 316.2 kB / 0.537 GB, free: 8.602 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.888e-06/0.4883, allocations: 0 / 0.537 GB, free: 8.602 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.197e-06/0.4883, allocations: 5.188 kB / 0.537 GB, free: 8.598 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.533e-05/0.4884, allocations: 60.2 kB / 0.5371 GB, free: 8.527 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.4884, allocations: 0 / 0.5371 GB, free: 8.527 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.152e-05/0.4885, allocations: 66.8 kB / 0.5371 GB, free: 8.457 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.182e-05/0.4885, allocations: 34.83 kB / 0.5372 GB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-06/0.4885, allocations: 0 / 0.5372 GB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.4886, allocations: 0.9688 kB / 0.5372 GB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.834e-06/0.4886, allocations: 0 / 0.5372 GB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.882e-06/0.4886, allocations: 1.344 kB / 0.5372 GB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.104e-05/0.4886, allocations: 12.03 kB / 0.5372 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.4886, allocations: 1.094 kB / 0.5372 GB, free: 8.41 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.0001021/0.4887, allocations: 138.1 kB / 0.5373 GB, free: 8.262 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.089e-05/0.4887, allocations: 5.219 kB / 0.5373 GB, free: 8.258 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.156e-05/0.4888, allocations: 7.109 kB / 0.5373 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.4888, allocations: 0 / 0.5373 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.4888, allocations: 1.312 kB / 0.5373 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.4888, allocations: 0 / 0.5373 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001263/0.4889, allocations: 142.9 kB / 0.5375 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.4889, allocations: 11.94 kB / 0.5375 GB, free: 8.055 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.4889, allocations: 1.219 kB / 0.5375 GB, free: 8.055 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.696e-06/0.4889, allocations: 3.938 kB / 0.5375 GB, free: 8.051 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.489, allocations: 1.375 kB / 0.5375 GB, free: 8.051 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.489, allocations: 0 / 0.5375 GB, free: 8.051 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.489, allocations: 3.984 kB / 0.5375 GB, free: 8.047 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000114/0.4891, allocations: 90.53 kB / 0.5376 GB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.891e-05/0.4891, allocations: 77.11 kB / 0.5376 GB, free: 7.852 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.64e-05/0.4892, allocations: 13.42 kB / 0.5377 GB, free: 7.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.828e-06/0.4892, allocations: 1.375 kB / 0.5377 GB, free: 7.84 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.368e-05/0.4892, allocations: 4 kB / 0.5377 GB, free: 7.836 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-06/0.4892, allocations: 1.156 kB / 0.5377 GB, free: 7.836 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.862e-05/0.4892, allocations: 75.28 kB / 0.5377 GB, free: 7.762 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4892, allocations: 0 / 0.5377 GB, free: 7.762 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005172/0.4898, allocations: 162.6 kB / 0.5379 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.0008315/0.4906, allocations: 343.1 kB / 0.5382 GB, free: 7.508 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001085/0.4907, allocations: 65.11 kB / 0.5383 GB, free: 7.438 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.4907, allocations: 3.938 kB / 0.5383 GB, free: 7.434 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.615e-05/0.4908, allocations: 58.78 kB / 0.5383 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.0001292/0.4909, allocations: 6.766 kB / 0.5383 GB, free: 7.367 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002021/0.4911, allocations: 79.72 kB / 0.5384 GB, free: 7.27 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002474/0.4914, allocations: 0.67 MB / 0.5391 GB, free: 6.574 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.616e-06/0.4914, allocations: 5.172 kB / 0.5391 GB, free: 6.57 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.254e-05/0.4914, allocations: 8.656 kB / 0.5391 GB, free: 6.562 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4914, allocations: 0 / 0.5391 GB, free: 6.562 MB / 398.1 MB Notification: Performance of Templates: time 0.007762/0.4992, allocations: 3.601 MB / 0.5426 GB, free: 4.719 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