Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers") translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001616/0.001616, allocations: 198.1 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.28/1.28, allocations: 227.2 MB / 245 MB, free: 5.762 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008273/0.0008273, allocations: 103.6 kB / 297.3 MB, free: 5.961 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3334/0.3334, allocations: 45.22 MB / 394.7 MB, free: 31.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002771/0.0002773, allocations: 12 kB / 468.4 MB, free: 7.707 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3027, allocations: 63.24 MB / 0.5192 GB, free: 37.59 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1134/0.4161, allocations: 86.95 MB / 0.6041 GB, free: 0.5078 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002269/0.4164, allocations: 63.97 kB / 0.6042 GB, free: 456 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01052/0.427, allocations: 3.341 MB / 0.6074 GB, free: 13.1 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.427, allocations: 0 / 0.6074 GB, free: 13.1 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.769e-06/0.427, allocations: 0 / 0.6074 GB, free: 13.1 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004605/0.4275, allocations: 400.8 kB / 0.6078 GB, free: 12.66 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.4275, allocations: 8.031 kB / 0.6078 GB, free: 12.65 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.598e-05/0.4276, allocations: 7.906 kB / 0.6078 GB, free: 12.64 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002334/0.4279, allocations: 186.9 kB / 0.608 GB, free: 12.42 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.792e-05/0.4279, allocations: 4 kB / 0.608 GB, free: 12.41 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.635e-05/0.4279, allocations: 4 kB / 0.608 GB, free: 12.41 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00021/0.4281, allocations: 89.61 kB / 0.6081 GB, free: 12.32 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.4281, allocations: 3.938 kB / 0.6081 GB, free: 12.31 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.936e-05/0.4282, allocations: 4 kB / 0.6081 GB, free: 12.31 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.802e-06/0.4282, allocations: 4 kB / 0.6081 GB, free: 12.3 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.213e-05/0.4283, allocations: 23.92 kB / 0.6081 GB, free: 12.28 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001984/0.4285, allocations: 177.5 kB / 0.6083 GB, free: 12.06 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001036/0.4286, allocations: 46.56 kB / 0.6083 GB, free: 12 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.819e-05/0.4286, allocations: 4 kB / 0.6083 GB, free: 12 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002591/0.4289, allocations: 131.5 kB / 0.6085 GB, free: 11.86 MB / 426.7 MB Notification: Performance of pre-optimization done (n=10): time 1.542e-06/0.4289, allocations: 0 / 0.6085 GB, free: 11.86 MB / 426.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003117/0.4292, allocations: 129.5 kB / 0.6086 GB, free: 11.73 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.473e-05/0.4293, allocations: 59.39 kB / 0.6086 GB, free: 11.66 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.179e-05/0.4293, allocations: 92.98 kB / 0.6087 GB, free: 11.56 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.778e-05/0.4294, allocations: 37.7 kB / 0.6088 GB, free: 11.52 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.446e-05/0.4294, allocations: 80.33 kB / 0.6088 GB, free: 11.43 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.062e-05/0.4295, allocations: 23.7 kB / 0.6089 GB, free: 11.41 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.723e-06/0.4295, allocations: 4 kB / 0.6089 GB, free: 11.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.4296, allocations: 314.8 kB / 0.6092 GB, free: 11.09 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.601e-05/0.4296, allocations: 19.98 kB / 0.6092 GB, free: 11.07 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.686e-05/0.4297, allocations: 84.95 kB / 0.6093 GB, free: 10.96 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.15e-05/0.4298, allocations: 61.58 kB / 0.6093 GB, free: 10.89 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.4298, allocations: 4 kB / 0.6093 GB, free: 10.89 MB / 426.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002196/0.43, allocations: 167.1 kB / 0.6095 GB, free: 10.71 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.7e-05/0.4301, allocations: 36.52 kB / 0.6095 GB, free: 10.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.4301, allocations: 4 kB / 0.6095 GB, free: 10.67 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.4301, allocations: 4 kB / 0.6095 GB, free: 10.67 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.539e-05/0.4302, allocations: 15.98 kB / 0.6096 GB, free: 10.65 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.4302, allocations: 4 kB / 0.6096 GB, free: 10.65 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.293e-05/0.4303, allocations: 8 kB / 0.6096 GB, free: 10.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.4303, allocations: 4.562 kB / 0.6096 GB, free: 10.64 MB / 426.7 MB Warning: Assuming fixed start value for the following 1 variables: y:DISCRETE(fixed = true ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 (id,$PRE.cnt[3],cnt[3],$PRE.cnt[2],cnt[2],$PRE.cnt[1],cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,$PRE.samples,samples) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001435/0.4305, allocations: 141.9 kB / 0.6097 GB, free: 10.49 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.416e-05/0.4305, allocations: 11.89 kB / 0.6097 GB, free: 10.48 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.27e-05/0.4306, allocations: 7.969 kB / 0.6097 GB, free: 10.46 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.4306, allocations: 7.938 kB / 0.6097 GB, free: 10.46 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.962e-06/0.4306, allocations: 0 / 0.6097 GB, free: 10.46 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.4306, allocations: 3.984 kB / 0.6097 GB, free: 10.45 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000145/0.4307, allocations: 169.6 kB / 0.6099 GB, free: 10.24 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.764e-06/0.4308, allocations: 7.938 kB / 0.6099 GB, free: 10.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.646e-05/0.4308, allocations: 8 kB / 0.6099 GB, free: 10.22 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.4308, allocations: 4 kB / 0.6099 GB, free: 10.22 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.4308, allocations: 3.938 kB / 0.6099 GB, free: 10.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.4308, allocations: 0 / 0.6099 GB, free: 10.21 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.4308, allocations: 3.938 kB / 0.6099 GB, free: 10.21 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002043/0.431, allocations: 137 kB / 0.6101 GB, free: 10.06 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.257e-05/0.4311, allocations: 81.06 kB / 0.6101 GB, free: 9.961 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.17e-05/0.4311, allocations: 7.938 kB / 0.6101 GB, free: 9.953 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001596/0.4313, allocations: 31.97 kB / 0.6102 GB, free: 9.922 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.222e-05/0.4313, allocations: 0 / 0.6102 GB, free: 9.922 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.337e-05/0.4314, allocations: 7.984 kB / 0.6102 GB, free: 9.914 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.811e-05/0.4314, allocations: 83.28 kB / 0.6103 GB, free: 9.832 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4314, allocations: 0 / 0.6103 GB, free: 9.832 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003004/0.4317, allocations: 59.92 kB / 0.6103 GB, free: 9.773 MB / 426.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: 7 ($whenCondition2,$whenCondition1,y,cnt[1],cnt[2],cnt[3],samples) * Number of discrete states: 4 (cnt[1],cnt[2],cnt[3],samples) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004661/0.4322, allocations: 196.2 kB / 0.6105 GB, free: 9.59 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002144/0.4324, allocations: 127.2 kB / 0.6106 GB, free: 9.453 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.4324, allocations: 448 / 0.6106 GB, free: 9.453 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 6.165e-05/0.4325, allocations: 31.98 kB / 0.6107 GB, free: 9.422 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001141/0.4326, allocations: 8 kB / 0.6107 GB, free: 9.414 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003902/0.433, allocations: 143.1 kB / 0.6108 GB, free: 9.246 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002455/0.4333, allocations: 0.6926 MB / 0.6115 GB, free: 8.527 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 5.51e-05/0.4333, allocations: 16.66 kB / 0.6115 GB, free: 8.504 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.318e-05/0.4334, allocations: 11.44 kB / 0.6115 GB, free: 8.496 MB / 426.7 MB Notification: Performance of SimCode: time 5.41e-07/0.4334, allocations: 4 kB / 0.6115 GB, free: 8.492 MB / 426.7 MB Notification: Performance of Templates: time 0.004824/0.4382, allocations: 2.062 MB / 0.6135 GB, free: 6.438 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches