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.001227/0.001227, allocations: 114.4 kB / 17.78 MB, free: 5.246 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.001359/0.00136, allocations: 183 kB / 18.71 MB, free: 4.32 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.4 MB, free: 15.06 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.2164/0.2164, allocations: 44.18 MB / 336.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 59.91 kB / 470.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4042/0.4058, allocations: 60.82 MB / 0.5189 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001519/0.4073, allocations: 0.5081 MB / 0.5194 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002843/0.4102, allocations: 2.294 MB / 0.5216 GB, free: 1.688 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.476e-05/0.4102, allocations: 0 / 0.5216 GB, free: 1.688 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.738e-05/0.4102, allocations: 3.938 kB / 0.5216 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.099e-06/0.4103, allocations: 5.062 kB / 0.5216 GB, free: 1.68 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.001487/0.4118, allocations: 0.5579 MB / 0.5222 GB, free: 1.461 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.924e-05/0.4118, allocations: 9.391 kB / 0.5222 GB, free: 1.453 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.965e-05/0.4119, allocations: 2.188 kB / 0.5222 GB, free: 1.453 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.477e-05/0.4119, allocations: 1.438 kB / 0.5222 GB, free: 1.453 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.383e-05/0.4119, allocations: 0 / 0.5222 GB, free: 1.453 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.18e-06/0.4119, allocations: 1.5 kB / 0.5222 GB, free: 1.453 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001031/0.4129, allocations: 0.6931 MB / 0.5229 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.837e-06/0.413, allocations: 3.984 kB / 0.5229 GB, free: 1.223 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.902e-05/0.413, allocations: 5.125 kB / 0.5229 GB, free: 1.219 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006569/0.4136, allocations: 444.9 kB / 0.5233 GB, free: 1.094 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.4137, allocations: 0 / 0.5233 GB, free: 1.094 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.4137, allocations: 0 / 0.5233 GB, free: 1.094 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.4137, allocations: 7.938 kB / 0.5233 GB, free: 1.086 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.000341/0.414, allocations: 431.9 kB / 0.5237 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.4141, allocations: 10.06 kB / 0.5237 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.053e-05/0.4141, allocations: 2.031 kB / 0.5237 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.613e-05/0.4142, allocations: 161.6 kB / 0.5239 GB, free: 464 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.835e-06/0.4142, allocations: 4.375 kB / 0.5239 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.388e-06/0.4142, allocations: 1.406 kB / 0.5239 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.095e-05/0.4143, allocations: 35 kB / 0.5239 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.4143, allocations: 4 kB / 0.5239 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.183e-06/0.4143, allocations: 0 / 0.5239 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.427e-06/0.4143, allocations: 0 / 0.5239 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.544e-05/0.4143, allocations: 2.141 kB / 0.5239 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.65e-05/0.4144, allocations: 149.2 kB / 0.5241 GB, free: 224 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.266e-05/0.4144, allocations: 20.41 kB / 0.5241 GB, free: 196 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.271e-05/0.4145, allocations: 6.438 kB / 0.5241 GB, free: 188 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.897e-06/0.4145, allocations: 1.156 kB / 0.5241 GB, free: 188 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.155e-05/0.4145, allocations: 70.64 kB / 0.5242 GB, free: 104 kB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 7.72e-07/0.4145, allocations: 0 / 0.5242 GB, free: 104 kB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001477/0.4147, allocations: 69.73 kB / 0.5242 GB, free: 32 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.807e-05/0.4147, allocations: 77.95 kB / 0.5243 GB, free: 15.94 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.781e-05/0.4148, allocations: 90.61 kB / 0.5244 GB, free: 15.84 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.229e-05/0.4148, allocations: 25.7 kB / 0.5244 GB, free: 15.81 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.488e-05/0.4148, allocations: 81.02 kB / 0.5245 GB, free: 15.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.996e-05/0.4149, allocations: 1.125 kB / 0.5245 GB, free: 15.73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.094e-05/0.4149, allocations: 17.08 kB / 0.5245 GB, free: 15.71 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.415, allocations: 319.6 kB / 0.5248 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.003e-05/0.415, allocations: 1.609 kB / 0.5248 GB, free: 15.39 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.991e-06/0.415, allocations: 1.375 kB / 0.5248 GB, free: 15.39 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.483e-05/0.4151, allocations: 60.52 kB / 0.5249 GB, free: 15.32 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.4151, allocations: 0 / 0.5249 GB, free: 15.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.381e-05/0.4152, allocations: 64.27 kB / 0.5249 GB, free: 15.25 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.132e-05/0.4152, allocations: 43.64 kB / 0.525 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-06/0.4152, allocations: 1.859 kB / 0.525 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.4152, allocations: 0 / 0.525 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.4153, allocations: 0 / 0.525 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.4153, allocations: 1.797 kB / 0.525 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.351e-05/0.4153, allocations: 0 / 0.525 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.212e-06/0.4153, allocations: 1.5 kB / 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 8.503e-05/0.4154, allocations: 139.5 kB / 0.5251 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.308e-06/0.4154, allocations: 3.938 kB / 0.5251 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.155e-05/0.4154, allocations: 12.45 kB / 0.5251 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.4154, allocations: 1.156 kB / 0.5251 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.4154, allocations: 0.5625 kB / 0.5251 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.4154, allocations: 3.984 kB / 0.5252 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.319e-05/0.4155, allocations: 146.2 kB / 0.5253 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.4155, allocations: 0 / 0.5253 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.91e-07/0.4155, allocations: 1.75 kB / 0.5253 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.4155, allocations: 3.938 kB / 0.5253 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-06/0.4156, allocations: 0.8438 kB / 0.5253 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.4156, allocations: 1.406 kB / 0.5253 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.4156, allocations: 4 kB / 0.5253 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.947e-05/0.4157, allocations: 93.47 kB / 0.5254 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.57e-05/0.4157, allocations: 77.91 kB / 0.5255 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.557e-05/0.4157, allocations: 9.25 kB / 0.5255 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.438e-06/0.4158, allocations: 1.562 kB / 0.5255 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.528e-06/0.4158, allocations: 0.6094 kB / 0.5255 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.506e-06/0.4158, allocations: 1.344 kB / 0.5255 GB, free: 14.64 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.313e-05/0.4158, allocations: 83.34 kB / 0.5256 GB, free: 14.56 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4158, allocations: 0 / 0.5256 GB, free: 14.56 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004686/0.4163, allocations: 156.3 kB / 0.5257 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.0007544/0.4171, allocations: 337.3 kB / 0.526 GB, free: 14.35 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001063/0.4172, allocations: 62.84 kB / 0.5261 GB, free: 14.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.4172, allocations: 3.938 kB / 0.5261 GB, free: 14.28 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.303e-05/0.4172, allocations: 55.2 kB / 0.5261 GB, free: 14.22 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001256/0.4174, allocations: 4.016 kB / 0.5261 GB, free: 14.22 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001973/0.4176, allocations: 85.88 kB / 0.5262 GB, free: 14.12 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002402/0.4178, allocations: 0.675 MB / 0.5269 GB, free: 13.42 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.51e-06/0.4178, allocations: 0 / 0.5269 GB, free: 13.42 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.31e-05/0.4178, allocations: 8.781 kB / 0.5269 GB, free: 13.41 MB / 398.1 MB Notification: Performance of SimCode: time 2.71e-07/0.4179, allocations: 4.125 kB / 0.5269 GB, free: 13.41 MB / 398.1 MB Notification: Performance of Templates: time 0.007129/0.425, allocations: 3.511 MB / 0.5303 GB, free: 11.77 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