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.001019/0.001019, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.0009903/0.0009904, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.36/1.36, allocations: 222.9 MB / 242.2 MB, free: 15.21 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.2086/0.2086, allocations: 44.18 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 64.88 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1267, allocations: 60.82 MB / 469.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001812/0.1285, allocations: 0.4989 MB / 469.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003152/0.1317, allocations: 2.31 MB / 472.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.686e-05/0.1317, allocations: 0 / 472.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.69e-05/0.1318, allocations: 0 / 472.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.769e-06/0.1318, allocations: 0 / 472.1 MB, free: 11.54 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.001429/0.1332, allocations: 0.5603 MB / 472.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.618e-05/0.1333, allocations: 0 / 472.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.134e-05/0.1333, allocations: 4 kB / 472.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.331e-05/0.1333, allocations: 4 kB / 472.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.603e-05/0.1334, allocations: 4 kB / 472.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.192e-06/0.1334, allocations: 3.984 kB / 472.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001009/0.1344, allocations: 0.6824 MB / 473.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.603e-06/0.1344, allocations: 0 / 473.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.012e-05/0.1344, allocations: 4 kB / 473.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006222/0.1351, allocations: 459.4 kB / 473.8 MB, free: 9.832 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1351, allocations: 0 / 473.8 MB, free: 9.832 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1351, allocations: 0 / 473.8 MB, free: 9.832 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.1351, allocations: 0 / 473.8 MB, free: 9.832 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.0006423/0.1357, allocations: 433.2 kB / 474.2 MB, free: 9.355 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.1358, allocations: 12.03 kB / 474.2 MB, free: 9.344 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.946e-05/0.1358, allocations: 0.9375 kB / 474.2 MB, free: 9.344 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001699/0.136, allocations: 160.4 kB / 474.4 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.136, allocations: 4.375 kB / 474.4 MB, free: 9.145 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.395e-06/0.136, allocations: 384 / 474.4 MB, free: 9.145 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001022/0.1362, allocations: 34.02 kB / 474.4 MB, free: 9.105 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.1362, allocations: 7.969 kB / 474.4 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.317e-06/0.1362, allocations: 3.938 kB / 474.4 MB, free: 9.094 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.1362, allocations: 4 kB / 474.4 MB, free: 9.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.08e-05/0.1362, allocations: 4 kB / 474.4 MB, free: 9.086 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000146/0.1364, allocations: 145.7 kB / 474.6 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.191e-05/0.1364, allocations: 18.67 kB / 474.6 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.372e-05/0.1364, allocations: 8.859 kB / 474.6 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.53e-06/0.1365, allocations: 0 / 474.6 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.385e-05/0.1365, allocations: 64.19 kB / 474.6 MB, free: 8.777 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.1365, allocations: 0 / 474.6 MB, free: 8.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000159/0.1367, allocations: 67.34 kB / 474.7 MB, free: 8.699 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.131e-05/0.1367, allocations: 77.11 kB / 474.8 MB, free: 8.605 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.412e-05/0.1368, allocations: 101.9 kB / 474.9 MB, free: 8.496 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.631e-05/0.1368, allocations: 25.7 kB / 474.9 MB, free: 8.465 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.377e-05/0.1368, allocations: 80.14 kB / 475 MB, free: 8.383 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.935e-05/0.1368, allocations: 0 / 475 MB, free: 8.383 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.579e-05/0.1369, allocations: 13.7 kB / 475 MB, free: 8.363 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.996e-05/0.137, allocations: 314.8 kB / 475.3 MB, free: 8.047 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.035e-05/0.137, allocations: 0 / 475.3 MB, free: 8.047 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.783e-06/0.137, allocations: 4 kB / 475.3 MB, free: 8.043 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.355e-05/0.1371, allocations: 68.27 kB / 475.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.1371, allocations: 3.938 kB / 475.4 MB, free: 7.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.883e-05/0.1371, allocations: 63.39 kB / 475.4 MB, free: 7.883 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.317e-05/0.1372, allocations: 33.64 kB / 475.5 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.1372, allocations: 0 / 475.5 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.029e-05/0.1372, allocations: 0 / 475.5 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.31e-07/0.1372, allocations: 4 kB / 475.5 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.1372, allocations: 0 / 475.5 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.438e-05/0.1372, allocations: 0 / 475.5 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.81e-06/0.1373, allocations: 4.031 kB / 475.5 MB, free: 7.836 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.97e-05/0.1374, allocations: 139.5 kB / 475.6 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.249e-05/0.1374, allocations: 3.938 kB / 475.6 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.018e-05/0.1374, allocations: 11.06 kB / 475.6 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1374, allocations: 0 / 475.6 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.1374, allocations: 0 / 475.6 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.1374, allocations: 0 / 475.6 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001115/0.1375, allocations: 149.6 kB / 475.8 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.1375, allocations: 0 / 475.8 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-07/0.1376, allocations: 0 / 475.8 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.1376, allocations: 7.938 kB / 475.8 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-06/0.1376, allocations: 0 / 475.8 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/0.1376, allocations: 7.922 kB / 475.8 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1376, allocations: 0 / 475.8 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.698e-05/0.1377, allocations: 86.84 kB / 475.9 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.36e-05/0.1377, allocations: 81.09 kB / 476 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.691e-05/0.1378, allocations: 7.938 kB / 476 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.195e-06/0.1378, allocations: 4.031 kB / 476 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.317e-05/0.1378, allocations: 4 kB / 476 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.047e-06/0.1378, allocations: 3.984 kB / 476 MB, free: 7.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.672e-05/0.1378, allocations: 75.28 kB / 476.1 MB, free: 7.156 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1378, allocations: 0 / 476.1 MB, free: 7.156 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004241/0.1383, allocations: 155.9 kB / 476.2 MB, free: 7.004 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 (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.0007715/0.1391, allocations: 343.1 kB / 476.5 MB, free: 6.668 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.429e-05/0.1392, allocations: 59.34 kB / 476.6 MB, free: 6.598 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.1392, allocations: 0 / 476.6 MB, free: 6.598 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.461e-05/0.1392, allocations: 59.39 kB / 476.7 MB, free: 6.527 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001248/0.1393, allocations: 4 kB / 476.7 MB, free: 6.523 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001866/0.1395, allocations: 76.94 kB / 476.7 MB, free: 6.422 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002108/0.1398, allocations: 0.673 MB / 477.4 MB, free: 5.723 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.922e-06/0.1398, allocations: 0 / 477.4 MB, free: 5.723 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.01e-05/0.1398, allocations: 7.438 kB / 477.4 MB, free: 5.715 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1398, allocations: 0 / 477.4 MB, free: 5.715 MB / 350.1 MB Notification: Performance of Templates: time 0.007124/0.1469, allocations: 3.505 MB / 480.9 MB, free: 2.207 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