Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.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.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 113.8 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.001347/0.001348, allocations: 183.8 kB / 18.71 MB, free: 4.324 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.557/1.557, 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.2305/0.2305, allocations: 44.19 MB / 336.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 55.91 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5255/0.5268, allocations: 60.82 MB / 0.5189 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.002212/0.529, allocations: 0.5059 MB / 0.5194 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003082/0.5321, allocations: 2.044 MB / 0.5214 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.823e-05/0.5322, allocations: 0 / 0.5214 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.74e-05/0.5322, allocations: 0 / 0.5214 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.324e-06/0.5322, allocations: 0 / 0.5214 GB, free: 1.859 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:1013:5-1096:22:writable] Warning: Pure function 'ModelicaTest.Math.Random.distributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001582/0.5338, allocations: 0.4964 MB / 0.5219 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.333e-05/0.5339, allocations: 2.203 kB / 0.5219 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.072e-05/0.5339, allocations: 2.156 kB / 0.5219 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.75e-05/0.534, allocations: 0.6094 kB / 0.5219 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.688e-05/0.534, allocations: 1.062 kB / 0.5219 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.542e-06/0.534, allocations: 0 / 0.5219 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001215/0.5352, allocations: 0.6138 MB / 0.5225 GB, free: 1.469 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.023e-05/0.5352, allocations: 1.062 kB / 0.5225 GB, free: 1.469 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.201e-05/0.5353, allocations: 1.984 kB / 0.5225 GB, free: 1.469 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006901/0.536, allocations: 383.1 kB / 0.5228 GB, free: 1.355 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.536, allocations: 0 / 0.5228 GB, free: 1.355 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.536, allocations: 1.125 kB / 0.5228 GB, free: 1.355 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.536, allocations: 0 / 0.5228 GB, free: 1.355 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.0004201/0.5364, allocations: 413 kB / 0.5232 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.5365, allocations: 10.09 kB / 0.5232 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.32e-05/0.5365, allocations: 5.578 kB / 0.5233 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.416e-05/0.5366, allocations: 165.8 kB / 0.5234 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.5366, allocations: 1.031 kB / 0.5234 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.054e-05/0.5366, allocations: 5.406 kB / 0.5234 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.276e-05/0.5367, allocations: 33.52 kB / 0.5234 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.5367, allocations: 0.9688 kB / 0.5234 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.347e-06/0.5367, allocations: 0 / 0.5234 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.5368, allocations: 1.031 kB / 0.5234 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.61e-05/0.5368, allocations: 5.781 kB / 0.5235 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.919e-05/0.5369, allocations: 152 kB / 0.5236 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.711e-05/0.5369, allocations: 21.33 kB / 0.5236 GB, free: 480 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.477e-05/0.537, allocations: 10.94 kB / 0.5236 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.118e-06/0.537, allocations: 0 / 0.5236 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.38e-05/0.537, allocations: 62.48 kB / 0.5237 GB, free: 392 kB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 6.91e-07/0.537, allocations: 0 / 0.5237 GB, free: 392 kB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001699/0.5372, allocations: 65.61 kB / 0.5238 GB, free: 324 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.5373, allocations: 79.36 kB / 0.5238 GB, free: 228 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.486e-05/0.5373, allocations: 93.8 kB / 0.5239 GB, free: 124 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.316e-06/0.5373, allocations: 29.83 kB / 0.5239 GB, free: 88 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.337e-05/0.5373, allocations: 80.14 kB / 0.524 GB, free: 4 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.284e-05/0.5373, allocations: 2.312 kB / 0.524 GB, free: 4 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.942e-05/0.5374, allocations: 12.02 kB / 0.524 GB, free: 15.99 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.5375, allocations: 311.4 kB / 0.5243 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.218e-06/0.5375, allocations: 1.781 kB / 0.5243 GB, free: 15.68 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.798e-06/0.5375, allocations: 6.469 kB / 0.5243 GB, free: 15.67 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.502e-05/0.5376, allocations: 63.38 kB / 0.5244 GB, free: 15.6 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.5376, allocations: 0 / 0.5244 GB, free: 15.6 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.482e-05/0.5377, allocations: 60.12 kB / 0.5245 GB, free: 15.54 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.865e-05/0.5377, allocations: 35.77 kB / 0.5245 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.5377, allocations: 6.312 kB / 0.5245 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.5378, allocations: 0 / 0.5245 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.733e-06/0.5378, allocations: 4.453 kB / 0.5245 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.5378, allocations: 0 / 0.5245 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.595e-05/0.5378, allocations: 1.781 kB / 0.5245 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-06/0.5378, allocations: 0.6562 kB / 0.5245 GB, free: 15.49 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.722e-05/0.5379, allocations: 142.2 kB / 0.5246 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.618e-06/0.5379, allocations: 10.25 kB / 0.5247 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.304e-05/0.5379, allocations: 7.875 kB / 0.5247 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.5379, allocations: 0 / 0.5247 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.538, allocations: 1.781 kB / 0.5247 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.538, allocations: 0 / 0.5247 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001038/0.5381, allocations: 146.2 kB / 0.5248 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.5381, allocations: 0 / 0.5248 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.5381, allocations: 0 / 0.5248 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.5381, allocations: 7.938 kB / 0.5248 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.5381, allocations: 6.312 kB / 0.5248 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.5381, allocations: 0 / 0.5248 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.5381, allocations: 0.8438 kB / 0.5248 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.634e-05/0.5382, allocations: 92.02 kB / 0.5249 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.403e-05/0.5383, allocations: 83.64 kB / 0.525 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.379e-05/0.5383, allocations: 8.531 kB / 0.525 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.276e-06/0.5383, allocations: 1.844 kB / 0.525 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.4e-05/0.5383, allocations: 4.547 kB / 0.525 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-06/0.5383, allocations: 1.781 kB / 0.525 GB, free: 14.91 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.679e-05/0.5384, allocations: 75.28 kB / 0.5251 GB, free: 14.84 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5384, allocations: 0 / 0.5251 GB, free: 14.84 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004474/0.5388, allocations: 128.5 kB / 0.5252 GB, free: 14.81 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.0007629/0.5396, allocations: 298.9 kB / 0.5255 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001101/0.5397, allocations: 63 kB / 0.5255 GB, free: 14.59 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.5397, allocations: 0 / 0.5255 GB, free: 14.59 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.55e-05/0.5398, allocations: 55.25 kB / 0.5256 GB, free: 14.53 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001265/0.5399, allocations: 4.844 kB / 0.5256 GB, free: 14.53 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001921/0.5401, allocations: 84.75 kB / 0.5257 GB, free: 14.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002494/0.5404, allocations: 0.6754 MB / 0.5263 GB, free: 13.73 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.322e-06/0.5404, allocations: 4 kB / 0.5263 GB, free: 13.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.349e-05/0.5404, allocations: 9.906 kB / 0.5263 GB, free: 13.72 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.5404, allocations: 0 / 0.5263 GB, free: 13.72 MB / 398.1 MB Notification: Performance of Templates: time 0.007844/0.5483, allocations: 3.416 MB / 0.5297 GB, free: 12.21 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches