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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001224/0.001224, allocations: 71.77 kB / 21.69 MB, free: 2.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009103/0.0009103, allocations: 168.5 kB / 24.99 MB, free: 8.344 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.043/1.043, allocations: 177.1 MB / 205.3 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] 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.2986/0.2986, allocations: 32.8 MB / 294.6 MB, free: 1.305 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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 1.262e-06/1.262e-06, allocations: 0 / 376 MB, free: 5 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.05e-05/2.176e-05, allocations: 2.312 kB / 376 MB, free: 4.996 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001008/0.001029, allocations: 0.5276 MB / 376.5 MB, free: 4.469 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002679/0.003708, allocations: 2.055 MB / 378.6 MB, free: 2.391 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.088e-05/0.003729, allocations: 0 / 378.6 MB, free: 2.391 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.617e-05/0.003745, allocations: 4 kB / 378.6 MB, free: 2.387 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.104e-06/0.003753, allocations: 4 kB / 378.6 MB, free: 2.383 MB / 346.7 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.001018/0.00477, allocations: 0.5217 MB / 379.1 MB, free: 1.859 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.578e-05/0.004816, allocations: 0 / 379.1 MB, free: 1.859 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.43e-05/0.00485, allocations: 0 / 379.1 MB, free: 1.859 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.552e-05/0.004876, allocations: 4 kB / 379.1 MB, free: 1.855 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.092e-05/0.004897, allocations: 7.922 kB / 379.1 MB, free: 1.848 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.205e-06/0.004905, allocations: 0 / 379.1 MB, free: 1.848 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006776/0.005582, allocations: 0.6431 MB / 379.8 MB, free: 1.203 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.303e-06/0.00559, allocations: 0 / 379.8 MB, free: 1.203 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.928e-05/0.005609, allocations: 4 kB / 379.8 MB, free: 1.199 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005786/0.006188, allocations: 462.8 kB / 380.2 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.00619, allocations: 0 / 380.2 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.006191, allocations: 4 kB / 380.2 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.948e-06/0.006195, allocations: 0 / 380.2 MB, free: 0.7422 MB / 346.7 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.0003173/0.006512, allocations: 449.2 kB / 380.7 MB, free: 268 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.006553, allocations: 12.03 kB / 380.7 MB, free: 256 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.553e-05/0.006588, allocations: 0.9375 kB / 380.7 MB, free: 256 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.322e-05/0.006652, allocations: 104.6 kB / 380.8 MB, free: 124 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.006662, allocations: 384 / 380.8 MB, free: 124 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.638e-06/0.006671, allocations: 4.375 kB / 380.8 MB, free: 120 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.341e-05/0.006765, allocations: 63.95 kB / 380.8 MB, free: 44 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.65e-06/0.00677, allocations: 192 / 380.8 MB, free: 44 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.617e-06/0.006779, allocations: 384 / 380.8 MB, free: 44 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.006787, allocations: 7.938 kB / 380.8 MB, free: 36 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.285e-05/0.00682, allocations: 33.73 kB / 380.9 MB, free: 15.99 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.475e-05/0.006904, allocations: 108.6 kB / 381 MB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.804e-05/0.006942, allocations: 48.77 kB / 381 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.818e-05/0.006961, allocations: 37.48 kB / 381.1 MB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.739e-06/0.006965, allocations: 3.984 kB / 381.1 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.264e-05/0.006998, allocations: 63.09 kB / 381.1 MB, free: 15.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 7.31e-07/0.006999, allocations: 4 kB / 381.1 MB, free: 15.65 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001623/0.007161, allocations: 118.7 kB / 381.3 MB, free: 15.51 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/0.007196, allocations: 88.88 kB / 381.3 MB, free: 15.41 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.588e-05/0.007232, allocations: 142.2 kB / 381.5 MB, free: 15.26 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000212/0.007444, allocations: 25.7 kB / 381.5 MB, free: 15.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.38e-05/0.007468, allocations: 126.9 kB / 381.6 MB, free: 15.1 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.49e-05/0.007483, allocations: 4.297 kB / 381.6 MB, free: 15.09 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.47e-05/0.007508, allocations: 27.36 kB / 381.7 MB, free: 15.06 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.613e-05/0.007604, allocations: 492.1 kB / 382.1 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.797e-05/0.007622, allocations: 25.7 kB / 382.2 MB, free: 14.54 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.215e-05/0.007634, allocations: 33.83 kB / 382.2 MB, free: 14.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.957e-05/0.007674, allocations: 63.09 kB / 382.3 MB, free: 14.42 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.007676, allocations: 0 / 382.3 MB, free: 14.42 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.967e-05/0.007725, allocations: 93.03 kB / 382.4 MB, free: 14.31 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.325e-05/0.007749, allocations: 33.7 kB / 382.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.007753, allocations: 0 / 382.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.07e-05/0.007764, allocations: 0 / 382.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.42e-07/0.007764, allocations: 0 / 382.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.007771, allocations: 3.938 kB / 382.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.085e-05/0.007781, allocations: 4.094 kB / 382.4 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.929e-06/0.007786, allocations: 4 kB / 382.4 MB, free: 14.26 MB / 362.7 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 6.297e-05/0.007849, allocations: 182.3 kB / 382.6 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.19e-06/0.007855, allocations: 4 kB / 382.6 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.376e-06/0.007863, allocations: 7 kB / 382.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.007864, allocations: 0 / 382.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.007867, allocations: 0 / 382.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.085e-06/0.00787, allocations: 3.938 kB / 382.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.811e-05/0.007919, allocations: 112.6 kB / 382.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.91e-07/0.007919, allocations: 0 / 382.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.81e-07/0.007919, allocations: 0 / 382.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.007921, allocations: 7.984 kB / 382.7 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.142e-06/0.007927, allocations: 0 / 382.7 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.11e-07/0.007928, allocations: 0 / 382.7 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.007928, allocations: 0 / 382.7 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.091e-05/0.007999, allocations: 135.7 kB / 382.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.429e-06/0.008004, allocations: 4 kB / 382.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.169e-05/0.008015, allocations: 0 / 382.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.011e-06/0.008021, allocations: 3.938 kB / 382.8 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.165e-05/0.008033, allocations: 4 kB / 382.8 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-06/0.008034, allocations: 0 / 382.8 MB, free: 13.72 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.786e-05/0.008062, allocations: 127.2 kB / 383 MB, free: 13.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.008062, allocations: 0 / 383 MB, free: 13.59 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002367/0.008299, allocations: 131.5 kB / 383.1 MB, free: 13.46 MB / 362.7 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.0004971/0.008796, allocations: 327.3 kB / 383.4 MB, free: 13.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.08e-05/0.008887, allocations: 130.4 kB / 383.5 MB, free: 12.99 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.008888, allocations: 0 / 383.5 MB, free: 12.99 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.763e-05/0.008916, allocations: 92.78 kB / 383.6 MB, free: 12.88 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.014e-05/0.009006, allocations: 0 / 383.6 MB, free: 12.88 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001587/0.009165, allocations: 110.5 kB / 383.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.902e-05/0.009194, allocations: 59.34 kB / 383.8 MB, free: 12.65 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.22e-06/0.009199, allocations: 0 / 383.8 MB, free: 12.65 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.226e-05/0.009211, allocations: 8.5 kB / 383.8 MB, free: 12.64 MB / 362.7 MB Notification: Performance of SimCode: time 7.11e-07/0.009212, allocations: 0 / 383.8 MB, free: 12.64 MB / 362.7 MB Notification: Performance of Templates: time 0.004709/0.01392, allocations: 3.538 MB / 387.4 MB, free: 9.109 MB / 362.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2910717281047255]