Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001567/0.001567, allocations: 118.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001745/0.001745, allocations: 197.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2266/0.2266, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 75.88 kB / 481.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4104/0.4119, allocations: 62.44 MB / 0.531 GB, free: 13.81 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.00188/0.4139, allocations: 0.4954 MB / 0.5315 GB, free: 13.45 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003409/0.4173, allocations: 2.096 MB / 0.5335 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.953e-05/0.4173, allocations: 0 / 0.5335 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.13e-05/0.4174, allocations: 0 / 0.5335 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.451e-06/0.4174, allocations: 0 / 0.5335 GB, free: 11.79 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001611/0.419, allocations: 0.5015 MB / 0.534 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.552e-05/0.4191, allocations: 6.75 kB / 0.534 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.705e-05/0.4191, allocations: 0 / 0.534 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.4e-05/0.4191, allocations: 1.375 kB / 0.534 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.68e-05/0.4191, allocations: 1.375 kB / 0.534 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.805e-06/0.4192, allocations: 0 / 0.534 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001231/0.4204, allocations: 0.6207 MB / 0.5346 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.654e-05/0.4204, allocations: 13.25 kB / 0.5346 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.013e-05/0.4205, allocations: 7.875 kB / 0.5346 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008272/0.4213, allocations: 373 kB / 0.535 GB, free: 10.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/0.4213, allocations: 0 / 0.535 GB, free: 10.91 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.4213, allocations: 0 / 0.535 GB, free: 10.91 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.281e-05/0.4214, allocations: 9.516 kB / 0.535 GB, free: 10.9 MB / 398.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.0007048/0.4221, allocations: 415.4 kB / 0.5354 GB, free: 10.46 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.252e-05/0.4221, allocations: 10.78 kB / 0.5354 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.249e-05/0.4222, allocations: 0.9375 kB / 0.5354 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001954/0.4224, allocations: 160.4 kB / 0.5356 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/0.4224, allocations: 2.281 kB / 0.5356 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.469e-05/0.4224, allocations: 4.359 kB / 0.5356 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001041/0.4225, allocations: 35.83 kB / 0.5356 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.4226, allocations: 0 / 0.5356 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.608e-06/0.4226, allocations: 9.844 kB / 0.5356 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.4226, allocations: 3.984 kB / 0.5356 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.23e-05/0.4226, allocations: 5.25 kB / 0.5356 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001459/0.4228, allocations: 142.8 kB / 0.5358 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.687e-05/0.4229, allocations: 16.27 kB / 0.5358 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.651e-05/0.4229, allocations: 5.859 kB / 0.5358 GB, free: 9.992 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.033e-05/0.4229, allocations: 1.156 kB / 0.5358 GB, free: 9.992 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.375e-05/0.423, allocations: 69.55 kB / 0.5358 GB, free: 9.91 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.343e-06/0.423, allocations: 0 / 0.5358 GB, free: 9.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001837/0.4232, allocations: 67.2 kB / 0.5359 GB, free: 9.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.764e-05/0.4232, allocations: 77.11 kB / 0.536 GB, free: 9.746 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.185e-05/0.4233, allocations: 91.3 kB / 0.5361 GB, free: 9.648 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.216e-05/0.4233, allocations: 25.7 kB / 0.5361 GB, free: 9.617 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.064e-05/0.4233, allocations: 80.14 kB / 0.5362 GB, free: 9.535 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.237e-05/0.4234, allocations: 9.484 kB / 0.5362 GB, free: 9.527 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.784e-05/0.4234, allocations: 22.83 kB / 0.5362 GB, free: 9.5 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.4236, allocations: 311.8 kB / 0.5365 GB, free: 9.188 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.116e-05/0.4236, allocations: 1.031 kB / 0.5365 GB, free: 9.188 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.011e-06/0.4236, allocations: 1.094 kB / 0.5365 GB, free: 9.188 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.181e-05/0.4237, allocations: 59.55 kB / 0.5366 GB, free: 9.117 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.4237, allocations: 4 kB / 0.5366 GB, free: 9.113 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.972e-05/0.4238, allocations: 70.02 kB / 0.5366 GB, free: 9.039 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.257e-05/0.4238, allocations: 39.77 kB / 0.5367 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.4238, allocations: 0 / 0.5367 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.4238, allocations: 1.25 kB / 0.5367 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.092e-06/0.4238, allocations: 0 / 0.5367 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.4239, allocations: 4.922 kB / 0.5367 GB, free: 8.996 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.647e-05/0.4239, allocations: 0 / 0.5367 GB, free: 8.996 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.596e-06/0.4239, allocations: 1.281 kB / 0.5367 GB, free: 8.996 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.566e-05/0.424, allocations: 134.5 kB / 0.5368 GB, free: 8.852 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.057e-05/0.424, allocations: 3.938 kB / 0.5368 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.231e-05/0.424, allocations: 12.55 kB / 0.5368 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.32e-07/0.424, allocations: 0 / 0.5368 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.424, allocations: 0 / 0.5368 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.4241, allocations: 0 / 0.5368 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001024/0.4242, allocations: 147.1 kB / 0.537 GB, free: 8.648 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.4242, allocations: 1.438 kB / 0.537 GB, free: 8.648 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.4242, allocations: 0 / 0.537 GB, free: 8.648 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.4242, allocations: 3.938 kB / 0.537 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.4242, allocations: 5.125 kB / 0.537 GB, free: 8.641 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.4242, allocations: 0 / 0.537 GB, free: 8.641 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.4242, allocations: 5.234 kB / 0.537 GB, free: 8.637 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001005/0.4243, allocations: 97.16 kB / 0.5371 GB, free: 8.527 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.401e-05/0.4244, allocations: 78.48 kB / 0.5371 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.451e-05/0.4244, allocations: 7.922 kB / 0.5372 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.126e-06/0.4244, allocations: 1.344 kB / 0.5372 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.369e-05/0.4244, allocations: 1.219 kB / 0.5372 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-06/0.4244, allocations: 0 / 0.5372 GB, free: 8.426 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.066e-05/0.4245, allocations: 80.5 kB / 0.5372 GB, free: 8.348 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.583e-06/0.4245, allocations: 4.031 kB / 0.5372 GB, free: 8.344 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004587/0.4249, allocations: 140.6 kB / 0.5374 GB, free: 8.297 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.000718/0.4257, allocations: 296.4 kB / 0.5377 GB, free: 8.125 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000183/0.4258, allocations: 64.78 kB / 0.5377 GB, free: 8.055 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.4259, allocations: 0 / 0.5377 GB, free: 8.055 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.648e-05/0.4259, allocations: 62.67 kB / 0.5378 GB, free: 7.984 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001244/0.426, allocations: 2.125 kB / 0.5378 GB, free: 7.984 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002425/0.4263, allocations: 73.64 kB / 0.5378 GB, free: 7.895 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005309/0.4268, allocations: 0.67 MB / 0.5385 GB, free: 7.199 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.133e-05/0.4268, allocations: 3.984 kB / 0.5385 GB, free: 7.195 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.684e-05/0.4269, allocations: 9.594 kB / 0.5385 GB, free: 7.188 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.4269, allocations: 0 / 0.5385 GB, free: 7.188 MB / 398.1 MB Notification: Performance of Templates: time 0.009447/0.4363, allocations: 3.511 MB / 0.5419 GB, free: 5.402 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches