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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001566/0.001566, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002043/0.002043, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.27/2.27, allocations: 227.4 MB / 246.9 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3388/0.3388, allocations: 46.11 MB / 344.3 MB, free: 11.78 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002537/0.002538, allocations: 76.78 kB / 417.5 MB, free: 20.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1901/0.1926, allocations: 62.45 MB / 479.9 MB, free: 5.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.003259/0.196, allocations: 0.5512 MB / 480.5 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004983/0.201, allocations: 2.12 MB / 482.6 MB, free: 3.035 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.639e-05/0.2011, allocations: 0 / 482.6 MB, free: 3.035 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.189e-05/0.2011, allocations: 0 / 482.6 MB, free: 3.035 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.065e-06/0.2012, allocations: 0 / 482.6 MB, free: 3.035 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:928:5-1011: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.001684/0.2029, allocations: 406.5 kB / 483 MB, free: 2.641 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.304e-05/0.2029, allocations: 0 / 483 MB, free: 2.641 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.882e-05/0.2029, allocations: 3.984 kB / 483 MB, free: 2.637 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.551e-05/0.203, allocations: 0 / 483 MB, free: 2.637 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.785e-05/0.203, allocations: 4 kB / 483 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.624e-06/0.203, allocations: 4 kB / 483 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001239/0.2043, allocations: 0.6746 MB / 483.7 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.506e-06/0.2043, allocations: 0 / 483.7 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.565e-05/0.2043, allocations: 11.94 kB / 483.7 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005481/0.2049, allocations: 259.7 kB / 484 MB, free: 1.688 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2049, allocations: 0 / 484 MB, free: 1.688 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.2049, allocations: 0 / 484 MB, free: 1.688 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.2049, allocations: 0 / 484 MB, free: 1.688 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.0005728/0.2055, allocations: 425.2 kB / 484.4 MB, free: 1.219 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/0.2055, allocations: 8.875 kB / 484.4 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.379e-05/0.2056, allocations: 0.9375 kB / 484.4 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.802e-05/0.2057, allocations: 160.4 kB / 484.5 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.2057, allocations: 384 / 484.5 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.237e-05/0.2057, allocations: 4.375 kB / 484.5 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.47e-05/0.2058, allocations: 30.02 kB / 484.6 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.2058, allocations: 0 / 484.6 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.087e-06/0.2058, allocations: 0 / 484.6 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.2059, allocations: 0 / 484.6 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.002e-05/0.2059, allocations: 15.98 kB / 484.6 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001612/0.2061, allocations: 145.6 kB / 484.7 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.938e-05/0.2061, allocations: 22.61 kB / 484.8 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.766e-05/0.2062, allocations: 4.859 kB / 484.8 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.065e-06/0.2062, allocations: 0 / 484.8 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.116e-05/0.2062, allocations: 60.2 kB / 484.8 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.442e-06/0.2062, allocations: 0 / 484.8 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001957/0.2064, allocations: 71.39 kB / 484.9 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.341e-05/0.2065, allocations: 85.11 kB / 485 MB, free: 484 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.642e-05/0.2066, allocations: 89.86 kB / 485.1 MB, free: 384 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.312e-05/0.2066, allocations: 25.7 kB / 485.1 MB, free: 352 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.922e-05/0.2066, allocations: 80.14 kB / 485.2 MB, free: 268 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.604e-05/0.2067, allocations: 0 / 485.2 MB, free: 268 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.289e-05/0.2067, allocations: 13.72 kB / 485.2 MB, free: 248 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.2069, allocations: 319 kB / 485.5 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.19e-05/0.2069, allocations: 0 / 485.5 MB, free: 15.92 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.534e-06/0.2069, allocations: 0 / 485.5 MB, free: 15.92 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.278e-05/0.207, allocations: 64.27 kB / 485.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.207, allocations: 0 / 485.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.069e-05/0.2071, allocations: 67.33 kB / 485.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.902e-05/0.2071, allocations: 33.64 kB / 485.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.258e-06/0.2071, allocations: 4 kB / 485.6 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.2072, allocations: 3.938 kB / 485.7 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-07/0.2072, allocations: 4.094 kB / 485.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.2072, allocations: 0 / 485.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.678e-05/0.2072, allocations: 0 / 485.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.565e-06/0.2072, allocations: 0 / 485.7 MB, free: 15.71 MB / 366.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.0001/0.2073, allocations: 139.5 kB / 485.8 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.279e-05/0.2073, allocations: 7.875 kB / 485.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.075e-05/0.2074, allocations: 7.109 kB / 485.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.664e-06/0.2074, allocations: 0 / 485.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.2074, allocations: 0 / 485.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.2074, allocations: 7.984 kB / 485.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00012/0.2075, allocations: 145.7 kB / 486 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.2075, allocations: 0 / 486 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.91e-07/0.2075, allocations: 0 / 486 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.2076, allocations: 3.938 kB / 486 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.355e-06/0.2076, allocations: 0 / 486 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.2076, allocations: 4 kB / 486 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.2076, allocations: 3.984 kB / 486 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001249/0.2077, allocations: 90.78 kB / 486.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.92e-05/0.2078, allocations: 85.02 kB / 486.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.055e-05/0.2078, allocations: 7.922 kB / 486.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.184e-05/0.2078, allocations: 0 / 486.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.252e-05/0.2078, allocations: 0 / 486.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.603e-06/0.2079, allocations: 4 kB / 486.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.232e-05/0.2079, allocations: 75.28 kB / 486.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2079, allocations: 4 kB / 486.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005335/0.2085, allocations: 128 kB / 486.4 MB, free: 14.91 MB / 366.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.001051/0.2095, allocations: 305.4 kB / 486.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001017/0.2096, allocations: 71.39 kB / 486.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2096, allocations: 0 / 486.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.683e-05/0.2097, allocations: 59.34 kB / 486.8 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001342/0.2098, allocations: 3.938 kB / 486.8 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002795/0.2101, allocations: 100.5 kB / 486.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002851/0.2104, allocations: 0.6731 MB / 487.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.403e-05/0.2104, allocations: 11.44 kB / 487.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2104, allocations: 0 / 487.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of Templates: time 0.007877/0.2183, allocations: 3.397 MB / 491 MB, free: 10.21 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.makefile (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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches