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.001264/0.001264, allocations: 112.7 kB / 17.33 MB, free: 6.012 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.001314/0.001314, allocations: 193.3 kB / 18.25 MB, free: 5.105 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.39/1.39, allocations: 222.9 MB / 241.9 MB, free: 15.38 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.2111/0.2111, allocations: 44.18 MB / 336.2 MB, free: 2.941 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00193/0.00193, allocations: 67.14 kB / 407.9 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.1422, allocations: 60.83 MB / 468.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0018/0.1441, allocations: 0.552 MB / 469.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002799/0.1469, allocations: 2.034 MB / 471.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.314e-05/0.1469, allocations: 0 / 471.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.078e-05/0.147, allocations: 0 / 471.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.993e-06/0.147, allocations: 0 / 471.3 MB, free: 12.12 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.001367/0.1484, allocations: 474.3 kB / 471.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.696e-05/0.1484, allocations: 4 kB / 471.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.956e-05/0.1485, allocations: 4 kB / 471.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.661e-05/0.1485, allocations: 0 / 471.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.57e-05/0.1485, allocations: 0 / 471.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.552e-06/0.1485, allocations: 0 / 471.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008915/0.1494, allocations: 0.6355 MB / 472.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.454e-06/0.1494, allocations: 0 / 472.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.016e-05/0.1495, allocations: 0 / 472.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005221/0.15, allocations: 407.1 kB / 472.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.15, allocations: 0 / 472.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.15, allocations: 0 / 472.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.15, allocations: 0 / 472.8 MB, free: 10.62 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.0004202/0.1504, allocations: 421.4 kB / 473.2 MB, free: 10.15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.1505, allocations: 8.031 kB / 473.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.424e-05/0.1505, allocations: 4.938 kB / 473.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.41e-05/0.1506, allocations: 160.4 kB / 473.4 MB, free: 9.945 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.06e-05/0.1506, allocations: 384 / 473.4 MB, free: 9.945 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.394e-06/0.1506, allocations: 384 / 473.4 MB, free: 9.945 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.477e-05/0.1507, allocations: 38 kB / 473.4 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.669e-06/0.1507, allocations: 4 kB / 473.4 MB, free: 9.898 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.899e-06/0.1508, allocations: 0 / 473.4 MB, free: 9.898 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.1508, allocations: 0 / 473.4 MB, free: 9.898 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.988e-05/0.1508, allocations: 7.938 kB / 473.4 MB, free: 9.891 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001197/0.1509, allocations: 149.7 kB / 473.6 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.472e-05/0.151, allocations: 14.58 kB / 473.6 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.466e-05/0.151, allocations: 8.844 kB / 473.6 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.344e-06/0.151, allocations: 0 / 473.6 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.815e-05/0.1511, allocations: 64.27 kB / 473.7 MB, free: 9.582 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.1511, allocations: 0 / 473.7 MB, free: 9.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001614/0.1512, allocations: 71.34 kB / 473.7 MB, free: 9.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/0.1513, allocations: 77.11 kB / 473.8 MB, free: 9.406 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.411e-05/0.1513, allocations: 93.84 kB / 473.9 MB, free: 9.305 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.267e-05/0.1513, allocations: 29.64 kB / 473.9 MB, free: 9.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.326e-05/0.1514, allocations: 80.14 kB / 474 MB, free: 9.188 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.523e-05/0.1514, allocations: 0 / 474 MB, free: 9.188 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.691e-05/0.1514, allocations: 13.72 kB / 474 MB, free: 9.168 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.1515, allocations: 315 kB / 474.3 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.036e-05/0.1516, allocations: 4 kB / 474.3 MB, free: 8.848 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.043e-06/0.1516, allocations: 4 kB / 474.3 MB, free: 8.844 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.937e-05/0.1516, allocations: 56.27 kB / 474.4 MB, free: 8.773 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.1516, allocations: 4 kB / 474.4 MB, free: 8.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.37e-05/0.1517, allocations: 63.33 kB / 474.5 MB, free: 8.695 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.033e-05/0.1517, allocations: 40.14 kB / 474.5 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.1518, allocations: 0 / 474.5 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.1518, allocations: 0 / 474.5 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.713e-06/0.1518, allocations: 4.094 kB / 474.5 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.583e-06/0.1518, allocations: 3.984 kB / 474.5 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.553e-05/0.1518, allocations: 0 / 474.5 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-06/0.1518, allocations: 3.938 kB / 474.5 MB, free: 8.641 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.862e-05/0.1519, allocations: 143.5 kB / 474.7 MB, free: 8.484 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.061e-05/0.1519, allocations: 7.922 kB / 474.7 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.064e-05/0.1519, allocations: 7.078 kB / 474.7 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.1519, allocations: 0 / 474.7 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.152, allocations: 4 kB / 474.7 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.245e-06/0.152, allocations: 4 kB / 474.7 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.846e-05/0.1521, allocations: 141.7 kB / 474.8 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.1521, allocations: 3.984 kB / 474.8 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.1521, allocations: 0 / 474.8 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.1521, allocations: 3.938 kB / 474.8 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.195e-06/0.1521, allocations: 4 kB / 474.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.1521, allocations: 0 / 474.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1521, allocations: 0 / 474.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.743e-05/0.1522, allocations: 106.7 kB / 474.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.677e-05/0.1522, allocations: 77.11 kB / 475 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.289e-05/0.1523, allocations: 3.938 kB / 475 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.738e-06/0.1523, allocations: 4 kB / 475 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.271e-05/0.1523, allocations: 0 / 475 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.338e-06/0.1523, allocations: 4 kB / 475 MB, free: 8.027 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.157e-05/0.1523, allocations: 75.28 kB / 475.1 MB, free: 7.953 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1523, allocations: 0 / 475.1 MB, free: 7.953 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003777/0.1527, allocations: 124 kB / 475.2 MB, free: 7.832 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.0007353/0.1535, allocations: 307.9 kB / 475.5 MB, free: 7.527 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.074e-05/0.1536, allocations: 63.39 kB / 475.6 MB, free: 7.453 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.1536, allocations: 0 / 475.6 MB, free: 7.453 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.15e-05/0.1536, allocations: 59.41 kB / 475.6 MB, free: 7.383 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001231/0.1537, allocations: 4.062 kB / 475.6 MB, free: 7.379 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00017/0.1539, allocations: 76.94 kB / 475.7 MB, free: 7.277 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002127/0.1541, allocations: 0.6729 MB / 476.4 MB, free: 6.578 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.7e-06/0.1541, allocations: 0 / 476.4 MB, free: 6.578 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.194e-05/0.1542, allocations: 11.44 kB / 476.4 MB, free: 6.566 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1542, allocations: 0 / 476.4 MB, free: 6.566 MB / 350.1 MB Notification: Performance of Templates: time 0.006702/0.1609, allocations: 3.419 MB / 479.8 MB, free: 3.148 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","/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