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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001293/0.001293, allocations: 106.2 kB / 19.81 MB, free: 2.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001423/0.001423, allocations: 191.4 kB / 22.98 MB, free: 5.617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.527/1.527, allocations: 225.6 MB / 251.6 MB, free: 13.33 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2635/0.2635, allocations: 44.91 MB / 351.6 MB, free: 12.23 MB / 286.1 MB " [Timeout remaining time 179] 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=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 67.89 kB / 495.2 MB, free: 1.867 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4713/0.4732, allocations: 64.24 MB / 0.5464 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001828/0.4751, allocations: 0.5009 MB / 0.5469 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003771/0.4788, allocations: 2.079 MB / 0.5489 GB, free: 11.19 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.953e-05/0.4788, allocations: 4 kB / 0.5489 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.456e-05/0.4789, allocations: 0 / 0.5489 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.705e-06/0.4789, allocations: 0 / 0.5489 GB, free: 11.18 MB / 398.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.001738/0.4806, allocations: 0.4926 MB / 0.5494 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.46e-05/0.4807, allocations: 1.594 kB / 0.5494 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.53e-05/0.4807, allocations: 1.438 kB / 0.5494 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.092e-05/0.4807, allocations: 4 kB / 0.5494 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.835e-05/0.4807, allocations: 5.25 kB / 0.5494 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.314e-06/0.4808, allocations: 0 / 0.5494 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001147/0.4819, allocations: 0.6511 MB / 0.55 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.676e-06/0.4819, allocations: 1.156 kB / 0.55 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.676e-05/0.4819, allocations: 4.984 kB / 0.55 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000634/0.4826, allocations: 390.7 kB / 0.5504 GB, free: 10.27 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.4826, allocations: 1.5 kB / 0.5504 GB, free: 10.27 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.4826, allocations: 0 / 0.5504 GB, free: 10.27 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.287e-05/0.4826, allocations: 0 / 0.5504 GB, free: 10.27 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.0005489/0.4831, allocations: 417.1 kB / 0.5508 GB, free: 9.832 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.4832, allocations: 10.16 kB / 0.5508 GB, free: 9.832 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.215e-05/0.4832, allocations: 0.9375 kB / 0.5508 GB, free: 9.832 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001275/0.4833, allocations: 160.4 kB / 0.551 GB, free: 9.637 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.4834, allocations: 1.875 kB / 0.551 GB, free: 9.637 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.055e-05/0.4834, allocations: 4.375 kB / 0.551 GB, free: 9.633 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001069/0.4835, allocations: 36.53 kB / 0.551 GB, free: 9.594 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.4835, allocations: 1.375 kB / 0.551 GB, free: 9.594 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.848e-06/0.4835, allocations: 0 / 0.551 GB, free: 9.594 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.4835, allocations: 0 / 0.551 GB, free: 9.594 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.59e-05/0.4835, allocations: 5.094 kB / 0.551 GB, free: 9.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001636/0.4837, allocations: 147 kB / 0.5512 GB, free: 9.398 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.131e-05/0.4837, allocations: 17.64 kB / 0.5512 GB, free: 9.375 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.501e-05/0.4838, allocations: 8.859 kB / 0.5512 GB, free: 9.363 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.323e-05/0.4838, allocations: 5.516 kB / 0.5512 GB, free: 9.359 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.841e-05/0.4838, allocations: 64.14 kB / 0.5512 GB, free: 9.281 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.4838, allocations: 1.438 kB / 0.5513 GB, free: 9.281 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002055/0.484, allocations: 66.31 kB / 0.5513 GB, free: 9.211 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.188e-05/0.4841, allocations: 78.2 kB / 0.5514 GB, free: 9.117 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.493e-05/0.4842, allocations: 89.86 kB / 0.5515 GB, free: 9.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/0.4842, allocations: 29.83 kB / 0.5515 GB, free: 8.984 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.806e-05/0.4842, allocations: 85.31 kB / 0.5516 GB, free: 8.898 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.841e-05/0.4842, allocations: 0 / 0.5516 GB, free: 8.898 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.301e-05/0.4843, allocations: 15.94 kB / 0.5516 GB, free: 8.879 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.4844, allocations: 312.2 kB / 0.5519 GB, free: 8.566 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.114e-05/0.4844, allocations: 0 / 0.5519 GB, free: 8.566 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.464e-06/0.4844, allocations: 5.156 kB / 0.5519 GB, free: 8.562 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.008e-05/0.4845, allocations: 64.55 kB / 0.552 GB, free: 8.488 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.4845, allocations: 0 / 0.552 GB, free: 8.488 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.238e-05/0.4846, allocations: 66.08 kB / 0.552 GB, free: 8.418 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.896e-05/0.4846, allocations: 38.05 kB / 0.5521 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.4846, allocations: 0 / 0.5521 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.4846, allocations: 0 / 0.5521 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.765e-06/0.4846, allocations: 5.203 kB / 0.5521 GB, free: 8.379 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.4846, allocations: 3.938 kB / 0.5521 GB, free: 8.375 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.799e-05/0.4847, allocations: 5.109 kB / 0.5521 GB, free: 8.371 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.393e-06/0.4847, allocations: 0 / 0.5521 GB, free: 8.371 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 0.000112/0.4848, allocations: 146 kB / 0.5522 GB, free: 8.215 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.112e-05/0.4848, allocations: 5.031 kB / 0.5522 GB, free: 8.211 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.544e-05/0.4848, allocations: 7.078 kB / 0.5522 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.4848, allocations: 1.25 kB / 0.5522 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.4848, allocations: 0 / 0.5522 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.4848, allocations: 0 / 0.5522 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001224/0.4849, allocations: 143.8 kB / 0.5524 GB, free: 8.016 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.4849, allocations: 0 / 0.5524 GB, free: 8.016 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.198e-06/0.4849, allocations: 5.203 kB / 0.5524 GB, free: 8.012 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.485, allocations: 3.938 kB / 0.5524 GB, free: 8.008 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/0.485, allocations: 9.125 kB / 0.5524 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.485, allocations: 0 / 0.5524 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.485, allocations: 0 / 0.5524 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001192/0.4851, allocations: 90.22 kB / 0.5525 GB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.043e-05/0.4851, allocations: 81.09 kB / 0.5525 GB, free: 7.801 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.466e-05/0.4851, allocations: 5.094 kB / 0.5526 GB, free: 7.797 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.285e-06/0.4852, allocations: 1.188 kB / 0.5526 GB, free: 7.797 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.413e-05/0.4852, allocations: 5.219 kB / 0.5526 GB, free: 7.793 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-06/0.4852, allocations: 0 / 0.5526 GB, free: 7.793 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.689e-05/0.4852, allocations: 76.34 kB / 0.5526 GB, free: 7.719 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4852, allocations: 3.938 kB / 0.5526 GB, free: 7.715 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004711/0.4857, allocations: 133.9 kB / 0.5528 GB, free: 7.672 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.0008348/0.4865, allocations: 306.8 kB / 0.5531 GB, free: 7.488 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001418/0.4867, allocations: 61.09 kB / 0.5531 GB, free: 7.422 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.4867, allocations: 0 / 0.5531 GB, free: 7.422 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.353e-05/0.4867, allocations: 62.8 kB / 0.5532 GB, free: 7.352 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001242/0.4868, allocations: 1.094 kB / 0.5532 GB, free: 7.352 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002366/0.4871, allocations: 86.06 kB / 0.5533 GB, free: 7.254 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003427/0.4874, allocations: 0.6738 MB / 0.5539 GB, free: 6.555 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.027e-06/0.4874, allocations: 5.188 kB / 0.5539 GB, free: 6.551 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.355e-05/0.4874, allocations: 12.61 kB / 0.5539 GB, free: 6.539 MB / 398.1 MB Notification: Performance of SimCode: time 4.11e-07/0.4874, allocations: 0 / 0.5539 GB, free: 6.539 MB / 398.1 MB Notification: Performance of Templates: time 0.00916/0.4966, allocations: 3.434 MB / 0.5573 GB, free: 4.207 MB / 398.1 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.638693764805794]