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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001102/0.001102, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001699/0.0028, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007686/0.0007686, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001002/0.00177, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.005/1.005, allocations: 177.4 MB / 189.9 MB, free: 4.836 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09289/1.098, allocations: 53.86 MB / 243.7 MB, free: 14.91 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3056/0.3056, allocations: 34.86 MB / 279.3 MB, free: 14.91 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02921/0.3348, allocations: 13.23 MB / 292.6 MB, free: 6.473 MB / 282.7 MB " [Timeout remaining time 180] 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=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 293.9 MB, free: 5.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.186e-05/2.339e-05, allocations: 3.734 kB / 293.9 MB, free: 5.191 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.00108/0.001103, allocations: 0.5525 MB / 294.4 MB, free: 4.637 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002252/0.003355, allocations: 2.094 MB / 296.5 MB, free: 2.523 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.14e-05/0.003376, allocations: 4 kB / 296.5 MB, free: 2.52 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.841e-06/0.003382, allocations: 0 / 296.5 MB, free: 2.52 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.72e-07/0.003383, allocations: 0 / 296.5 MB, free: 2.52 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:1036:5-1119: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.001341/0.004723, allocations: 478.3 kB / 297 MB, free: 2.051 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 7.491e-05/0.004798, allocations: 0 / 297 MB, free: 2.051 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.379e-05/0.004842, allocations: 4 kB / 297 MB, free: 2.047 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.397e-05/0.004886, allocations: 3.984 kB / 297 MB, free: 2.043 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.931e-05/0.004915, allocations: 7.938 kB / 297 MB, free: 2.035 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.907e-06/0.004924, allocations: 3.938 kB / 297 MB, free: 2.031 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009827/0.005907, allocations: 0.6821 MB / 297.7 MB, free: 1.348 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.488e-06/0.005917, allocations: 0 / 297.7 MB, free: 1.348 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.473e-05/0.005931, allocations: 0 / 297.7 MB, free: 1.348 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005523/0.006484, allocations: 383 kB / 298.1 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.807e-05/0.006502, allocations: 0 / 298.1 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.163e-06/0.006503, allocations: 0 / 298.1 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.254e-05/0.006525, allocations: 0 / 298.1 MB, free: 0.9727 MB / 282.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.0004935/0.007019, allocations: 365.6 kB / 298.4 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.007065, allocations: 8.922 kB / 298.4 MB, free: 0.5781 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.066e-05/0.007106, allocations: 0.9375 kB / 298.4 MB, free: 0.5781 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.97e-05/0.007185, allocations: 109.7 kB / 298.5 MB, free: 456 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.259e-05/0.007198, allocations: 384 / 298.5 MB, free: 456 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.786e-06/0.007207, allocations: 4.375 kB / 298.5 MB, free: 452 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001009/0.007308, allocations: 59.95 kB / 298.6 MB, free: 380 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.007316, allocations: 192 / 298.6 MB, free: 380 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.051e-06/0.007322, allocations: 384 / 298.6 MB, free: 380 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.007328, allocations: 3.938 kB / 298.6 MB, free: 376 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.496e-05/0.007353, allocations: 33.64 kB / 298.6 MB, free: 336 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.8e-05/0.007431, allocations: 53.05 kB / 298.7 MB, free: 268 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.027e-05/0.007482, allocations: 44.31 kB / 298.7 MB, free: 208 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.122e-05/0.007503, allocations: 38.61 kB / 298.8 MB, free: 160 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.638e-06/0.007507, allocations: 0 / 298.8 MB, free: 160 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.074e-05/0.007548, allocations: 64.27 kB / 298.8 MB, free: 80 kB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.007549, allocations: 0 / 298.8 MB, free: 80 kB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001462/0.007695, allocations: 118.7 kB / 298.9 MB, free: 15.94 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.802e-05/0.007733, allocations: 77.11 kB / 299 MB, free: 15.84 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.225e-05/0.007765, allocations: 93.84 kB / 299.1 MB, free: 15.74 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.355e-06/0.007774, allocations: 25.7 kB / 299.1 MB, free: 15.71 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.031e-05/0.007794, allocations: 84.14 kB / 299.2 MB, free: 15.62 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.703e-05/0.007811, allocations: 0.6875 kB / 299.2 MB, free: 15.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.481e-05/0.007836, allocations: 9.719 kB / 299.2 MB, free: 15.61 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.736e-05/0.007913, allocations: 318.8 kB / 299.5 MB, free: 15.29 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.149e-05/0.007935, allocations: 29.83 kB / 299.6 MB, free: 15.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.281e-05/0.007948, allocations: 25.7 kB / 299.6 MB, free: 15.22 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.573e-05/0.007993, allocations: 72.25 kB / 299.7 MB, free: 15.14 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.007995, allocations: 0 / 299.7 MB, free: 15.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.497e-05/0.00805, allocations: 89.05 kB / 299.8 MB, free: 15.03 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.771e-05/0.008088, allocations: 33.69 kB / 299.8 MB, free: 14.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.008094, allocations: 4 kB / 299.8 MB, free: 14.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.398e-06/0.008104, allocations: 3.984 kB / 299.8 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.789e-06/0.008109, allocations: 0 / 299.8 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.905e-06/0.008111, allocations: 4.094 kB / 299.8 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.697e-05/0.008128, allocations: 0 / 299.8 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.604e-06/0.008136, allocations: 3.938 kB / 299.8 MB, free: 14.98 MB / 298.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.378e-05/0.0082, allocations: 139.5 kB / 299.9 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.859e-06/0.008205, allocations: 0 / 299.9 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.466e-06/0.008213, allocations: 6.938 kB / 299.9 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.008216, allocations: 7.984 kB / 300 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-06/0.008217, allocations: 0 / 300 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.008219, allocations: 0 / 300 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.745e-05/0.008267, allocations: 61.84 kB / 300 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.008267, allocations: 0 / 300 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.008268, allocations: 4 kB / 300 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.558e-06/0.008272, allocations: 4.516 kB / 300 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.008274, allocations: 0 / 300 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.669e-06/0.008278, allocations: 3.984 kB / 300 MB, free: 14.72 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.51e-07/0.008279, allocations: 0 / 300 MB, free: 14.72 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.00828, allocations: 0 / 300 MB, free: 14.72 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.179e-05/0.008351, allocations: 120.4 kB / 300.1 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.035e-05/0.008362, allocations: 0 / 300.1 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.551e-06/0.008367, allocations: 0 / 300.1 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.039e-05/0.008378, allocations: 4 kB / 300.1 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.017e-06/0.008382, allocations: 12.02 kB / 300.2 MB, free: 14.56 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.223e-06/0.008389, allocations: 4.859 kB / 300.2 MB, free: 14.55 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008389, allocations: 0 / 300.2 MB, free: 14.55 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000319/0.008708, allocations: 127.5 kB / 300.3 MB, free: 14.43 MB / 298.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.0006001/0.009308, allocations: 346.5 kB / 300.6 MB, free: 14.1 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001126/0.009421, allocations: 119.6 kB / 300.7 MB, free: 13.96 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.009426, allocations: 4 kB / 300.7 MB, free: 13.95 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.618e-05/0.009463, allocations: 89.95 kB / 300.8 MB, free: 13.84 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.288e-05/0.009525, allocations: 7.938 kB / 300.8 MB, free: 13.84 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001627/0.009688, allocations: 110.2 kB / 300.9 MB, free: 13.7 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.108e-05/0.009719, allocations: 55.34 kB / 301 MB, free: 13.62 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.44e-06/0.009725, allocations: 0 / 301 MB, free: 13.62 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.147e-05/0.009756, allocations: 51.38 kB / 301.1 MB, free: 13.57 MB / 298.7 MB Notification: Performance of SimCode: time 4.61e-07/0.009757, allocations: 128 / 301.1 MB, free: 13.57 MB / 298.7 MB Notification: Performance of Templates: time 0.005938/0.01569, allocations: 4.178 MB / 305.2 MB, free: 9.398 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.1197793977335095]