Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.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.0007904/0.0007904, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001068/0.001859, allocations: 457.8 kB / 10.45 MB, free: 244 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.000775/0.000775, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009659/0.001741, allocations: 475.6 kB / 11.82 MB, free: 2.348 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.012/1.012, allocations: 177.5 MB / 190 MB, free: 4.766 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1063/1.119, allocations: 53.87 MB / 243.9 MB, free: 14.82 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.2903/0.2903, allocations: 34.88 MB / 279.5 MB, free: 14.91 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02792/0.3182, allocations: 13.23 MB / 292.8 MB, free: 6.363 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.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 294.1 MB, free: 5.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.129e-05/2.257e-05, allocations: 6.312 kB / 294.1 MB, free: 5.062 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001305/0.001328, allocations: 0.5685 MB / 294.7 MB, free: 4.496 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002317/0.003645, allocations: 2.028 MB / 296.7 MB, free: 2.449 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.585e-05/0.003661, allocations: 3.938 kB / 296.7 MB, free: 2.445 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.8e-06/0.003667, allocations: 0 / 296.7 MB, free: 2.445 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 2.434e-06/0.003669, allocations: 3.938 kB / 296.7 MB, free: 2.441 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:951:5-1034:16:writable] Warning: Pure function 'ModelicaTest.Math.Random.special' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001405/0.005074, allocations: 450.4 kB / 297.1 MB, free: 2 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.698e-05/0.005141, allocations: 19.92 kB / 297.2 MB, free: 1.98 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.281e-05/0.005184, allocations: 4 kB / 297.2 MB, free: 1.977 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.854e-05/0.005222, allocations: 7.984 kB / 297.2 MB, free: 1.969 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.379e-05/0.005246, allocations: 4 kB / 297.2 MB, free: 1.965 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.716e-06/0.005255, allocations: 0 / 297.2 MB, free: 1.965 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001321/0.006575, allocations: 0.7211 MB / 297.9 MB, free: 1.242 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.75e-05/0.006593, allocations: 0 / 297.9 MB, free: 1.242 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.805e-05/0.006611, allocations: 0 / 297.9 MB, free: 1.242 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006134/0.007224, allocations: 375 kB / 298.3 MB, free: 0.875 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.105e-05/0.007235, allocations: 3.938 kB / 298.3 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.007237, allocations: 0 / 298.3 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.146e-05/0.007249, allocations: 0 / 298.3 MB, free: 0.8711 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.0004695/0.007718, allocations: 361.7 kB / 298.6 MB, free: 500 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.007761, allocations: 8.922 kB / 298.6 MB, free: 492 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.011e-05/0.007801, allocations: 8.875 kB / 298.6 MB, free: 484 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.614e-05/0.007868, allocations: 109.8 kB / 298.7 MB, free: 348 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.007879, allocations: 384 / 298.7 MB, free: 348 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.142e-05/0.007891, allocations: 384 / 298.7 MB, free: 348 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.719e-05/0.007978, allocations: 59.97 kB / 298.8 MB, free: 276 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.007986, allocations: 192 / 298.8 MB, free: 276 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.066e-06/0.007994, allocations: 384 / 298.8 MB, free: 276 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.007999, allocations: 3.938 kB / 298.8 MB, free: 272 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.999e-05/0.008019, allocations: 33.69 kB / 298.8 MB, free: 232 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.943e-05/0.008098, allocations: 61.05 kB / 298.9 MB, free: 156 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.898e-05/0.008147, allocations: 48.25 kB / 298.9 MB, free: 92 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.881e-05/0.008166, allocations: 34.62 kB / 299 MB, free: 48 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.069e-06/0.008171, allocations: 0 / 299 MB, free: 48 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.775e-05/0.008229, allocations: 64.2 kB / 299 MB, free: 15.97 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.00823, allocations: 0 / 299 MB, free: 15.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001473/0.008377, allocations: 114.8 kB / 299.2 MB, free: 15.83 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.888e-05/0.008446, allocations: 158.2 kB / 299.3 MB, free: 15.64 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.434e-05/0.00848, allocations: 93.86 kB / 299.4 MB, free: 15.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.1e-05/0.008491, allocations: 29.7 kB / 299.4 MB, free: 15.5 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.133e-05/0.008512, allocations: 80.14 kB / 299.5 MB, free: 15.42 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.638e-05/0.008539, allocations: 0.6875 kB / 299.5 MB, free: 15.42 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.563e-05/0.008564, allocations: 17.7 kB / 299.5 MB, free: 15.4 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.877e-05/0.008653, allocations: 314.8 kB / 299.8 MB, free: 15.08 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.301e-05/0.008676, allocations: 25.83 kB / 299.9 MB, free: 15.05 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.571e-05/0.008692, allocations: 33.7 kB / 299.9 MB, free: 15.01 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.525e-05/0.008747, allocations: 60.27 kB / 299.9 MB, free: 14.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.008749, allocations: 0 / 299.9 MB, free: 14.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.571e-05/0.008815, allocations: 89.03 kB / 300 MB, free: 14.83 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.667e-05/0.008862, allocations: 33.7 kB / 300.1 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.008868, allocations: 0 / 300.1 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.008878, allocations: 0 / 300.1 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.613e-06/0.00888, allocations: 0 / 300.1 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.226e-06/0.008883, allocations: 0 / 300.1 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.658e-05/0.0089, allocations: 4.094 kB / 300.1 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.327e-06/0.008909, allocations: 3.938 kB / 300.1 MB, free: 14.79 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 7.061e-05/0.00898, allocations: 143.5 kB / 300.2 MB, free: 14.63 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.452e-06/0.008986, allocations: 4 kB / 300.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.117e-06/0.008995, allocations: 7 kB / 300.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.008997, allocations: 0 / 300.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-06/0.008998, allocations: 0 / 300.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.009002, allocations: 0 / 300.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.913e-05/0.009051, allocations: 65.83 kB / 300.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.009053, allocations: 4 kB / 300.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.41e-07/0.009054, allocations: 4 kB / 300.3 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.27e-06/0.009059, allocations: 3.984 kB / 300.3 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.52e-07/0.00906, allocations: 0 / 300.3 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.827e-06/0.009064, allocations: 0 / 300.3 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.009065, allocations: 0 / 300.3 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.009065, allocations: 0 / 300.3 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.874e-05/0.009144, allocations: 124.3 kB / 300.4 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.146e-05/0.009156, allocations: 0 / 300.4 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.773e-06/0.009162, allocations: 0 / 300.4 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.628e-06/0.009172, allocations: 4 kB / 300.4 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.487e-06/0.009176, allocations: 4 kB / 300.4 MB, free: 14.37 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.314e-06/0.009183, allocations: 8.891 kB / 300.4 MB, free: 14.36 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009183, allocations: 0 / 300.4 MB, free: 14.36 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003321/0.009515, allocations: 131.6 kB / 300.6 MB, free: 14.23 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.0005978/0.01011, allocations: 341 kB / 300.9 MB, free: 13.9 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000107/0.01022, allocations: 115.7 kB / 301 MB, free: 13.76 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.01022, allocations: 0 / 301 MB, free: 13.76 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.325e-05/0.01026, allocations: 89.95 kB / 301.1 MB, free: 13.65 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.734e-05/0.01032, allocations: 17.81 kB / 301.1 MB, free: 13.64 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001637/0.01048, allocations: 114.7 kB / 301.2 MB, free: 13.5 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.833e-05/0.01051, allocations: 55.3 kB / 301.3 MB, free: 13.42 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.971e-06/0.01051, allocations: 192 / 301.3 MB, free: 13.42 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.549e-05/0.01055, allocations: 63.36 kB / 301.3 MB, free: 13.36 MB / 298.7 MB Notification: Performance of SimCode: time 5.71e-07/0.01055, allocations: 0 / 301.3 MB, free: 13.36 MB / 298.7 MB Notification: Performance of Templates: time 0.006145/0.01669, allocations: 3.971 MB / 305.3 MB, free: 9.391 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0233315620571375]