Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001733/0.001733, allocations: 174.2 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.664/1.664, allocations: 225.7 MB / 243.9 MB, free: 8.469 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007746/0.0007746, allocations: 102.4 kB / 295.1 MB, free: 9.496 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3938/0.3938, allocations: 44.31 MB / 390.5 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003234/0.0003235, allocations: 11.98 kB / 463.1 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3296/0.3299, allocations: 61.91 MB / 0.5127 GB, free: 37.88 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0005515/0.3305, allocations: 235.3 kB / 0.513 GB, free: 37.72 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002845/0.3334, allocations: 3.909 MB / 0.5168 GB, free: 34.18 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.358e-05/0.3334, allocations: 0 / 0.5168 GB, free: 34.18 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.479e-05/0.3334, allocations: 3.156 kB / 0.5168 GB, free: 34.18 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.749e-06/0.3335, allocations: 0 / 0.5168 GB, free: 34.18 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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.001066/0.3345, allocations: 469.8 kB / 0.5172 GB, free: 33.98 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.025e-05/0.3346, allocations: 0 / 0.5172 GB, free: 33.98 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.083e-05/0.3346, allocations: 0 / 0.5172 GB, free: 33.98 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.435e-05/0.3346, allocations: 2.781 kB / 0.5172 GB, free: 33.98 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.852e-05/0.3347, allocations: 4 kB / 0.5172 GB, free: 33.98 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.613e-06/0.3347, allocations: 0 / 0.5172 GB, free: 33.98 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009057/0.3356, allocations: 0.6957 MB / 0.5179 GB, free: 33.77 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.815e-06/0.3356, allocations: 3.984 kB / 0.5179 GB, free: 33.76 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.521e-05/0.3356, allocations: 25.7 kB / 0.518 GB, free: 33.73 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007526/0.3364, allocations: 454.8 kB / 0.5184 GB, free: 33.6 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3364, allocations: 0 / 0.5184 GB, free: 33.6 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.512e-06/0.3364, allocations: 0 / 0.5184 GB, free: 33.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.506e-06/0.3364, allocations: 1.219 kB / 0.5184 GB, free: 33.6 MB / 378.7 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.0003793/0.3368, allocations: 439.2 kB / 0.5188 GB, free: 33.15 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.3369, allocations: 9.656 kB / 0.5188 GB, free: 33.15 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.04e-05/0.3369, allocations: 2.609 kB / 0.5188 GB, free: 33.15 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.731e-05/0.337, allocations: 165 kB / 0.519 GB, free: 32.95 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.337, allocations: 1.375 kB / 0.519 GB, free: 32.95 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.128e-05/0.337, allocations: 2.5 kB / 0.519 GB, free: 32.95 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.954e-05/0.3371, allocations: 31.89 kB / 0.519 GB, free: 32.92 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.3371, allocations: 2.219 kB / 0.519 GB, free: 32.92 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.985e-06/0.3371, allocations: 0 / 0.519 GB, free: 32.92 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.92e-06/0.3371, allocations: 4 kB / 0.519 GB, free: 32.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.118e-05/0.3372, allocations: 6.672 kB / 0.519 GB, free: 32.91 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.898e-05/0.3373, allocations: 144.1 kB / 0.5192 GB, free: 32.72 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.324e-05/0.3373, allocations: 16.23 kB / 0.5192 GB, free: 32.7 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.469e-05/0.3373, allocations: 11.55 kB / 0.5192 GB, free: 32.69 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.474e-06/0.3373, allocations: 0 / 0.5192 GB, free: 32.69 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.354e-05/0.3374, allocations: 61.83 kB / 0.5192 GB, free: 32.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.61e-07/0.3374, allocations: 4.906 kB / 0.5192 GB, free: 32.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.000158/0.3376, allocations: 64.52 kB / 0.5193 GB, free: 32.54 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.494e-05/0.3376, allocations: 78.69 kB / 0.5194 GB, free: 32.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.429e-05/0.3376, allocations: 90.98 kB / 0.5195 GB, free: 32.35 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.793e-06/0.3376, allocations: 29.64 kB / 0.5195 GB, free: 32.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.24e-05/0.3377, allocations: 84.75 kB / 0.5196 GB, free: 32.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.764e-05/0.3377, allocations: 1.156 kB / 0.5196 GB, free: 32.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.264e-06/0.3377, allocations: 0 / 0.5196 GB, free: 32.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.25e-05/0.3377, allocations: 316.8 kB / 0.5199 GB, free: 31.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.167e-06/0.3378, allocations: 0.9688 kB / 0.5199 GB, free: 31.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.55e-06/0.3378, allocations: 1.719 kB / 0.5199 GB, free: 31.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.311e-05/0.3378, allocations: 60.12 kB / 0.5199 GB, free: 31.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3378, allocations: 0 / 0.5199 GB, free: 31.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.862e-05/0.3379, allocations: 69.16 kB / 0.52 GB, free: 31.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.839e-05/0.3379, allocations: 35.69 kB / 0.52 GB, free: 31.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.3379, allocations: 0.7969 kB / 0.52 GB, free: 31.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.338, allocations: 4.094 kB / 0.52 GB, free: 31.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.733e-06/0.338, allocations: 1.031 kB / 0.52 GB, free: 31.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.338, allocations: 4.641 kB / 0.5201 GB, free: 31.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.676e-05/0.338, allocations: 1.062 kB / 0.5201 GB, free: 31.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.338, allocations: 1.062 kB / 0.5201 GB, free: 31.73 MB / 378.7 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 5.399e-05/0.3381, allocations: 135.2 kB / 0.5202 GB, free: 31.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.145e-06/0.3381, allocations: 3.938 kB / 0.5202 GB, free: 31.58 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.162e-05/0.3381, allocations: 8.391 kB / 0.5202 GB, free: 31.58 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.31e-07/0.3381, allocations: 0 / 0.5202 GB, free: 31.58 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.3381, allocations: 5.625 kB / 0.5202 GB, free: 31.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.3381, allocations: 0 / 0.5202 GB, free: 31.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.509e-05/0.3382, allocations: 145.3 kB / 0.5203 GB, free: 31.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.3382, allocations: 1.094 kB / 0.5203 GB, free: 31.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.3382, allocations: 0 / 0.5203 GB, free: 31.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.3382, allocations: 5.594 kB / 0.5203 GB, free: 31.38 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-06/0.3382, allocations: 4 kB / 0.5203 GB, free: 31.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3382, allocations: 1.516 kB / 0.5204 GB, free: 31.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3382, allocations: 0 / 0.5204 GB, free: 31.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.426e-05/0.3383, allocations: 105.3 kB / 0.5205 GB, free: 31.27 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.778e-05/0.3383, allocations: 77.67 kB / 0.5205 GB, free: 31.17 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.314e-05/0.3384, allocations: 5.984 kB / 0.5205 GB, free: 31.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.498e-06/0.3384, allocations: 0.9062 kB / 0.5205 GB, free: 31.17 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.263e-05/0.3384, allocations: 1.547 kB / 0.5205 GB, free: 31.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-06/0.3384, allocations: 1.219 kB / 0.5205 GB, free: 31.17 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.507e-05/0.3384, allocations: 75.28 kB / 0.5206 GB, free: 31.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3384, allocations: 0 / 0.5206 GB, free: 31.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004978/0.3389, allocations: 162.7 kB / 0.5208 GB, free: 31.05 MB / 378.7 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.000798/0.3397, allocations: 344.8 kB / 0.5211 GB, free: 30.89 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.381e-05/0.3398, allocations: 56.59 kB / 0.5211 GB, free: 30.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3398, allocations: 0 / 0.5211 GB, free: 30.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.055e-05/0.3399, allocations: 70.31 kB / 0.5212 GB, free: 30.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001227/0.34, allocations: 5.484 kB / 0.5212 GB, free: 30.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001794/0.3402, allocations: 76.61 kB / 0.5213 GB, free: 30.65 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001298/0.3403, allocations: 0.6705 MB / 0.5219 GB, free: 29.95 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.923e-06/0.3403, allocations: 1.406 kB / 0.5219 GB, free: 29.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.167e-06/0.3404, allocations: 8.844 kB / 0.522 GB, free: 29.95 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3404, allocations: 0 / 0.522 GB, free: 29.95 MB / 378.7 MB Notification: Performance of Templates: time 0.0062/0.3466, allocations: 3.511 MB / 0.5254 GB, free: 29.63 MB / 378.7 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","../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches