Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 180.1 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.216/1.216, allocations: 221.3 MB / 236 MB, free: 2.938 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008723/0.0008723, allocations: 95.48 kB / 287 MB, free: 236 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1769/0.1769, allocations: 44.16 MB / 382 MB, free: 14.67 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.567e-05/2.571e-05, allocations: 8.203 kB / 451.8 MB, free: 9.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.109, allocations: 61.91 MB / 0.5017 GB, free: 11.44 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3353/0.4443, allocations: 89.47 MB / 0.5891 GB, free: 15.82 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001933/0.4445, allocations: 63.97 kB / 0.5891 GB, free: 15.76 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7261/1.171, allocations: 71.92 MB / 0.6594 GB, free: 7.742 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.502e-06/1.171, allocations: 0 / 0.6594 GB, free: 7.742 MB / 474.7 MB Notification: Performance of Transformations before backend: time 7.103e-06/1.171, allocations: 0 / 0.6594 GB, free: 7.742 MB / 474.7 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.003805/1.175, allocations: 463.8 kB / 0.6598 GB, free: 7.238 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.539e-05/1.175, allocations: 15.91 kB / 0.6598 GB, free: 7.223 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.13e-05/1.175, allocations: 0 / 0.6598 GB, free: 7.223 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001054/1.175, allocations: 167 kB / 0.66 GB, free: 7.02 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/1.175, allocations: 4 kB / 0.66 GB, free: 7.016 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.788e-06/1.175, allocations: 0 / 0.66 GB, free: 7.016 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.989e-05/1.175, allocations: 25.7 kB / 0.66 GB, free: 6.984 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/1.175, allocations: 7.984 kB / 0.66 GB, free: 6.977 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.859e-06/1.175, allocations: 0 / 0.66 GB, free: 6.977 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/1.175, allocations: 0 / 0.66 GB, free: 6.977 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.307e-05/1.175, allocations: 4 kB / 0.66 GB, free: 6.973 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001411/1.175, allocations: 153.6 kB / 0.6602 GB, free: 6.773 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.985e-05/1.175, allocations: 22.55 kB / 0.6602 GB, free: 6.742 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.288e-05/1.175, allocations: 4.859 kB / 0.6602 GB, free: 6.734 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.005e-06/1.175, allocations: 0 / 0.6602 GB, free: 6.734 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.777e-05/1.175, allocations: 60.33 kB / 0.6603 GB, free: 6.66 MB / 474.7 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/1.175, allocations: 0 / 0.6603 GB, free: 6.66 MB / 474.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001787/1.175, allocations: 63.39 kB / 0.6603 GB, free: 6.586 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.087e-05/1.176, allocations: 85.14 kB / 0.6604 GB, free: 6.484 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.108e-05/1.176, allocations: 85 kB / 0.6605 GB, free: 6.395 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.732e-05/1.176, allocations: 25.7 kB / 0.6605 GB, free: 6.363 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.446e-05/1.176, allocations: 84.08 kB / 0.6606 GB, free: 6.277 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.454e-05/1.176, allocations: 3.984 kB / 0.6606 GB, free: 6.273 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.445e-06/1.176, allocations: 0 / 0.6606 GB, free: 6.273 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000126/1.176, allocations: 310.8 kB / 0.6609 GB, free: 5.961 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.828e-06/1.176, allocations: 4 kB / 0.6609 GB, free: 5.957 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.605e-06/1.176, allocations: 4 kB / 0.6609 GB, free: 5.953 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.247e-05/1.176, allocations: 33.69 kB / 0.6609 GB, free: 5.914 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/1.176, allocations: 0 / 0.6609 GB, free: 5.914 MB / 474.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.39e-05/1.176, allocations: 63.36 kB / 0.661 GB, free: 5.84 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.983e-05/1.176, allocations: 34.95 kB / 0.661 GB, free: 5.801 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/1.176, allocations: 0 / 0.661 GB, free: 5.801 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/1.176, allocations: 3.938 kB / 0.661 GB, free: 5.797 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.252e-06/1.176, allocations: 0 / 0.661 GB, free: 5.797 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/1.176, allocations: 0 / 0.661 GB, free: 5.797 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.791e-05/1.176, allocations: 0 / 0.661 GB, free: 5.797 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.146e-05/1.176, allocations: 8.078 kB / 0.661 GB, free: 5.789 MB / 474.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.025e-05/1.176, allocations: 130.7 kB / 0.6612 GB, free: 5.648 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.788e-06/1.176, allocations: 7.891 kB / 0.6612 GB, free: 5.641 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.483e-05/1.176, allocations: 7.078 kB / 0.6612 GB, free: 5.629 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/1.176, allocations: 0 / 0.6612 GB, free: 5.629 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/1.176, allocations: 0 / 0.6612 GB, free: 5.629 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/1.176, allocations: 4 kB / 0.6612 GB, free: 5.625 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001089/1.176, allocations: 153.6 kB / 0.6613 GB, free: 5.426 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/1.176, allocations: 0 / 0.6613 GB, free: 5.426 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/1.176, allocations: 4 kB / 0.6613 GB, free: 5.422 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/1.176, allocations: 0 / 0.6613 GB, free: 5.422 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.247e-06/1.176, allocations: 3.953 kB / 0.6613 GB, free: 5.418 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/1.176, allocations: 4 kB / 0.6613 GB, free: 5.414 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/1.176, allocations: 0 / 0.6613 GB, free: 5.414 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001068/1.177, allocations: 94.77 kB / 0.6614 GB, free: 5.301 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.438e-05/1.177, allocations: 81.02 kB / 0.6615 GB, free: 5.203 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.323e-05/1.177, allocations: 0 / 0.6615 GB, free: 5.203 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.18e-05/1.177, allocations: 7.984 kB / 0.6615 GB, free: 5.195 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.598e-05/1.177, allocations: 0 / 0.6615 GB, free: 5.195 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.632e-06/1.177, allocations: 4 kB / 0.6615 GB, free: 5.191 MB / 474.7 MB Notification: Performance of sorting global known variables: time 3.737e-05/1.177, allocations: 75.28 kB / 0.6616 GB, free: 5.117 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.177, allocations: 3.938 kB / 0.6616 GB, free: 5.113 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006112/1.183, allocations: 1.523 MB / 0.6631 GB, free: 3.59 MB / 474.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01088/1.194, allocations: 2.038 MB / 0.6651 GB, free: 1.555 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0001337/1.194, allocations: 55.41 kB / 0.6651 GB, free: 1.488 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/1.194, allocations: 0 / 0.6651 GB, free: 1.488 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 3.601e-05/1.194, allocations: 63.34 kB / 0.6652 GB, free: 1.414 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.87e-05/1.194, allocations: 1.25 kB / 0.6652 GB, free: 1.414 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001713/1.194, allocations: 53.61 kB / 0.6652 GB, free: 1.34 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002608/1.195, allocations: 0.6731 MB / 0.6659 GB, free: 0.6406 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 6.162e-06/1.195, allocations: 0 / 0.6659 GB, free: 0.6406 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.816e-05/1.195, allocations: 11.44 kB / 0.6659 GB, free: 0.6289 MB / 474.7 MB Notification: Performance of SimCode: time 6.11e-07/1.195, allocations: 0 / 0.6659 GB, free: 0.6289 MB / 474.7 MB Notification: Performance of Templates: time 0.3896/1.584, allocations: 87.39 MB / 0.7513 GB, free: 128.1 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches