Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json 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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001379/0.001379, allocations: 106.7 kB / 16.41 MB, free: 6.488 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001894/0.001895, allocations: 183.6 kB / 17.33 MB, free: 5.77 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.646/1.646, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2468/0.2468, allocations: 43.52 MB / 314.1 MB, free: 464 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 73.44 kB / 441.8 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1426, allocations: 57.79 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001892/0.1445, allocations: 0.4989 MB / 0.4884 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003733/0.1482, allocations: 2.338 MB / 0.4906 GB, free: 8.938 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.327e-05/0.1483, allocations: 0 / 0.4906 GB, free: 8.938 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.651e-05/0.1483, allocations: 3.938 kB / 0.4907 GB, free: 8.934 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.011e-06/0.1484, allocations: 0 / 0.4907 GB, free: 8.934 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001992/0.1504, allocations: 0.5608 MB / 0.4912 GB, free: 8.371 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.307e-05/0.1504, allocations: 4 kB / 0.4912 GB, free: 8.367 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.194e-05/0.1505, allocations: 3.984 kB / 0.4912 GB, free: 8.363 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.693e-05/0.1505, allocations: 0 / 0.4912 GB, free: 8.363 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.093e-05/0.1505, allocations: 7.984 kB / 0.4912 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.031e-06/0.1505, allocations: 4 kB / 0.4912 GB, free: 8.352 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001238/0.1518, allocations: 0.6863 MB / 0.4919 GB, free: 7.664 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.068e-05/0.1518, allocations: 0 / 0.4919 GB, free: 7.664 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.11e-05/0.1518, allocations: 0 / 0.4919 GB, free: 7.664 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008306/0.1527, allocations: 447.2 kB / 0.4923 GB, free: 7.227 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1527, allocations: 0 / 0.4923 GB, free: 7.227 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.1527, allocations: 4 kB / 0.4923 GB, free: 7.223 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.1527, allocations: 3.938 kB / 0.4923 GB, free: 7.219 MB / 382.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.0005665/0.1533, allocations: 437.2 kB / 0.4927 GB, free: 6.738 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.823e-05/0.1534, allocations: 11.89 kB / 0.4928 GB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.929e-05/0.1534, allocations: 4.844 kB / 0.4928 GB, free: 6.723 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001081/0.1535, allocations: 160.4 kB / 0.4929 GB, free: 6.527 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.56e-05/0.1536, allocations: 8.312 kB / 0.4929 GB, free: 6.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.649e-06/0.1536, allocations: 4.375 kB / 0.4929 GB, free: 6.516 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001062/0.1537, allocations: 33.95 kB / 0.493 GB, free: 6.477 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.1537, allocations: 4 kB / 0.493 GB, free: 6.473 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/0.1537, allocations: 0 / 0.493 GB, free: 6.473 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.1537, allocations: 3.984 kB / 0.493 GB, free: 6.469 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.229e-05/0.1538, allocations: 0 / 0.493 GB, free: 6.469 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000183/0.154, allocations: 141.7 kB / 0.4931 GB, free: 6.281 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.733e-05/0.154, allocations: 30.55 kB / 0.4931 GB, free: 6.242 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.085e-05/0.1541, allocations: 8.844 kB / 0.4931 GB, free: 6.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.747e-06/0.1541, allocations: 0 / 0.4931 GB, free: 6.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.402e-05/0.1541, allocations: 64.27 kB / 0.4932 GB, free: 6.152 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.1541, allocations: 0 / 0.4932 GB, free: 6.152 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002691/0.1544, allocations: 67.33 kB / 0.4933 GB, free: 6.074 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.729e-05/0.1545, allocations: 77.11 kB / 0.4933 GB, free: 5.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.536e-05/0.1546, allocations: 93.86 kB / 0.4934 GB, free: 5.879 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.287e-05/0.1546, allocations: 29.83 kB / 0.4935 GB, free: 5.844 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.199e-05/0.1546, allocations: 80.14 kB / 0.4935 GB, free: 5.762 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.573e-05/0.1546, allocations: 0 / 0.4935 GB, free: 5.762 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.745e-05/0.1547, allocations: 17.7 kB / 0.4935 GB, free: 5.738 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.1548, allocations: 310.8 kB / 0.4938 GB, free: 5.426 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.21e-05/0.1548, allocations: 0 / 0.4938 GB, free: 5.426 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.438e-06/0.1549, allocations: 4 kB / 0.4938 GB, free: 5.422 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.78e-05/0.1549, allocations: 64.33 kB / 0.4939 GB, free: 5.344 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1549, allocations: 4 kB / 0.4939 GB, free: 5.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.55e-05/0.155, allocations: 63.33 kB / 0.494 GB, free: 5.266 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.664e-05/0.1551, allocations: 37.64 kB / 0.494 GB, free: 5.223 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.1551, allocations: 0 / 0.494 GB, free: 5.223 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.1551, allocations: 0 / 0.494 GB, free: 5.223 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.182e-06/0.1551, allocations: 0 / 0.494 GB, free: 5.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.1551, allocations: 3.984 kB / 0.494 GB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.059e-05/0.1551, allocations: 4 kB / 0.494 GB, free: 5.215 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.576e-06/0.1552, allocations: 4 kB / 0.494 GB, free: 5.211 MB / 382.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.906e-05/0.1553, allocations: 139.5 kB / 0.4942 GB, free: 5.059 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.075e-05/0.1553, allocations: 3.938 kB / 0.4942 GB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.689e-05/0.1553, allocations: 11.11 kB / 0.4942 GB, free: 5.039 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-06/0.1553, allocations: 7.938 kB / 0.4942 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.1553, allocations: 0 / 0.4942 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-06/0.1553, allocations: 0 / 0.4942 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001115/0.1554, allocations: 141.7 kB / 0.4943 GB, free: 4.844 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1555, allocations: 0 / 0.4943 GB, free: 4.844 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.133e-06/0.1555, allocations: 0 / 0.4943 GB, free: 4.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.05e-06/0.1555, allocations: 7.938 kB / 0.4943 GB, free: 4.836 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.725e-06/0.1555, allocations: 4 kB / 0.4943 GB, free: 4.832 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1555, allocations: 3.938 kB / 0.4943 GB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.1555, allocations: 3.984 kB / 0.4943 GB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001028/0.1556, allocations: 94.77 kB / 0.4944 GB, free: 4.707 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.797e-05/0.1557, allocations: 77.11 kB / 0.4945 GB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.765e-05/0.1557, allocations: 7.922 kB / 0.4945 GB, free: 4.605 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.064e-05/0.1557, allocations: 0 / 0.4945 GB, free: 4.605 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.271e-05/0.1557, allocations: 4.031 kB / 0.4945 GB, free: 4.602 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-06/0.1557, allocations: 4 kB / 0.4945 GB, free: 4.598 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.675e-05/0.1558, allocations: 75.28 kB / 0.4946 GB, free: 4.523 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1558, allocations: 0 / 0.4946 GB, free: 4.523 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004984/0.1563, allocations: 152 kB / 0.4947 GB, free: 4.375 MB / 382.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.0007803/0.1571, allocations: 344.9 kB / 0.4951 GB, free: 4.031 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.845e-05/0.1572, allocations: 59.41 kB / 0.4951 GB, free: 3.961 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1572, allocations: 0 / 0.4951 GB, free: 3.961 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.069e-05/0.1572, allocations: 55.39 kB / 0.4952 GB, free: 3.895 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000125/0.1573, allocations: 7.438 kB / 0.4952 GB, free: 3.891 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001766/0.1575, allocations: 88.86 kB / 0.4953 GB, free: 3.777 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002295/0.1578, allocations: 0.669 MB / 0.4959 GB, free: 3.082 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.119e-06/0.1578, allocations: 4.125 kB / 0.4959 GB, free: 3.078 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.194e-05/0.1578, allocations: 11.44 kB / 0.4959 GB, free: 3.066 MB / 382.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1578, allocations: 0 / 0.4959 GB, free: 3.066 MB / 382.1 MB Notification: Performance of Templates: time 0.006798/0.1646, allocations: 3.514 MB / 0.4994 GB, free: 15.55 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches