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.001668/0.001668, allocations: 118.4 kB / 17.79 MB, free: 5.254 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.001688/0.001688, allocations: 183.8 kB / 18.72 MB, free: 4.332 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.497/1.497, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2286/0.2286, allocations: 44.19 MB / 336.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 59.91 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4213/0.4225, allocations: 60.82 MB / 0.5189 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001607/0.4241, allocations: 0.5023 MB / 0.5194 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003455/0.4276, allocations: 2.305 MB / 0.5216 GB, free: 1.699 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.883e-05/0.4276, allocations: 1.344 kB / 0.5216 GB, free: 1.699 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.092e-05/0.4276, allocations: 0 / 0.5216 GB, free: 1.699 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.307e-06/0.4277, allocations: 0 / 0.5216 GB, free: 1.699 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.002593/0.4302, allocations: 0.5656 MB / 0.5222 GB, free: 1.473 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.307e-05/0.4303, allocations: 5.078 kB / 0.5222 GB, free: 1.469 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.517e-05/0.4304, allocations: 1.625 kB / 0.5222 GB, free: 1.469 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.769e-05/0.4304, allocations: 1.781 kB / 0.5222 GB, free: 1.469 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.979e-05/0.4304, allocations: 1.125 kB / 0.5222 GB, free: 1.469 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.606e-06/0.4304, allocations: 0 / 0.5222 GB, free: 1.469 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001603/0.432, allocations: 0.6931 MB / 0.5229 GB, free: 1.242 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.157e-05/0.432, allocations: 5.141 kB / 0.5229 GB, free: 1.238 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.27e-05/0.432, allocations: 3.938 kB / 0.5229 GB, free: 1.234 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001107/0.4332, allocations: 439.3 kB / 0.5233 GB, free: 1.113 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.4332, allocations: 5.688 kB / 0.5233 GB, free: 1.109 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.103e-06/0.4332, allocations: 0 / 0.5233 GB, free: 1.109 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.4332, allocations: 0.8906 kB / 0.5233 GB, free: 1.109 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.0005915/0.4338, allocations: 443.6 kB / 0.5237 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.4338, allocations: 10.16 kB / 0.5237 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.771e-05/0.4338, allocations: 0.9375 kB / 0.5237 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.642e-05/0.4339, allocations: 165.5 kB / 0.5239 GB, free: 472 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.4339, allocations: 6 kB / 0.5239 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.624e-06/0.4339, allocations: 384 / 0.5239 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.603e-05/0.434, allocations: 34.36 kB / 0.5239 GB, free: 432 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.343e-06/0.434, allocations: 0 / 0.5239 GB, free: 432 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-06/0.434, allocations: 8 kB / 0.524 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.583e-06/0.434, allocations: 6.344 kB / 0.524 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.676e-05/0.434, allocations: 0 / 0.524 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.639e-05/0.4341, allocations: 144.5 kB / 0.5241 GB, free: 228 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.121e-05/0.4342, allocations: 25.78 kB / 0.5241 GB, free: 196 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.711e-05/0.4342, allocations: 6.516 kB / 0.5241 GB, free: 188 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.216e-06/0.4342, allocations: 0 / 0.5241 GB, free: 188 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.384e-05/0.4343, allocations: 69.86 kB / 0.5242 GB, free: 104 kB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.4343, allocations: 0 / 0.5242 GB, free: 104 kB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001752/0.4344, allocations: 63.5 kB / 0.5243 GB, free: 40 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.748e-05/0.4345, allocations: 81.11 kB / 0.5243 GB, free: 15.94 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.169e-05/0.4345, allocations: 90.66 kB / 0.5244 GB, free: 15.84 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.129e-05/0.4345, allocations: 26.86 kB / 0.5244 GB, free: 15.81 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.708e-05/0.4346, allocations: 80.14 kB / 0.5245 GB, free: 15.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.081e-05/0.4346, allocations: 9.188 kB / 0.5245 GB, free: 15.72 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.385e-05/0.4346, allocations: 16.98 kB / 0.5245 GB, free: 15.7 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.4347, allocations: 311.6 kB / 0.5248 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.122e-05/0.4348, allocations: 1.469 kB / 0.5248 GB, free: 15.39 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.514e-06/0.4348, allocations: 1.734 kB / 0.5248 GB, free: 15.39 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.393e-05/0.4348, allocations: 63.81 kB / 0.5249 GB, free: 15.32 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.4348, allocations: 0 / 0.5249 GB, free: 15.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.226e-05/0.4349, allocations: 60.64 kB / 0.525 GB, free: 15.25 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.58e-05/0.4349, allocations: 35.5 kB / 0.525 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.4349, allocations: 5.906 kB / 0.525 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.4349, allocations: 0.6094 kB / 0.525 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.42e-07/0.4349, allocations: 0 / 0.525 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.435, allocations: 3.938 kB / 0.525 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.667e-05/0.435, allocations: 2.531 kB / 0.525 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.944e-06/0.435, allocations: 0 / 0.525 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 9.32e-05/0.4351, allocations: 140.5 kB / 0.5251 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.126e-05/0.4351, allocations: 7.891 kB / 0.5252 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.159e-05/0.4351, allocations: 7.594 kB / 0.5252 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.4351, allocations: 6.719 kB / 0.5252 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.4351, allocations: 0 / 0.5252 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.4351, allocations: 0 / 0.5252 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001045/0.4352, allocations: 145.7 kB / 0.5253 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.4352, allocations: 0 / 0.5253 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.4352, allocations: 0 / 0.5253 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.4352, allocations: 8.391 kB / 0.5253 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.252e-06/0.4352, allocations: 1.844 kB / 0.5253 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.4352, allocations: 0.7969 kB / 0.5253 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.4352, allocations: 0 / 0.5253 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.695e-05/0.4353, allocations: 93.97 kB / 0.5254 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.477e-05/0.4354, allocations: 82.45 kB / 0.5255 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.468e-05/0.4354, allocations: 5.719 kB / 0.5255 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.184e-05/0.4354, allocations: 4 kB / 0.5255 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.22e-05/0.4354, allocations: 4.453 kB / 0.5255 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.068e-06/0.4354, allocations: 2.656 kB / 0.5255 GB, free: 14.64 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.831e-05/0.4354, allocations: 79.31 kB / 0.5256 GB, free: 14.56 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4354, allocations: 4.031 kB / 0.5256 GB, free: 14.55 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006473/0.4361, allocations: 160.9 kB / 0.5257 GB, free: 14.51 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.0009715/0.4371, allocations: 340.7 kB / 0.5261 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001204/0.4372, allocations: 58.27 kB / 0.5261 GB, free: 14.27 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4372, allocations: 4.062 kB / 0.5261 GB, free: 14.27 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.512e-05/0.4372, allocations: 56.19 kB / 0.5262 GB, free: 14.21 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000135/0.4374, allocations: 1.938 kB / 0.5262 GB, free: 14.21 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000248/0.4376, allocations: 78.92 kB / 0.5262 GB, free: 14.11 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003228/0.4379, allocations: 0.6751 MB / 0.5269 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.765e-06/0.4379, allocations: 3.938 kB / 0.5269 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.824e-05/0.438, allocations: 8.812 kB / 0.5269 GB, free: 13.4 MB / 398.1 MB Notification: Performance of SimCode: time 1.172e-06/0.438, allocations: 1.375 kB / 0.5269 GB, free: 13.4 MB / 398.1 MB Notification: Performance of Templates: time 0.01023/0.4482, allocations: 3.516 MB / 0.5304 GB, free: 11.75 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/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