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.0009284/0.0009285, allocations: 96.02 kB / 17.35 MB, free: 6.367 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.001234/0.001234, allocations: 176.1 kB / 18.25 MB, free: 5.523 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.45/1.45, allocations: 223.3 MB / 242.3 MB, free: 188 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2125/0.2125, allocations: 44.25 MB / 337.7 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003267/0.0003267, allocations: 8.938 kB / 410.3 MB, free: 27.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1132, allocations: 61.93 MB / 472.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0006169/0.1138, allocations: 226.9 kB / 472.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002793/0.1166, allocations: 2.076 MB / 474.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.088e-05/0.1167, allocations: 0 / 474.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.739e-05/0.1167, allocations: 0 / 474.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.25e-06/0.1167, allocations: 4 kB / 474.6 MB, free: 11.02 MB / 350.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.001235/0.1179, allocations: 425.4 kB / 475 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.679e-05/0.118, allocations: 4 kB / 475 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.185e-05/0.118, allocations: 3.984 kB / 475 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.828e-05/0.1181, allocations: 3.938 kB / 475 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.93e-05/0.1181, allocations: 0 / 475 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.442e-06/0.1181, allocations: 0 / 475 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009298/0.119, allocations: 0.6434 MB / 475.6 MB, free: 9.945 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.268e-06/0.1191, allocations: 0 / 475.6 MB, free: 9.945 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.496e-05/0.1191, allocations: 25.7 kB / 475.6 MB, free: 9.914 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005302/0.1196, allocations: 395.1 kB / 476 MB, free: 9.527 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.1197, allocations: 0 / 476 MB, free: 9.527 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.1197, allocations: 0 / 476 MB, free: 9.527 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.1197, allocations: 0 / 476 MB, free: 9.527 MB / 350.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.0003783/0.1201, allocations: 413.5 kB / 476.4 MB, free: 9.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.1201, allocations: 8.031 kB / 476.4 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.621e-05/0.1201, allocations: 4.938 kB / 476.4 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.024e-05/0.1202, allocations: 164.4 kB / 476.6 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.736e-06/0.1202, allocations: 4.312 kB / 476.6 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.356e-06/0.1202, allocations: 384 / 476.6 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.064e-05/0.1203, allocations: 37.95 kB / 476.7 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.01e-06/0.1203, allocations: 0 / 476.7 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.426e-06/0.1204, allocations: 3.984 kB / 476.7 MB, free: 8.809 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.898e-06/0.1204, allocations: 0 / 476.7 MB, free: 8.809 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.463e-05/0.1204, allocations: 0 / 476.7 MB, free: 8.809 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001144/0.1205, allocations: 153.7 kB / 476.8 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.091e-05/0.1205, allocations: 14.58 kB / 476.8 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.266e-05/0.1206, allocations: 4.859 kB / 476.8 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.352e-06/0.1206, allocations: 0 / 476.8 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.007e-05/0.1206, allocations: 72.2 kB / 476.9 MB, free: 8.492 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.1206, allocations: 0 / 476.9 MB, free: 8.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001458/0.1208, allocations: 67.39 kB / 477 MB, free: 8.414 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.749e-05/0.1208, allocations: 81.23 kB / 477 MB, free: 8.316 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.261e-05/0.1209, allocations: 89.86 kB / 477.1 MB, free: 8.219 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.31e-05/0.1209, allocations: 25.7 kB / 477.2 MB, free: 8.188 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.032e-05/0.1209, allocations: 80.14 kB / 477.2 MB, free: 8.105 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.717e-05/0.1209, allocations: 0 / 477.2 MB, free: 8.105 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.237e-05/0.121, allocations: 13.72 kB / 477.2 MB, free: 8.086 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.372e-05/0.121, allocations: 314.8 kB / 477.6 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.017e-06/0.1211, allocations: 4 kB / 477.6 MB, free: 7.766 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.781e-06/0.1211, allocations: 4 kB / 477.6 MB, free: 7.762 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.36e-05/0.1211, allocations: 64.2 kB / 477.6 MB, free: 7.684 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1211, allocations: 0 / 477.6 MB, free: 7.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.883e-05/0.1212, allocations: 59.41 kB / 477.7 MB, free: 7.613 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.928e-05/0.1212, allocations: 37.62 kB / 477.7 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.1212, allocations: 0 / 477.7 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.087e-06/0.1212, allocations: 3.938 kB / 477.7 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.775e-06/0.1213, allocations: 4 kB / 477.7 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.038e-06/0.1213, allocations: 0 / 477.7 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.487e-05/0.1213, allocations: 4.094 kB / 477.7 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.621e-06/0.1213, allocations: 0 / 477.7 MB, free: 7.559 MB / 350.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.101e-05/0.1214, allocations: 139.5 kB / 477.9 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.807e-06/0.1214, allocations: 3.938 kB / 477.9 MB, free: 7.402 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.066e-05/0.1214, allocations: 7.078 kB / 477.9 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.1214, allocations: 3.938 kB / 477.9 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.1214, allocations: 3.984 kB / 477.9 MB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.1214, allocations: 0 / 477.9 MB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.319e-05/0.1215, allocations: 149.6 kB / 478 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.1215, allocations: 4 kB / 478 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.1215, allocations: 0 / 478 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.1215, allocations: 3.938 kB / 478 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.292e-06/0.1215, allocations: 0 / 478 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.61e-07/0.1215, allocations: 0 / 478 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1216, allocations: 0 / 478 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.634e-05/0.1216, allocations: 98.72 kB / 478.1 MB, free: 7.062 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.008e-05/0.1217, allocations: 77.11 kB / 478.2 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.567e-05/0.1217, allocations: 11.97 kB / 478.2 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.002e-05/0.1217, allocations: 3.984 kB / 478.2 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.383e-05/0.1217, allocations: 0 / 478.2 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-06/0.1217, allocations: 0 / 478.2 MB, free: 6.953 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.16e-05/0.1218, allocations: 75.28 kB / 478.3 MB, free: 6.879 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1218, allocations: 0 / 478.3 MB, free: 6.879 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003646/0.1221, allocations: 124 kB / 478.4 MB, free: 6.758 MB / 350.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.0007362/0.1229, allocations: 312.3 kB / 478.7 MB, free: 6.453 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.246e-05/0.123, allocations: 63.34 kB / 478.8 MB, free: 6.379 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.123, allocations: 4 kB / 478.8 MB, free: 6.375 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.322e-05/0.123, allocations: 51.41 kB / 478.8 MB, free: 6.312 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001288/0.1232, allocations: 7.938 kB / 478.8 MB, free: 6.305 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001517/0.1233, allocations: 78.88 kB / 478.9 MB, free: 6.199 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001913/0.1235, allocations: 0.6731 MB / 479.6 MB, free: 5.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.609e-06/0.1235, allocations: 0 / 479.6 MB, free: 5.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.397e-06/0.1236, allocations: 7.438 kB / 479.6 MB, free: 5.492 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1236, allocations: 0 / 479.6 MB, free: 5.492 MB / 350.1 MB Notification: Performance of Templates: time 0.006432/0.13, allocations: 3.407 MB / 483 MB, free: 2.09 MB / 350.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","../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches