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.00147/0.00147, allocations: 111 kB / 17.33 MB, free: 5.988 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.001527/0.001527, allocations: 193.3 kB / 18.25 MB, free: 5.086 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.349/1.349, allocations: 222.9 MB / 241.9 MB, free: 15.36 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.2304/0.2304, allocations: 44.19 MB / 336.2 MB, free: 2.941 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 71.94 kB / 407.9 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1251, allocations: 60.82 MB / 468.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001755/0.1269, allocations: 0.5635 MB / 469.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003061/0.13, allocations: 2.295 MB / 471.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.43e-05/0.1301, allocations: 0 / 471.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.063e-05/0.1301, allocations: 0 / 471.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.785e-06/0.1301, allocations: 0 / 471.6 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.001433/0.1315, allocations: 0.5067 MB / 472.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.119e-05/0.1316, allocations: 4 kB / 472.1 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.886e-05/0.1316, allocations: 8 kB / 472.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.477e-05/0.1317, allocations: 0 / 472.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.491e-05/0.1317, allocations: 0 / 472.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.152e-06/0.1317, allocations: 0 / 472.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001123/0.1328, allocations: 0.7252 MB / 472.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.386e-06/0.1328, allocations: 3.938 kB / 472.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.32e-05/0.1329, allocations: 0 / 472.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006602/0.1335, allocations: 463.4 kB / 473.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.1336, allocations: 0 / 473.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1336, allocations: 3.938 kB / 473.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.05e-06/0.1336, allocations: 0 / 473.3 MB, free: 10.16 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.0005364/0.1341, allocations: 441.2 kB / 473.7 MB, free: 9.672 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.1342, allocations: 11.97 kB / 473.7 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.643e-05/0.1342, allocations: 0.9375 kB / 473.7 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001184/0.1343, allocations: 164.4 kB / 473.9 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.187e-05/0.1343, allocations: 384 / 473.9 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.304e-05/0.1344, allocations: 4.375 kB / 473.9 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001045/0.1345, allocations: 34 kB / 473.9 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.1345, allocations: 0 / 473.9 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.1345, allocations: 0 / 473.9 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.1345, allocations: 0 / 473.9 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.042e-05/0.1345, allocations: 4 kB / 473.9 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001609/0.1347, allocations: 141.7 kB / 474.1 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.19e-05/0.1348, allocations: 30.55 kB / 474.1 MB, free: 9.188 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.771e-05/0.1348, allocations: 8.844 kB / 474.1 MB, free: 9.176 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.326e-06/0.1348, allocations: 0 / 474.1 MB, free: 9.176 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.445e-05/0.1349, allocations: 60.2 kB / 474.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.1349, allocations: 0 / 474.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000208/0.1351, allocations: 63.41 kB / 474.2 MB, free: 9.027 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.925e-05/0.1351, allocations: 89.23 kB / 474.3 MB, free: 8.922 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.094e-05/0.1352, allocations: 93.84 kB / 474.4 MB, free: 8.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.195e-05/0.1352, allocations: 25.7 kB / 474.4 MB, free: 8.789 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.652e-05/0.1352, allocations: 80.14 kB / 474.5 MB, free: 8.707 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.809e-05/0.1353, allocations: 0 / 474.5 MB, free: 8.707 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.571e-05/0.1353, allocations: 17.66 kB / 474.5 MB, free: 8.684 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.1354, allocations: 310.8 kB / 474.8 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.337e-06/0.1354, allocations: 0 / 474.8 MB, free: 8.371 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.534e-06/0.1354, allocations: 4 kB / 474.8 MB, free: 8.367 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.168e-05/0.1355, allocations: 68.27 kB / 474.9 MB, free: 8.285 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1355, allocations: 0 / 474.9 MB, free: 8.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.854e-05/0.1356, allocations: 67.33 kB / 475 MB, free: 8.207 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.13e-05/0.1356, allocations: 33.64 kB / 475 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.1356, allocations: 4 kB / 475 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.849e-06/0.1356, allocations: 0 / 475 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.062e-06/0.1357, allocations: 0 / 475 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.1357, allocations: 0 / 475 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.97e-05/0.1357, allocations: 4.094 kB / 475 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.093e-06/0.1357, allocations: 0 / 475 MB, free: 8.16 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 0.000106/0.1358, allocations: 140.1 kB / 475.1 MB, free: 8.008 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.054e-05/0.1358, allocations: 3.938 kB / 475.1 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.399e-05/0.1358, allocations: 11.08 kB / 475.1 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.1358, allocations: 0 / 475.1 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.1359, allocations: 0 / 475.1 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.1359, allocations: 0 / 475.1 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001/0.136, allocations: 157.5 kB / 475.3 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.136, allocations: 0 / 475.3 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.136, allocations: 4 kB / 475.3 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.136, allocations: 3.938 kB / 475.3 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.192e-06/0.136, allocations: 0 / 475.3 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.136, allocations: 0 / 475.3 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.136, allocations: 4 kB / 475.3 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001118/0.1361, allocations: 94.78 kB / 475.4 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.304e-05/0.1362, allocations: 85.09 kB / 475.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.447e-05/0.1362, allocations: 7.969 kB / 475.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.088e-06/0.1362, allocations: 0 / 475.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.427e-05/0.1362, allocations: 0 / 475.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-06/0.1362, allocations: 0 / 475.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.015e-05/0.1363, allocations: 79.28 kB / 475.6 MB, free: 7.473 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1363, allocations: 4 kB / 475.6 MB, free: 7.469 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004313/0.1367, allocations: 151.9 kB / 475.7 MB, free: 7.32 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.0008144/0.1375, allocations: 338.9 kB / 476.1 MB, free: 6.988 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001163/0.1377, allocations: 59.39 kB / 476.1 MB, free: 6.918 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1377, allocations: 0 / 476.1 MB, free: 6.918 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.819e-05/0.1377, allocations: 55.41 kB / 476.2 MB, free: 6.852 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000143/0.1379, allocations: 10.81 kB / 476.2 MB, free: 6.844 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001864/0.1381, allocations: 77.06 kB / 476.3 MB, free: 6.742 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002775/0.1384, allocations: 0.6768 MB / 476.9 MB, free: 6.039 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.081e-06/0.1384, allocations: 0 / 476.9 MB, free: 6.039 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.21e-05/0.1384, allocations: 7.438 kB / 476.9 MB, free: 6.031 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1384, allocations: 0 / 476.9 MB, free: 6.031 MB / 350.1 MB Notification: Performance of Templates: time 0.006714/0.1451, allocations: 3.514 MB / 480.5 MB, free: 2.516 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