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.001544/0.001544, allocations: 111.6 kB / 17.04 MB, free: 5.816 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.001543/0.001544, allocations: 195 kB / 17.98 MB, free: 5.027 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.73/1.73, allocations: 205.1 MB / 223.8 MB, free: 12.26 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.2353/0.2353, allocations: 43.51 MB / 314.7 MB, free: 500 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.001516/0.001517, allocations: 67.55 kB / 384.2 MB, free: 56.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1365, allocations: 57.79 MB / 442 MB, free: 6.164 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001765/0.1383, allocations: 0.5006 MB / 442.5 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002715/0.141, allocations: 2.332 MB / 444.8 MB, free: 3.309 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.762e-05/0.1411, allocations: 0 / 444.8 MB, free: 3.309 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.364e-05/0.1411, allocations: 4 kB / 444.8 MB, free: 3.305 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.781e-06/0.1411, allocations: 4 kB / 444.8 MB, free: 3.301 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00134/0.1425, allocations: 0.5607 MB / 445.4 MB, free: 2.742 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 4.675e-05/0.1425, allocations: 4 kB / 445.4 MB, free: 2.738 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.79e-05/0.1426, allocations: 0 / 445.4 MB, free: 2.738 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.765e-05/0.1426, allocations: 7.984 kB / 445.4 MB, free: 2.73 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.587e-05/0.1426, allocations: 0 / 445.4 MB, free: 2.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.233e-06/0.1426, allocations: 0 / 445.4 MB, free: 2.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000864/0.1435, allocations: 0.6902 MB / 446.1 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.651e-05/0.1435, allocations: 4 kB / 446.1 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.107e-05/0.1436, allocations: 3.984 kB / 446.1 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004881/0.1441, allocations: 447.1 kB / 446.5 MB, free: 1.594 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.1441, allocations: 3.938 kB / 446.5 MB, free: 1.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1441, allocations: 4 kB / 446.5 MB, free: 1.586 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.1441, allocations: 0 / 446.5 MB, free: 1.586 MB / 318.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.0003892/0.1445, allocations: 437.2 kB / 446.9 MB, free: 1.105 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.1445, allocations: 15.83 kB / 447 MB, free: 1.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.251e-05/0.1446, allocations: 0.9375 kB / 447 MB, free: 1.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.42e-05/0.1446, allocations: 160.4 kB / 447.1 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.428e-06/0.1447, allocations: 384 / 447.1 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.253e-05/0.1447, allocations: 4.375 kB / 447.1 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.375e-05/0.1448, allocations: 38 kB / 447.2 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.1448, allocations: 0 / 447.2 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.794e-06/0.1448, allocations: 0 / 447.2 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.1448, allocations: 4 kB / 447.2 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.908e-05/0.1448, allocations: 3.938 kB / 447.2 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.558e-05/0.1449, allocations: 145.7 kB / 447.3 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.055e-05/0.145, allocations: 18.61 kB / 447.3 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.125e-05/0.145, allocations: 4.859 kB / 447.3 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.927e-06/0.145, allocations: 7.984 kB / 447.3 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.323e-05/0.145, allocations: 60.2 kB / 447.4 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.145, allocations: 0 / 447.4 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001606/0.1452, allocations: 67.41 kB / 447.5 MB, free: 464 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.813e-05/0.1452, allocations: 81.11 kB / 447.5 MB, free: 364 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.191e-05/0.1453, allocations: 89.86 kB / 447.6 MB, free: 264 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.674e-06/0.1453, allocations: 29.69 kB / 447.7 MB, free: 228 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.325e-05/0.1453, allocations: 80.27 kB / 447.7 MB, free: 144 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.393e-05/0.1453, allocations: 11.92 kB / 447.8 MB, free: 132 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.192e-05/0.1454, allocations: 13.72 kB / 447.8 MB, free: 112 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.1455, allocations: 314.8 kB / 448.1 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.053e-05/0.1455, allocations: 0 / 448.1 MB, free: 15.79 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.2e-06/0.1455, allocations: 16 / 448.1 MB, free: 15.79 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.134e-05/0.1456, allocations: 60.27 kB / 448.1 MB, free: 15.72 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1456, allocations: 0 / 448.1 MB, free: 15.72 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.811e-05/0.1456, allocations: 71.39 kB / 448.2 MB, free: 15.64 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.929e-05/0.1457, allocations: 42.89 kB / 448.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.401e-06/0.1457, allocations: 0 / 448.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.1457, allocations: 0 / 448.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.01e-07/0.1457, allocations: 0 / 448.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.1457, allocations: 0 / 448.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.62e-05/0.1458, allocations: 0 / 448.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.097e-05/0.1458, allocations: 0 / 448.2 MB, free: 15.59 MB / 334.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.225e-05/0.1459, allocations: 147.4 kB / 448.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.287e-06/0.1459, allocations: 7.969 kB / 448.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.093e-05/0.1459, allocations: 7.062 kB / 448.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.32e-07/0.1459, allocations: 0 / 448.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.1459, allocations: 0 / 448.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.1459, allocations: 4 kB / 448.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001047/0.1461, allocations: 141.7 kB / 448.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.1461, allocations: 0 / 448.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.787e-06/0.1461, allocations: 7.984 kB / 448.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.1461, allocations: 3.938 kB / 448.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-06/0.1461, allocations: 0 / 448.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.82e-07/0.1461, allocations: 4 kB / 448.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.1461, allocations: 4 kB / 448.6 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001083/0.1462, allocations: 94.78 kB / 448.7 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.595e-05/0.1463, allocations: 81.11 kB / 448.7 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.374e-05/0.1463, allocations: 3.938 kB / 448.7 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.546e-06/0.1463, allocations: 0 / 448.7 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.769e-05/0.1463, allocations: 4 kB / 448.7 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.242e-06/0.1463, allocations: 7.984 kB / 448.8 MB, free: 14.97 MB / 334.1 MB Notification: Performance of sorting global known variables: time 2.746e-05/0.1464, allocations: 79.31 kB / 448.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1464, allocations: 0 / 448.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004085/0.1468, allocations: 148 kB / 449 MB, free: 14.75 MB / 334.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.0008064/0.1476, allocations: 343.2 kB / 449.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001113/0.1477, allocations: 63.39 kB / 449.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.1477, allocations: 0 / 449.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.714e-05/0.1478, allocations: 63.34 kB / 449.4 MB, free: 14.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001261/0.1479, allocations: 5.203 kB / 449.4 MB, free: 14.26 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001786/0.1481, allocations: 69.08 kB / 449.5 MB, free: 14.17 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000298/0.1484, allocations: 0.6728 MB / 450.2 MB, free: 13.47 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.394e-06/0.1484, allocations: 3.984 kB / 450.2 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.146e-05/0.1484, allocations: 11.44 kB / 450.2 MB, free: 13.45 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1484, allocations: 128 / 450.2 MB, free: 13.45 MB / 334.1 MB Notification: Performance of Templates: time 0.007879/0.1563, allocations: 3.504 MB / 453.7 MB, free: 9.953 MB / 334.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/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