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.001065/0.001065, allocations: 111.8 kB / 18.45 MB, free: 4.578 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.001001/0.001001, allocations: 182.3 kB / 19.38 MB, free: 3.664 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.295/1.295, allocations: 222.9 MB / 243.1 MB, free: 15.07 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.1966/0.1966, allocations: 44.19 MB / 337.4 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 59.91 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3251/0.3265, allocations: 60.82 MB / 0.5196 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001416/0.328, allocations: 0.5077 MB / 0.5201 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002712/0.3307, allocations: 2.293 MB / 0.5223 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.044e-05/0.3307, allocations: 0 / 0.5223 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.25e-05/0.3308, allocations: 5.25 kB / 0.5223 GB, free: 1.688 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.681e-06/0.3308, allocations: 0 / 0.5223 GB, free: 1.688 MB / 382.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.001519/0.3323, allocations: 0.565 MB / 0.5229 GB, free: 1.461 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.557e-05/0.3323, allocations: 5.922 kB / 0.5229 GB, free: 1.457 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.615e-05/0.3324, allocations: 1.797 kB / 0.5229 GB, free: 1.457 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.587e-05/0.3324, allocations: 1.094 kB / 0.5229 GB, free: 1.457 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.74e-05/0.3324, allocations: 1.188 kB / 0.5229 GB, free: 1.457 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.46e-06/0.3324, allocations: 0 / 0.5229 GB, free: 1.457 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001074/0.3335, allocations: 0.693 MB / 0.5235 GB, free: 1.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.786e-06/0.3335, allocations: 1.469 kB / 0.5235 GB, free: 1.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.723e-05/0.3336, allocations: 0 / 0.5235 GB, free: 1.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006839/0.3343, allocations: 455.7 kB / 0.524 GB, free: 1.094 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3343, allocations: 0 / 0.524 GB, free: 1.094 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3343, allocations: 0.5625 kB / 0.524 GB, free: 1.094 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.3343, allocations: 4 kB / 0.524 GB, free: 1.09 MB / 382.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.0003583/0.3347, allocations: 437.3 kB / 0.5244 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.3347, allocations: 9.688 kB / 0.5244 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.261e-05/0.3347, allocations: 1.5 kB / 0.5244 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.16e-05/0.3348, allocations: 161.5 kB / 0.5246 GB, free: 464 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.305e-05/0.3348, allocations: 1.656 kB / 0.5246 GB, free: 464 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.704e-06/0.3348, allocations: 384 / 0.5246 GB, free: 464 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.323e-05/0.3349, allocations: 37.89 kB / 0.5246 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.3349, allocations: 1.656 kB / 0.5246 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.3349, allocations: 4 kB / 0.5246 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-06/0.335, allocations: 0 / 0.5246 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.042e-05/0.335, allocations: 2.125 kB / 0.5246 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.021e-05/0.3351, allocations: 145 kB / 0.5247 GB, free: 228 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.48e-05/0.3351, allocations: 19.83 kB / 0.5248 GB, free: 200 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.377e-05/0.3351, allocations: 7.281 kB / 0.5248 GB, free: 192 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.965e-06/0.3352, allocations: 0 / 0.5248 GB, free: 192 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.709e-05/0.3352, allocations: 70.5 kB / 0.5248 GB, free: 108 kB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.3352, allocations: 0 / 0.5248 GB, free: 108 kB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001582/0.3354, allocations: 61.64 kB / 0.5249 GB, free: 44 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.631e-05/0.3355, allocations: 82.45 kB / 0.525 GB, free: 15.95 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.262e-05/0.3355, allocations: 90.52 kB / 0.5251 GB, free: 15.85 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.277e-05/0.3355, allocations: 27.11 kB / 0.5251 GB, free: 15.82 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.463e-05/0.3355, allocations: 80.14 kB / 0.5252 GB, free: 15.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.623e-05/0.3356, allocations: 0 / 0.5252 GB, free: 15.73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.668e-05/0.3356, allocations: 21.47 kB / 0.5252 GB, free: 15.71 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.3357, allocations: 311.5 kB / 0.5255 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.588e-06/0.3357, allocations: 5.953 kB / 0.5255 GB, free: 15.39 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.281e-06/0.3358, allocations: 0.9375 kB / 0.5255 GB, free: 15.39 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.859e-05/0.3358, allocations: 61.67 kB / 0.5255 GB, free: 15.32 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3358, allocations: 0 / 0.5255 GB, free: 15.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.678e-05/0.3359, allocations: 68.28 kB / 0.5256 GB, free: 15.25 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.068e-05/0.3359, allocations: 40.56 kB / 0.5256 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.336, allocations: 0 / 0.5256 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.336, allocations: 0 / 0.5256 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.064e-06/0.336, allocations: 2.125 kB / 0.5257 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.336, allocations: 0 / 0.5257 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.472e-05/0.336, allocations: 0 / 0.5257 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.061e-06/0.336, allocations: 1.344 kB / 0.5257 GB, free: 15.21 MB / 398.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 7.891e-05/0.3361, allocations: 135.2 kB / 0.5258 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.193e-05/0.3361, allocations: 13.55 kB / 0.5258 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.227e-05/0.3361, allocations: 11.88 kB / 0.5258 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.3361, allocations: 5.172 kB / 0.5258 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3361, allocations: 0 / 0.5258 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.3362, allocations: 0 / 0.5258 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.402e-05/0.3363, allocations: 146.5 kB / 0.5259 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.3363, allocations: 0 / 0.5259 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.573e-06/0.3363, allocations: 0.5156 kB / 0.5259 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.3363, allocations: 5.25 kB / 0.526 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.291e-06/0.3363, allocations: 0.8906 kB / 0.526 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.3363, allocations: 1.312 kB / 0.526 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3363, allocations: 0 / 0.526 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001019/0.3364, allocations: 100.4 kB / 0.5261 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.166e-05/0.3364, allocations: 79.31 kB / 0.5261 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.406e-05/0.3365, allocations: 5.469 kB / 0.5261 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.718e-06/0.3365, allocations: 0.9844 kB / 0.5261 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.506e-05/0.3365, allocations: 1.656 kB / 0.5261 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-06/0.3365, allocations: 0 / 0.5261 GB, free: 14.64 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.983e-05/0.3365, allocations: 79.31 kB / 0.5262 GB, free: 14.57 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3365, allocations: 4.031 kB / 0.5262 GB, free: 14.56 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004457/0.337, allocations: 156.7 kB / 0.5264 GB, free: 14.52 MB / 398.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.000789/0.3378, allocations: 329.1 kB / 0.5267 GB, free: 14.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001139/0.3379, allocations: 66.31 kB / 0.5267 GB, free: 14.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3379, allocations: 0 / 0.5267 GB, free: 14.29 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.707e-05/0.338, allocations: 55.66 kB / 0.5268 GB, free: 14.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001283/0.3381, allocations: 2.75 kB / 0.5268 GB, free: 14.23 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002081/0.3383, allocations: 107 kB / 0.5269 GB, free: 14.1 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003018/0.3386, allocations: 0.6757 MB / 0.5276 GB, free: 13.4 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.403e-05/0.3387, allocations: 8.812 kB / 0.5276 GB, free: 13.39 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3387, allocations: 3.938 kB / 0.5276 GB, free: 13.39 MB / 398.1 MB Notification: Performance of Templates: time 0.006013/0.3447, allocations: 3.292 MB / 0.5308 GB, free: 11.91 MB / 398.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