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.001199/0.0012, allocations: 117.8 kB / 17.78 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001548/0.001549, allocations: 208.5 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 246.9 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.2343/0.2343, allocations: 46.1 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 75.88 kB / 481.3 MB, free: 4.047 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4067/0.408, allocations: 62.43 MB / 0.531 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001704/0.4098, allocations: 0.5062 MB / 0.5315 GB, free: 13.21 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003655/0.4135, allocations: 2.355 MB / 0.5338 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.958e-05/0.4135, allocations: 1.312 kB / 0.5338 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.388e-05/0.4135, allocations: 3.938 kB / 0.5338 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.092e-06/0.4135, allocations: 0 / 0.5338 GB, free: 11.35 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.001738/0.4153, allocations: 0.5724 MB / 0.5343 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.704e-05/0.4154, allocations: 1.344 kB / 0.5343 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.046e-05/0.4154, allocations: 1.531 kB / 0.5343 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.935e-05/0.4154, allocations: 9.234 kB / 0.5343 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.308e-05/0.4155, allocations: 5.281 kB / 0.5343 GB, free: 11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.203e-06/0.4155, allocations: 0 / 0.5343 GB, free: 11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00122/0.4167, allocations: 0.7041 MB / 0.535 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.07e-05/0.4167, allocations: 1.156 kB / 0.535 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.247e-05/0.4168, allocations: 1.094 kB / 0.535 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007072/0.4175, allocations: 463.3 kB / 0.5355 GB, free: 10.33 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.4175, allocations: 0 / 0.5355 GB, free: 10.33 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4175, allocations: 0 / 0.5355 GB, free: 10.33 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.4175, allocations: 0 / 0.5355 GB, free: 10.33 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.0005179/0.418, allocations: 431.1 kB / 0.5359 GB, free: 9.887 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/0.4181, allocations: 10.28 kB / 0.5359 GB, free: 9.887 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.818e-05/0.4181, allocations: 0.9375 kB / 0.5359 GB, free: 9.887 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001327/0.4183, allocations: 160.4 kB / 0.5361 GB, free: 9.691 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.4183, allocations: 5.406 kB / 0.5361 GB, free: 9.688 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.312e-05/0.4183, allocations: 1.469 kB / 0.5361 GB, free: 9.688 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001288/0.4185, allocations: 32.3 kB / 0.5361 GB, free: 9.652 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.4185, allocations: 0 / 0.5361 GB, free: 9.652 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.4185, allocations: 12.92 kB / 0.5361 GB, free: 9.641 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.728e-06/0.4185, allocations: 0 / 0.5361 GB, free: 9.641 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.33e-05/0.4185, allocations: 1.25 kB / 0.5361 GB, free: 9.641 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001514/0.4187, allocations: 146.8 kB / 0.5362 GB, free: 9.449 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.625e-05/0.4188, allocations: 20.86 kB / 0.5363 GB, free: 9.422 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.061e-05/0.4188, allocations: 9.891 kB / 0.5363 GB, free: 9.41 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.598e-06/0.4188, allocations: 1.281 kB / 0.5363 GB, free: 9.41 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.229e-05/0.4189, allocations: 61.27 kB / 0.5363 GB, free: 9.336 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.4189, allocations: 0 / 0.5363 GB, free: 9.336 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002036/0.4191, allocations: 71.42 kB / 0.5364 GB, free: 9.262 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.236e-05/0.4191, allocations: 78.39 kB / 0.5365 GB, free: 9.168 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.178e-05/0.4192, allocations: 93.86 kB / 0.5366 GB, free: 9.066 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.309e-05/0.4192, allocations: 25.7 kB / 0.5366 GB, free: 9.035 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.7e-05/0.4192, allocations: 81.27 kB / 0.5367 GB, free: 8.953 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.629e-05/0.4193, allocations: 0 / 0.5367 GB, free: 8.953 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.109e-05/0.4193, allocations: 16.14 kB / 0.5367 GB, free: 8.934 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.4194, allocations: 315.9 kB / 0.537 GB, free: 8.617 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.708e-06/0.4195, allocations: 3.938 kB / 0.537 GB, free: 8.613 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.831e-06/0.4195, allocations: 2.25 kB / 0.537 GB, free: 8.613 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.958e-05/0.4195, allocations: 67.58 kB / 0.5371 GB, free: 8.535 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.4195, allocations: 0 / 0.5371 GB, free: 8.535 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.62e-05/0.4196, allocations: 66.14 kB / 0.5371 GB, free: 8.465 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.258e-05/0.4196, allocations: 35.02 kB / 0.5372 GB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.237e-06/0.4197, allocations: 1.188 kB / 0.5372 GB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.4197, allocations: 0 / 0.5372 GB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-07/0.4197, allocations: 0 / 0.5372 GB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.94e-06/0.4197, allocations: 1.094 kB / 0.5372 GB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.81e-05/0.4197, allocations: 5.125 kB / 0.5372 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.4197, allocations: 4.031 kB / 0.5372 GB, free: 8.422 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.048e-05/0.4198, allocations: 134 kB / 0.5373 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.074e-05/0.4198, allocations: 9.062 kB / 0.5373 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.088e-05/0.4199, allocations: 11.09 kB / 0.5373 GB, free: 8.262 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-06/0.4199, allocations: 1.219 kB / 0.5373 GB, free: 8.262 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.4199, allocations: 0 / 0.5373 GB, free: 8.262 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.4199, allocations: 0 / 0.5373 GB, free: 8.262 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.371e-05/0.42, allocations: 143.8 kB / 0.5374 GB, free: 8.074 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.42, allocations: 3.938 kB / 0.5375 GB, free: 8.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.42, allocations: 4 kB / 0.5375 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.42, allocations: 5.031 kB / 0.5375 GB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.42, allocations: 1.125 kB / 0.5375 GB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.42, allocations: 7.922 kB / 0.5375 GB, free: 8.055 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.42, allocations: 0 / 0.5375 GB, free: 8.055 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.882e-05/0.4201, allocations: 86.59 kB / 0.5376 GB, free: 7.957 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.086e-05/0.4202, allocations: 77.11 kB / 0.5376 GB, free: 7.863 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.467e-05/0.4202, allocations: 13.86 kB / 0.5376 GB, free: 7.852 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.065e-06/0.4202, allocations: 0 / 0.5376 GB, free: 7.852 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.302e-05/0.4202, allocations: 4.844 kB / 0.5376 GB, free: 7.848 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-06/0.4202, allocations: 1.031 kB / 0.5376 GB, free: 7.848 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.581e-05/0.4203, allocations: 76.53 kB / 0.5377 GB, free: 7.773 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4203, allocations: 0 / 0.5377 GB, free: 7.773 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004483/0.4207, allocations: 160.7 kB / 0.5379 GB, free: 7.723 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.0007264/0.4215, allocations: 345.7 kB / 0.5382 GB, free: 7.523 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.726e-05/0.4216, allocations: 68.23 kB / 0.5383 GB, free: 7.449 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.4216, allocations: 0 / 0.5383 GB, free: 7.449 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.162e-05/0.4216, allocations: 55 kB / 0.5383 GB, free: 7.387 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001236/0.4217, allocations: 5.078 kB / 0.5383 GB, free: 7.387 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001817/0.4219, allocations: 77.05 kB / 0.5384 GB, free: 7.293 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000251/0.4222, allocations: 0.674 MB / 0.5391 GB, free: 6.594 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.62e-06/0.4222, allocations: 0 / 0.5391 GB, free: 6.594 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.347e-05/0.4222, allocations: 8.812 kB / 0.5391 GB, free: 6.586 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4222, allocations: 0 / 0.5391 GB, free: 6.586 MB / 398.1 MB Notification: Performance of Templates: time 0.007268/0.4295, allocations: 3.606 MB / 0.5426 GB, free: 4.734 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