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.001521/0.001521, allocations: 113.4 kB / 17.86 MB, free: 5.625 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.001649/0.001649, allocations: 201.9 kB / 18.77 MB, free: 4.711 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.413/1.413, allocations: 222.9 MB / 242.5 MB, free: 15.33 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.2077/0.2077, allocations: 44.18 MB / 336.8 MB, free: 2.957 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002016/0.002017, allocations: 69.14 kB / 408.4 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1303, allocations: 60.83 MB / 469.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001895/0.1323, allocations: 0.5605 MB / 469.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003564/0.1358, allocations: 2.377 MB / 472.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.651e-05/0.1359, allocations: 0 / 472.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.197e-05/0.1359, allocations: 0 / 472.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.43e-06/0.136, allocations: 0 / 472.1 MB, free: 11.86 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.001627/0.1376, allocations: 466.9 kB / 472.6 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.369e-05/0.1377, allocations: 3.984 kB / 472.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.615e-05/0.1377, allocations: 0 / 472.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.961e-05/0.1377, allocations: 4 kB / 472.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.934e-05/0.1378, allocations: 11.94 kB / 472.6 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.001e-06/0.1378, allocations: 0 / 472.6 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00122/0.139, allocations: 0.7096 MB / 473.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.088e-05/0.139, allocations: 8 kB / 473.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.146e-05/0.1391, allocations: 7.922 kB / 473.3 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005361/0.1396, allocations: 291.8 kB / 473.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1396, allocations: 0 / 473.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.1396, allocations: 0 / 473.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.1396, allocations: 0 / 473.6 MB, free: 10.37 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.0005412/0.1402, allocations: 441.2 kB / 474 MB, free: 9.883 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.1402, allocations: 12.03 kB / 474 MB, free: 9.871 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.833e-05/0.1403, allocations: 0.9375 kB / 474 MB, free: 9.871 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.1404, allocations: 160.4 kB / 474.2 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.232e-05/0.1404, allocations: 384 / 474.2 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.157e-06/0.1404, allocations: 384 / 474.2 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.74e-05/0.1405, allocations: 34.02 kB / 474.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.742e-06/0.1405, allocations: 0 / 474.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.819e-06/0.1405, allocations: 3.984 kB / 474.2 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.137e-06/0.1405, allocations: 0 / 474.2 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.062e-05/0.1406, allocations: 8 kB / 474.2 MB, free: 9.625 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001382/0.1407, allocations: 145.7 kB / 474.4 MB, free: 9.434 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.122e-05/0.1408, allocations: 18.52 kB / 474.4 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.409e-05/0.1408, allocations: 8.953 kB / 474.4 MB, free: 9.395 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.118e-06/0.1408, allocations: 0 / 474.4 MB, free: 9.395 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.184e-05/0.1409, allocations: 64.19 kB / 474.5 MB, free: 9.316 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.1409, allocations: 4 kB / 474.5 MB, free: 9.312 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001787/0.1411, allocations: 67.39 kB / 474.5 MB, free: 9.234 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.886e-05/0.1411, allocations: 81.05 kB / 474.6 MB, free: 9.137 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.121e-05/0.1412, allocations: 89.86 kB / 474.7 MB, free: 9.039 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.713e-05/0.1412, allocations: 29.7 kB / 474.7 MB, free: 9.004 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.469e-05/0.1412, allocations: 80.14 kB / 474.8 MB, free: 8.922 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.277e-05/0.1413, allocations: 0 / 474.8 MB, free: 8.922 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.944e-05/0.1413, allocations: 17.64 kB / 474.8 MB, free: 8.898 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.1415, allocations: 323 kB / 475.2 MB, free: 8.574 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.042e-05/0.1415, allocations: 0 / 475.2 MB, free: 8.574 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.62e-06/0.1415, allocations: 0 / 475.2 MB, free: 8.574 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.816e-05/0.1415, allocations: 60.27 kB / 475.2 MB, free: 8.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1415, allocations: 0 / 475.2 MB, free: 8.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.997e-05/0.1416, allocations: 67.33 kB / 475.3 MB, free: 8.422 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.001e-05/0.1417, allocations: 37.64 kB / 475.3 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.1417, allocations: 0 / 475.3 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.1417, allocations: 96 / 475.3 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.302e-06/0.1417, allocations: 7.938 kB / 475.3 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.1417, allocations: 7.984 kB / 475.3 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.704e-05/0.1418, allocations: 0 / 475.3 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.665e-06/0.1418, allocations: 0 / 475.3 MB, free: 8.363 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 9.45e-05/0.1419, allocations: 136.1 kB / 475.5 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.056e-05/0.1419, allocations: 3.938 kB / 475.5 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.412e-05/0.1419, allocations: 11.06 kB / 475.5 MB, free: 8.199 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.1419, allocations: 0 / 475.5 MB, free: 8.199 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.1419, allocations: 0 / 475.5 MB, free: 8.199 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.1419, allocations: 4 kB / 475.5 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001174/0.1421, allocations: 153.6 kB / 475.6 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.1421, allocations: 0 / 475.6 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.559e-06/0.1421, allocations: 4 kB / 475.6 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.1421, allocations: 3.938 kB / 475.6 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.1421, allocations: 0 / 475.6 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.1421, allocations: 3.984 kB / 475.6 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1421, allocations: 0 / 475.6 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001143/0.1422, allocations: 94.78 kB / 475.7 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.64e-05/0.1423, allocations: 77.11 kB / 475.8 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.1423, allocations: 11.92 kB / 475.8 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.598e-06/0.1423, allocations: 0 / 475.8 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.376e-05/0.1423, allocations: 4 kB / 475.8 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-06/0.1423, allocations: 0 / 475.8 MB, free: 7.758 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.867e-05/0.1424, allocations: 75.28 kB / 475.9 MB, free: 7.684 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1424, allocations: 0 / 475.9 MB, free: 7.684 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005206/0.1429, allocations: 155.9 kB / 476.1 MB, free: 7.531 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.0008789/0.1438, allocations: 338.7 kB / 476.4 MB, free: 7.199 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.508e-05/0.1439, allocations: 55.41 kB / 476.4 MB, free: 7.133 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1439, allocations: 0 / 476.4 MB, free: 7.133 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.427e-05/0.1439, allocations: 63.45 kB / 476.5 MB, free: 7.059 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001245/0.1441, allocations: 9.5 kB / 476.5 MB, free: 7.051 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002156/0.1443, allocations: 108.3 kB / 476.6 MB, free: 6.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002464/0.1446, allocations: 0.6692 MB / 477.3 MB, free: 6.215 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.441e-05/0.1446, allocations: 11.44 kB / 477.3 MB, free: 6.203 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1446, allocations: 0 / 477.3 MB, free: 6.203 MB / 350.1 MB Notification: Performance of Templates: time 0.006098/0.1507, allocations: 3.28 MB / 480.6 MB, free: 2.918 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/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