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/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 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 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 97.45 kB / 17 MB, free: 6.402 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.001217/0.001217, allocations: 177.3 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.481/1.481, allocations: 223.3 MB / 241.9 MB, free: 14.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2367/0.2367, allocations: 44.24 MB / 337.3 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002953/0.0002953, allocations: 12 kB / 409.7 MB, free: 27.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1261, allocations: 61.94 MB / 471.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0007841/0.127, allocations: 222.9 kB / 471.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00309/0.1301, allocations: 2.171 MB / 474 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.606e-05/0.1301, allocations: 0 / 474 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.139e-05/0.1301, allocations: 4 kB / 474 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.43e-06/0.1301, allocations: 0 / 474 MB, free: 11.28 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.001328/0.1315, allocations: 470.2 kB / 474.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.139e-05/0.1315, allocations: 0 / 474.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.152e-05/0.1316, allocations: 0 / 474.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.708e-05/0.1316, allocations: 0 / 474.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.728e-05/0.1316, allocations: 0 / 474.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.44e-06/0.1316, allocations: 0 / 474.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001172/0.1328, allocations: 0.7057 MB / 475.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.04e-05/0.1328, allocations: 0 / 475.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.605e-05/0.1329, allocations: 25.7 kB / 475.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004221/0.1333, allocations: 303.7 kB / 475.5 MB, free: 9.789 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.1333, allocations: 0 / 475.5 MB, free: 9.789 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1333, allocations: 4 kB / 475.5 MB, free: 9.785 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.978e-06/0.1333, allocations: 0 / 475.5 MB, free: 9.785 MB / 350.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.0004149/0.1337, allocations: 425 kB / 475.9 MB, free: 9.316 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.1338, allocations: 16.5 kB / 475.9 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.935e-05/0.1338, allocations: 4 kB / 475.9 MB, free: 9.297 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001204/0.134, allocations: 159.1 kB / 476.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.525e-05/0.134, allocations: 0 / 476.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.347e-05/0.134, allocations: 0 / 476.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001129/0.1341, allocations: 37.64 kB / 476.1 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.1342, allocations: 0 / 476.1 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.1342, allocations: 0 / 476.1 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.461e-06/0.1342, allocations: 0 / 476.1 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.817e-05/0.1342, allocations: 4 kB / 476.1 MB, free: 9.055 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001914/0.1344, allocations: 149.7 kB / 476.3 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.796e-05/0.1345, allocations: 22.5 kB / 476.3 MB, free: 8.828 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.817e-05/0.1345, allocations: 8.953 kB / 476.3 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.029e-05/0.1346, allocations: 0 / 476.3 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.809e-05/0.1346, allocations: 60.22 kB / 476.4 MB, free: 8.742 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.262e-06/0.1346, allocations: 0 / 476.4 MB, free: 8.742 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002294/0.1349, allocations: 67.39 kB / 476.4 MB, free: 8.664 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.126e-05/0.135, allocations: 89.16 kB / 476.5 MB, free: 8.559 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.319e-05/0.135, allocations: 89.86 kB / 476.6 MB, free: 8.461 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.996e-05/0.1351, allocations: 29.7 kB / 476.6 MB, free: 8.426 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.929e-05/0.1351, allocations: 80.14 kB / 476.7 MB, free: 8.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.246e-05/0.1351, allocations: 0 / 476.7 MB, free: 8.344 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.913e-06/0.1351, allocations: 0 / 476.7 MB, free: 8.344 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.1353, allocations: 310.8 kB / 477 MB, free: 8.031 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.685e-06/0.1353, allocations: 0 / 477 MB, free: 8.031 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.596e-06/0.1353, allocations: 11.94 kB / 477 MB, free: 8.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.793e-05/0.1353, allocations: 25.7 kB / 477 MB, free: 7.988 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.1353, allocations: 0 / 477 MB, free: 7.988 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.894e-05/0.1354, allocations: 67.39 kB / 477.1 MB, free: 7.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.833e-05/0.1355, allocations: 29.7 kB / 477.1 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.1355, allocations: 3.938 kB / 477.1 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.1355, allocations: 3.953 kB / 477.1 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.894e-06/0.1355, allocations: 4 kB / 477.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.1355, allocations: 0 / 477.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.277e-05/0.1356, allocations: 0 / 477.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.734e-06/0.1356, allocations: 8.031 kB / 477.2 MB, free: 7.855 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001038/0.1357, allocations: 135.5 kB / 477.3 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.837e-06/0.1357, allocations: 3.984 kB / 477.3 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.446e-05/0.1357, allocations: 7.078 kB / 477.3 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.1357, allocations: 7.938 kB / 477.3 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.299e-06/0.1358, allocations: 0 / 477.3 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.1358, allocations: 0 / 477.3 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001118/0.1359, allocations: 157.6 kB / 477.5 MB, free: 7.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1359, allocations: 0 / 477.5 MB, free: 7.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.72e-07/0.1359, allocations: 4 kB / 477.5 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.1359, allocations: 0 / 477.5 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.1359, allocations: 3.984 kB / 477.5 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.1359, allocations: 0 / 477.5 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.1359, allocations: 3.953 kB / 477.5 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001063/0.136, allocations: 86.84 kB / 477.6 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.767e-05/0.1361, allocations: 81.09 kB / 477.6 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.463e-05/0.1361, allocations: 4 kB / 477.6 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.085e-06/0.1361, allocations: 4.031 kB / 477.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.842e-05/0.1362, allocations: 3.938 kB / 477.6 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.447e-05/0.1362, allocations: 3.953 kB / 477.7 MB, free: 7.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.17e-05/0.1362, allocations: 75.28 kB / 477.7 MB, free: 7.176 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1362, allocations: 0 / 477.7 MB, free: 7.176 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004172/0.1366, allocations: 155.9 kB / 477.9 MB, free: 7.023 MB / 350.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 (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.0008159/0.1375, allocations: 351.2 kB / 478.2 MB, free: 6.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001299/0.1376, allocations: 59.41 kB / 478.3 MB, free: 6.609 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1376, allocations: 0 / 478.3 MB, free: 6.609 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.738e-05/0.1377, allocations: 59.39 kB / 478.3 MB, free: 6.539 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001716/0.1379, allocations: 0 / 478.3 MB, free: 6.539 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000268/0.1382, allocations: 75.14 kB / 478.4 MB, free: 6.438 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003809/0.1386, allocations: 0.6692 MB / 479.1 MB, free: 5.742 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.646e-06/0.1386, allocations: 0 / 479.1 MB, free: 5.742 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.947e-05/0.1386, allocations: 11.44 kB / 479.1 MB, free: 5.73 MB / 350.1 MB Notification: Performance of SimCode: time 4.017e-06/0.1386, allocations: 0 / 479.1 MB, free: 5.73 MB / 350.1 MB Notification: Performance of Templates: time 0.007753/0.1464, allocations: 3.489 MB / 482.6 MB, free: 2.242 MB / 350.1 MB 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches